Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1965
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

features/cloudfront/cloudfront-2013-09-27.feature

39

features/directconnect/step_definitions/directconnect.js

@@ -18,23 +18,9 @@ /**

this.Before("@directconnect", function (callback) {
this.service = new this.AWS.DirectConnect.Client();
this.service = new this.AWS.DirectConnect();
callback();
});
this.Given(/^I describe Direct Connect offerings$/, function(callback) {
this.request(null, 'describeOfferings', {}, callback);
});
this.Given(/^I take the first offering ID$/, function(callback) {
this.AWS.util.arrayEach.call(this, this.data.offerings, function(item) {
if (item.region === this.service.config.region) {
this.offering = item;
return this.AWS.util.abort;
}
});
callback();
});
this.When(/^I create a Direct Connect connection with name prefix "([^"]*)" and the offering ID$/, function(prefix, callback) {
this.When(/^I create a Direct Connect connection with name prefix "([^"]*)"$/, function(prefix, callback) {
var params = {
offeringId: this.offering.offeringId,
bandwidth: '1Gbps', location: 'EqDC2',
connectionName: this.uniqueName(prefix)

@@ -47,17 +33,13 @@ };

this.connectionId = this.data.connectionId;
this.connectionData = this.data;
callback();
});
this.Then(/^the region should match the offering region$/, function(callback) {
this.assert.equal(this.offering.region, this.data.region);
callback();
});
this.Then(/^I describe connection details for the connection$/, function(callback) {
this.Then(/^I describe the connection$/, function(callback) {
var params = {connectionId: this.connectionId};
this.request(null, 'describeConnectionDetail', params, callback);
this.request(null, 'describeConnections', params, callback);
});
this.Then(/^the bandwidth should match the offering bandwidth$/, function(callback) {
this.assert.equal(this.offering.bandwidth, this.data.bandwidth);
this.Then(/^the bandwidth should match the connection bandwidth$/, function(callback) {
this.assert.equal(this.connectionData.bandwidth, this.data.connections[0].bandwidth);
callback();

@@ -71,5 +53,6 @@ });

this.Given(/^I create a Direct Connect connection with an invalid offering ID$/, function(callback) {
this.Given(/^I create a Direct Connect connection with an invalid location$/, function(callback) {
var params = {
offeringId: 'INVALID_OFFERING_ID',
bandwidth: '1Gbps',
location: 'INVALID_LOCATION',
connectionName: this.uniqueName('aws-sdk-js')

@@ -76,0 +59,0 @@ };

@@ -28,3 +28,3 @@ /**

*/
VERSION: '1.9.0',
VERSION: '1.10.0',

@@ -31,0 +31,0 @@ /**

@@ -20,6 +20,16 @@ /**

/**
* @api private
* The service class representing an AWS service.
*
* @abstract
*
* @!attribute apiVersions
* @return [Array<String>] the list of API versions supported by this service.
* @readonly
*/
AWS.Service = inherit({
/**
* Create a new service object with a configuration object
*
* @param config [map] a map of configuration options
*/
constructor: function Service(config) {

@@ -35,2 +45,5 @@ if (!this.loadServiceClass) {

/**
* @api private
*/
initialize: function initialize(config) {

@@ -44,2 +57,5 @@ AWS.util.hideProperties(this, ['client']);

/**
* @api private
*/
loadServiceClass: function loadServiceClass(serviceConfig) {

@@ -62,2 +78,5 @@ var config = serviceConfig;

/**
* @api private
*/
getLatestServiceClass: function getLatestServiceClass(version) {

@@ -72,2 +91,5 @@ version = this.getLatestServiceVersion(version);

/**
* @api private
*/
getLatestServiceVersion: function getLatestServiceVersion(version) {

@@ -107,6 +129,25 @@ /*jshint maxcomplexity:10*/

/**
* @api private
*/
api: {},
/**
* @api private
*/
defaultRetryCount: 3,
/**
* Calls an operation on a service with the given input parameters.
*
* @param operation [String] the name of the operation to call on the service.
* @param params [map] a map of input options for the operation
* @callback callback function(err, data)
* If a callback is supplied, it is called when a response is returned
* from the service.
* @param err [Error] the error object returned from the request.
* Set to `null` if the request is successful.
* @param data [Object] the de-serialized data returned from
* the request. Set to `null` if a request error occurs.
*/
makeRequest: function makeRequest(operation, params, callback) {

@@ -140,2 +181,5 @@ if (typeof params === 'function') {

/**
* @api private
*/
addAllRequestListeners: function addAllRequestListeners(request) {

@@ -161,5 +205,14 @@ var list = [AWS.events, AWS.EventListeners.Core,

/**
* Override this method to setup any custom request listeners for each
* new request to the service.
*
* @abstract
*/
setupRequestListeners: function setupRequestListeners() {
},
/**
* @api private
*/
serviceInterface: function serviceInterface() {

@@ -179,2 +232,5 @@ /*jshint maxcomplexity:8*/

/**
* @api private
*/
successfulResponse: function successfulResponse(resp) {

@@ -187,2 +243,4 @@ return resp.httpResponse.statusCode < 300;

* the defaultRetryCount can be overriden by service classes.
*
* @api private
*/

@@ -197,2 +255,5 @@ numRetries: function numRetries() {

/**
* @api private
*/
retryDelays: function retryDelays() {

@@ -207,2 +268,5 @@ var retryCount = this.numRetries();

/**
* @api private
*/
retryableError: function retryableError(error) {

@@ -216,2 +280,5 @@ if (this.networkingError(error)) return true;

/**
* @api private
*/
networkingError: function networkingError(error) {

@@ -221,2 +288,5 @@ return error.code == 'NetworkingError';

/**
* @api private
*/
expiredCredentialsError: function expiredCredentialsError(error) {

@@ -227,2 +297,5 @@ // TODO : this only handles *one* of the expired credential codes

/**
* @api private
*/
throttledError: function throttledError(error) {

@@ -233,2 +306,5 @@ // this logic varies between services

/**
* @api private
*/
setEndpoint: function setEndpoint(endpoint) {

@@ -245,2 +321,5 @@ if (endpoint) {

/**
* @api private
*/
paginationConfig: function paginationConfig(operation, throwException) {

@@ -265,2 +344,4 @@ function fail(name) {

* Adds one method for each operation described in the api configuration
*
* @api private
*/

@@ -276,2 +357,13 @@ defineMethods: function defineMethods(svc) {

/**
* Defines a new Service class using a service identifier and list of versions
* including an optional set of features (functions) to apply to the class
* prototype.
*
* @param serviceIdentifier [String] the identifier for the service
* @param versions [Array<String>] a list of versions that work with this
* service
* @param features [Object] an object to attach to the prototype
* @return [Class<Service>] the service class defined by this function.
*/
defineService: function defineService(serviceIdentifier, versions, features) {

@@ -294,2 +386,3 @@ if (!AWS.util.isType(versions, Array)) {

svc.services = svc.services || services;
svc.apiVersions = Object.keys(svc.services).sort();
svc.serviceIdentifier = svc.serviceIdentifier || serviceIdentifier;

@@ -304,2 +397,5 @@ } else { // defineService called with an API

/**
* @api private
*/
defineServiceApi: function defineServiceApi(superclass, version) {

@@ -319,2 +415,5 @@ var svc = inherit(superclass, {

}
if (!superclass.services.hasOwnProperty(version)) {
superclass.apiVersions.push(version);
}
superclass.services[version] = svc;

@@ -321,0 +420,0 @@ } else {

@@ -26,8 +26,8 @@ /**

operations: {
createConnection: {
name: 'CreateConnection',
allocateConnectionOnInterconnect: {
name: 'AllocateConnectionOnInterconnect',
input: {
type: 'structure',
members: {
offeringId: {
bandwidth: {
required: true

@@ -37,2 +37,12 @@ },

required: true
},
ownerAccount: {
required: true
},
interconnectId: {
required: true
},
vlan: {
type: 'integer',
required: true
}

@@ -44,2 +54,4 @@ }

members: {
ownerAccount: {
},
connectionId: {

@@ -54,2 +66,9 @@ },

location: {
},
bandwidth: {
},
vlan: {
type: 'integer'
},
partnerName: {
}

@@ -59,4 +78,4 @@ }

},
createPrivateVirtualInterface: {
name: 'CreatePrivateVirtualInterface',
allocatePrivateVirtualInterface: {
name: 'AllocatePrivateVirtualInterface',
input: {

@@ -66,13 +85,20 @@ type: 'structure',

connectionId: {
required: true
},
newPrivateVirtualInterface: {
ownerAccount: {
required: true
},
newPrivateVirtualInterfaceAllocation: {
type: 'structure',
members: {
virtualInterfaceName: {
required: true
},
vlan: {
type: 'integer'
type: 'integer',
required: true
},
asn: {
type: 'integer'
type: 'integer',
required: true
},

@@ -84,6 +110,5 @@ authKey: {

customerAddress: {
},
virtualGatewayId: {
}
}
},
required: true
}

@@ -95,2 +120,4 @@ }

members: {
ownerAccount: {
},
virtualInterfaceId: {

@@ -137,4 +164,4 @@ },

},
createPublicVirtualInterface: {
name: 'CreatePublicVirtualInterface',
allocatePublicVirtualInterface: {
name: 'AllocatePublicVirtualInterface',
input: {

@@ -144,13 +171,20 @@ type: 'structure',

connectionId: {
required: true
},
newPublicVirtualInterface: {
ownerAccount: {
required: true
},
newPublicVirtualInterfaceAllocation: {
type: 'structure',
members: {
virtualInterfaceName: {
required: true
},
vlan: {
type: 'integer'
type: 'integer',
required: true
},
asn: {
type: 'integer'
type: 'integer',
required: true
},

@@ -160,4 +194,6 @@ authKey: {

amazonAddress: {
required: true
},
customerAddress: {
required: true
},

@@ -172,5 +208,7 @@ routeFilterPrefixes: {

}
}
},
required: true
}
}
},
required: true
}

@@ -182,2 +220,4 @@ }

members: {
ownerAccount: {
},
virtualInterfaceId: {

@@ -224,4 +264,4 @@ },

},
deleteConnection: {
name: 'DeleteConnection',
confirmConnection: {
name: 'ConfirmConnection',
input: {

@@ -238,2 +278,67 @@ type: 'structure',

members: {
connectionState: {
}
}
}
},
confirmPrivateVirtualInterface: {
name: 'ConfirmPrivateVirtualInterface',
input: {
type: 'structure',
members: {
virtualInterfaceId: {
required: true
},
virtualGatewayId: {
required: true
}
}
},
output: {
type: 'structure',
members: {
virtualInterfaceState: {
}
}
}
},
confirmPublicVirtualInterface: {
name: 'ConfirmPublicVirtualInterface',
input: {
type: 'structure',
members: {
virtualInterfaceId: {
required: true
}
}
},
output: {
type: 'structure',
members: {
virtualInterfaceState: {
}
}
}
},
createConnection: {
name: 'CreateConnection',
input: {
type: 'structure',
members: {
location: {
required: true
},
bandwidth: {
required: true
},
connectionName: {
required: true
}
}
},
output: {
type: 'structure',
members: {
ownerAccount: {
},
connectionId: {

@@ -248,2 +353,9 @@ },

location: {
},
bandwidth: {
},
vlan: {
type: 'integer'
},
partnerName: {
}

@@ -253,8 +365,15 @@ }

},
deleteVirtualInterface: {
name: 'DeleteVirtualInterface',
createInterconnect: {
name: 'CreateInterconnect',
input: {
type: 'structure',
members: {
virtualInterfaceId: {
interconnectName: {
required: true
},
bandwidth: {
required: true
},
location: {
required: true
}

@@ -266,3 +385,13 @@ }

members: {
virtualInterfaceState: {
interconnectId: {
},
interconnectName: {
},
interconnectState: {
},
region: {
},
location: {
},
bandwidth: {
}

@@ -272,4 +401,4 @@ }

},
describeConnectionDetail: {
name: 'DescribeConnectionDetail',
createPrivateVirtualInterface: {
name: 'CreatePrivateVirtualInterface',
input: {

@@ -280,2 +409,28 @@ type: 'structure',

required: true
},
newPrivateVirtualInterface: {
type: 'structure',
members: {
virtualInterfaceName: {
required: true
},
vlan: {
type: 'integer',
required: true
},
asn: {
type: 'integer',
required: true
},
authKey: {
},
amazonAddress: {
},
customerAddress: {
},
virtualGatewayId: {
required: true
}
},
required: true
}

@@ -287,15 +442,33 @@ }

members: {
ownerAccount: {
},
virtualInterfaceId: {
},
location: {
},
connectionId: {
},
connectionName: {
virtualInterfaceType: {
},
connectionState: {
virtualInterfaceName: {
},
region: {
vlan: {
type: 'integer'
},
location: {
asn: {
type: 'integer'
},
bandwidth: {
authKey: {
},
connectionCosts: {
amazonAddress: {
},
customerAddress: {
},
virtualInterfaceState: {
},
customerRouterConfig: {
},
virtualGatewayId: {
},
routeFilterPrefixes: {
type: 'list',

@@ -305,14 +478,90 @@ members: {

members: {
name: {
},
unit: {
},
currencyCode: {
},
amount: {
cidr: {
}
}
}
}
}
}
},
createPublicVirtualInterface: {
name: 'CreatePublicVirtualInterface',
input: {
type: 'structure',
members: {
connectionId: {
required: true
},
orderSteps: {
newPublicVirtualInterface: {
type: 'structure',
members: {
virtualInterfaceName: {
required: true
},
vlan: {
type: 'integer',
required: true
},
asn: {
type: 'integer',
required: true
},
authKey: {
},
amazonAddress: {
required: true
},
customerAddress: {
required: true
},
routeFilterPrefixes: {
type: 'list',
members: {
type: 'structure',
members: {
cidr: {
}
}
},
required: true
}
},
required: true
}
}
},
output: {
type: 'structure',
members: {
ownerAccount: {
},
virtualInterfaceId: {
},
location: {
},
connectionId: {
},
virtualInterfaceType: {
},
virtualInterfaceName: {
},
vlan: {
type: 'integer'
},
asn: {
type: 'integer'
},
authKey: {
},
amazonAddress: {
},
customerAddress: {
},
virtualInterfaceState: {
},
customerRouterConfig: {
},
virtualGatewayId: {
},
routeFilterPrefixes: {
type: 'list',

@@ -322,14 +571,3 @@ members: {

members: {
number: {
},
name: {
},
description: {
},
owner: {
},
sla: {
type: 'integer'
},
stepState: {
cidr: {
}

@@ -342,2 +580,73 @@ }

},
deleteConnection: {
name: 'DeleteConnection',
input: {
type: 'structure',
members: {
connectionId: {
required: true
}
}
},
output: {
type: 'structure',
members: {
ownerAccount: {
},
connectionId: {
},
connectionName: {
},
connectionState: {
},
region: {
},
location: {
},
bandwidth: {
},
vlan: {
type: 'integer'
},
partnerName: {
}
}
}
},
deleteInterconnect: {
name: 'DeleteInterconnect',
input: {
type: 'structure',
members: {
interconnectId: {
required: true
}
}
},
output: {
type: 'structure',
members: {
interconnectState: {
}
}
}
},
deleteVirtualInterface: {
name: 'DeleteVirtualInterface',
input: {
type: 'structure',
members: {
virtualInterfaceId: {
required: true
}
}
},
output: {
type: 'structure',
members: {
virtualInterfaceState: {
}
}
}
},
describeConnections: {

@@ -360,2 +669,4 @@ name: 'DescribeConnections',

members: {
ownerAccount: {
},
connectionId: {

@@ -370,2 +681,9 @@ },

location: {
},
bandwidth: {
},
vlan: {
type: 'integer'
},
partnerName: {
}

@@ -378,8 +696,8 @@ }

},
describeOfferingDetail: {
name: 'DescribeOfferingDetail',
describeConnectionsOnInterconnect: {
name: 'DescribeConnectionsOnInterconnect',
input: {
type: 'structure',
members: {
offeringId: {
interconnectId: {
required: true

@@ -392,15 +710,3 @@ }

members: {
offeringId: {
},
region: {
},
location: {
},
offeringName: {
},
description: {
},
bandwidth: {
},
connectionCosts: {
connections: {
type: 'list',

@@ -410,14 +716,40 @@ members: {

members: {
name: {
ownerAccount: {
},
unit: {
connectionId: {
},
currencyCode: {
connectionName: {
},
amount: {
connectionState: {
},
region: {
},
location: {
},
bandwidth: {
},
vlan: {
type: 'integer'
},
partnerName: {
}
}
}
},
orderSteps: {
}
}
}
},
describeInterconnects: {
name: 'DescribeInterconnects',
input: {
type: 'structure',
members: {
interconnectId: {
}
}
},
output: {
type: 'structure',
members: {
interconnects: {
type: 'list',

@@ -427,12 +759,13 @@ members: {

members: {
number: {
interconnectId: {
},
name: {
interconnectName: {
},
description: {
interconnectState: {
},
owner: {
region: {
},
sla: {
type: 'integer'
location: {
},
bandwidth: {
}

@@ -445,4 +778,4 @@ }

},
describeOfferings: {
name: 'DescribeOfferings',
describeLocations: {
name: 'DescribeLocations',
input: {

@@ -456,3 +789,3 @@ type: 'structure',

members: {
offerings: {
locations: {
type: 'list',

@@ -462,29 +795,5 @@ members: {

members: {
offeringId: {
locationCode: {
},
region: {
},
location: {
},
offeringName: {
},
description: {
},
bandwidth: {
},
connectionCosts: {
type: 'list',
members: {
type: 'structure',
members: {
name: {
},
unit: {
},
currencyCode: {
},
amount: {
}
}
}
locationName: {
}

@@ -541,2 +850,4 @@ }

members: {
ownerAccount: {
},
virtualInterfaceId: {

@@ -543,0 +854,0 @@ },

{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "1.9.0",
"version": "1.10.0",
"author": {

@@ -6,0 +6,0 @@ "name":"Amazon Web Services",

@@ -5,2 +5,4 @@ # AWS SDK for Node.js [![NPM version](https://badge.fury.io/js/aws-sdk.png)](http://badge.fury.io/js/aws-sdk) [![Build Status](https://travis-ci.org/aws/aws-sdk-js.png?branch=master)](https://travis-ci.org/aws/aws-sdk-js)

Release notes can be found at http://aws.amazon.com/releasenotes/SDK/JavaScript
## Installing

@@ -7,0 +9,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc