Socket
Socket
Sign inDemoInstall

aws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1964
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 2.0.0-rc1 to 2.0.0-rc2

features/cloudtrail/cloudtrail.feature

6

doc-src/guide/browser-examples.md

@@ -10,4 +10,8 @@ # @title Examples in the Browser

<script src="https://sdk.amazonaws.com/js/aws-sdk.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc2.min.js"></script>
<script type="text/javascript">
// See the Configuring section to configure credentials in the SDK
AWS.config.credentials = ...;
// Configure your region
AWS.config.region = 'us-west-2';

@@ -14,0 +18,0 @@ </script>

4

doc-src/guide/browser-intro.md

@@ -11,6 +11,6 @@ # @title AWS SDK for JavaScript in the Browser

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc2.min.js"></script>
You can also download this package by clicking the following link:
[aws-sdk-2.0.0-rc1.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js)
[aws-sdk-2.0.0-rc2.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc2.min.js)

@@ -17,0 +17,0 @@ Once the SDK is loaded in your page, the module will be available from

@@ -43,2 +43,9 @@ /**

});
this.Given(/^I try to assume role with SAML$/, function(callback) {
var arn = 'arn:aws:iam::123456789:role/Role';
var token = 'TOKENVALUETOKENVALUETOKENVALUETOKENVALUE';
var params = {RoleArn: arn, PrincipalArn: arn, SAMLAssertion: token};
this.request(null, 'assumeRoleWithSAML', params, callback, false);
});
};

@@ -131,4 +131,4 @@ /**

* Node.js environment.
* * **timeout** [Integer] &mdash; The number of milliseconds to wait before
* giving up on a connection attempt. Defaults to no timeout.
* * **timeout** [Integer] &mdash; Sets the socket to timeout after timeout
* milliseconds of inactivity on the socket. Defaults to no timeout.
* @option options apiVersion [String, Date] a String in YYYY-MM-DD format

@@ -135,0 +135,0 @@ * (or a date) that represents the latest possible API version that can be

@@ -31,3 +31,3 @@ /**

*/
VERSION: '2.0.0-rc1',
VERSION: '2.0.0-rc2',

@@ -57,2 +57,3 @@ /**

require('./credentials/web_identity_credentials');
require('./credentials/saml_credentials');

@@ -59,0 +60,0 @@ require('./config');

@@ -91,2 +91,3 @@ /**

});
AWS.NodeHttpClient.sslAgent.setMaxListeners(0);
}

@@ -93,0 +94,0 @@ return AWS.NodeHttpClient.sslAgent;

@@ -27,5 +27,4 @@ /**

var endpoint = httpRequest.endpoint;
var xhr = new XMLHttpRequest();
var emitter = new EventEmitter();
var href = endpoint.protocol + '//' + endpoint.host;
var href = endpoint.protocol + '//' + endpoint.hostname;
if (endpoint.port != 80 && endpoint.port != 443) {

@@ -36,2 +35,5 @@ href += ':' + endpoint.port;

var xhr = new XMLHttpRequest();
httpRequest.stream = xhr;
if (httpOptions.timeout) {

@@ -96,3 +98,3 @@ xhr.timeout = httpOptions.timeout;

var value = line.substring(key.length + 2);
headers[key] = value;
if (key.length > 0) headers[key] = value;
});

@@ -99,0 +101,0 @@ return headers;

@@ -34,3 +34,3 @@ /**

toJSON: function toJSON(params) {
build: function build(params) {
return JSON.stringify(this.translate(this.rules, params));

@@ -37,0 +37,0 @@ },

@@ -33,3 +33,3 @@ /**

httpRequest.path = '/';
httpRequest.body = builder.toJSON(req.params || {});
httpRequest.body = builder.build(req.params || {});
httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version;

@@ -36,0 +36,0 @@ httpRequest.headers['X-Amz-Target'] = target;

@@ -68,3 +68,3 @@ /**

if (rules.type === 'structure') {
req.httpRequest.body = this.toJSON(params, input, req.service.api);
req.httpRequest.body = this.buildJSON(params, input, req.service.api);
} else {

@@ -82,3 +82,3 @@ // non-xml paylaod

});
req.httpRequest.body = this.toJSON(params, input, req.service.api);
req.httpRequest.body = this.buildJSON(params, input, req.service.api);

@@ -88,7 +88,7 @@ }

toJSON: function toJSON(params, rules, api) {
buildJSON: function buildJSON(params, rules, api) {
var builder = new AWS.JSON.Builder(rules, api);
return builder.toJSON(params);
return builder.build(params);
}
};

@@ -175,4 +175,31 @@ /**

/**
* Makes an unauthenticated request to a service
*
* @api private
*/
makeUnauthenticatedRequest: function makeUnauthenticatedRequest(operation, params, callback) {
if (typeof params === 'function') {
callback = params;
params = {};
}
var request = this.makeRequest(operation, params);
request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS);
request.removeListener('sign', AWS.EventListeners.Core.SIGN);
request.addListener('build', function convertToGET(request) {
request.httpRequest.method = 'GET';
request.httpRequest.path = '/?' + request.httpRequest.body;
request.httpRequest.body = '';
// don't need these headers on a GET request
delete request.httpRequest.headers['Content-Length'];
delete request.httpRequest.headers['Content-Type'];
});
return callback ? request.send(callback) : request;
},
/**
* @api private
*/
addAllRequestListeners: function addAllRequestListeners(request) {

@@ -179,0 +206,0 @@ var list = [AWS.events, AWS.EventListeners.Core,

@@ -22,2 +22,3 @@ /**

require('./services/cloudsearch');
require('./services/cloudtrail');
require('./services/cloudwatch');

@@ -24,0 +25,0 @@ require('./services/datapipeline');

@@ -83,2 +83,6 @@ /**

},
StackPolicyBody: {
},
StackPolicyURL: {
},
Tags: {

@@ -389,2 +393,20 @@ type: 'list',

},
getStackPolicy: {
name: 'GetStackPolicy',
input: {
type: 'structure',
members: {
StackName: {
required: true
}
}
},
output: {
type: 'structure',
members: {
StackPolicyBody: {
}
}
}
},
getTemplate: {

@@ -498,2 +520,22 @@ name: 'GetTemplate',

},
setStackPolicy: {
name: 'SetStackPolicy',
input: {
type: 'structure',
members: {
StackName: {
required: true
},
StackPolicyBody: {
},
StackPolicyURL: {
}
}
},
output: {
type: 'structure',
members: {
}
}
},
updateStack: {

@@ -511,2 +553,6 @@ name: 'UpdateStack',

},
StackPolicyDuringUpdateBody: {
},
StackPolicyDuringUpdateURL: {
},
Parameters: {

@@ -528,2 +574,6 @@ type: 'list',

}
},
StackPolicyBody: {
},
StackPolicyURL: {
}

@@ -530,0 +580,0 @@ }

@@ -22,3 +22,3 @@ /**

serviceFullName: 'Amazon CloudSearch',
signatureVersion: 'v2',
signatureVersion: 'v4',
timestampFormat: 'iso8601',

@@ -25,0 +25,0 @@ operations: {

@@ -453,2 +453,31 @@ /**

},
describeLoadBalancerAttributes: {
name: 'DescribeLoadBalancerAttributes',
input: {
type: 'structure',
members: {
LoadBalancerName: {
required: true
}
}
},
output: {
type: 'structure',
members: {
LoadBalancerAttributes: {
type: 'structure',
members: {
CrossZoneLoadBalancing: {
type: 'structure',
members: {
Enabled: {
type: 'boolean'
}
}
}
}
}
}
}
},
describeLoadBalancerPolicies: {

@@ -806,2 +835,33 @@ name: 'DescribeLoadBalancerPolicies',

},
modifyLoadBalancerAttributes: {
name: 'ModifyLoadBalancerAttributes',
input: {
type: 'structure',
members: {
LoadBalancerName: {
required: true
},
LoadBalancerAttributes: {
type: 'structure',
members: {
CrossZoneLoadBalancing: {
type: 'structure',
members: {
Enabled: {
type: 'boolean',
required: true
}
}
}
},
required: true
}
}
},
output: {
type: 'structure',
members: {
}
}
},
registerInstancesWithLoadBalancer: {

@@ -808,0 +868,0 @@ name: 'RegisterInstancesWithLoadBalancer',

@@ -288,2 +288,23 @@ /**

},
createSAMLProvider: {
name: 'CreateSAMLProvider',
input: {
type: 'structure',
members: {
SAMLMetadataDocument: {
required: true
},
Name: {
required: true
}
}
},
output: {
type: 'structure',
members: {
SAMLProviderArn: {
}
}
}
},
createUser: {

@@ -541,2 +562,18 @@ name: 'CreateUser',

},
deleteSAMLProvider: {
name: 'DeleteSAMLProvider',
input: {
type: 'structure',
members: {
SAMLProviderArn: {
required: true
}
}
},
output: {
type: 'structure',
members: {
}
}
},
deleteServerCertificate: {

@@ -682,2 +719,8 @@ name: 'DeleteServerCertificate',

type: 'boolean'
},
ExpirePasswords: {
type: 'boolean'
},
MaxPasswordAge: {
type: 'integer'
}

@@ -934,2 +977,26 @@ }

},
getSAMLProvider: {
name: 'GetSAMLProvider',
input: {
type: 'structure',
members: {
SAMLProviderArn: {
required: true
}
}
},
output: {
type: 'structure',
members: {
SAMLMetadataDocument: {
},
CreateDate: {
type: 'timestamp'
},
ValidUntil: {
type: 'timestamp'
}
}
}
},
getServerCertificate: {

@@ -1470,2 +1537,31 @@ name: 'GetServerCertificate',

},
listSAMLProviders: {
name: 'ListSAMLProviders',
input: {
type: 'structure',
members: {
}
},
output: {
type: 'structure',
members: {
SAMLProviderList: {
type: 'list',
members: {
type: 'structure',
members: {
Arn: {
},
ValidUntil: {
type: 'timestamp'
},
CreateDate: {
type: 'timestamp'
}
}
}
}
}
}
},
listServerCertificates: {

@@ -1933,2 +2029,23 @@ name: 'ListServerCertificates',

},
updateSAMLProvider: {
name: 'UpdateSAMLProvider',
input: {
type: 'structure',
members: {
SAMLMetadataDocument: {
required: true
},
SAMLProviderArn: {
required: true
}
}
},
output: {
type: 'structure',
members: {
SAMLProviderArn: {
}
}
}
},
updateServerCertificate: {

@@ -1935,0 +2052,0 @@ name: 'UpdateServerCertificate',

@@ -79,2 +79,55 @@ /**

},
assumeRoleWithSAML: {
name: 'AssumeRoleWithSAML',
input: {
type: 'structure',
members: {
RoleArn: {
required: true
},
PrincipalArn: {
required: true
},
SAMLAssertion: {
required: true
},
Policy: {
},
DurationSeconds: {
type: 'integer'
}
}
},
output: {
type: 'structure',
members: {
Credentials: {
type: 'structure',
members: {
AccessKeyId: {
},
SecretAccessKey: {
},
SessionToken: {
},
Expiration: {
type: 'timestamp'
}
}
},
AssumedRoleUser: {
type: 'structure',
members: {
AssumedRoleId: {
},
Arn: {
}
}
},
PackedPolicySize: {
type: 'integer'
}
}
}
},
assumeRoleWithWebIdentity: {

@@ -81,0 +134,0 @@ name: 'AssumeRoleWithWebIdentity',

@@ -61,3 +61,2 @@ /**

serviceCode: {
required: true
},

@@ -67,3 +66,2 @@ severityCode: {

categoryCode: {
required: true
},

@@ -70,0 +68,0 @@ communicationBody: {

@@ -18,3 +18,3 @@ /**

AWS.EC2 = AWS.Service.defineService('ec2', ['2013-06-15*', '2013-07-15*', '2013-08-15*', '2013-10-01'], {
AWS.EC2 = AWS.Service.defineService('ec2', ['2013-06-15*', '2013-07-15*', '2013-08-15*', '2013-10-01*', '2013-10-15'], {
setupRequestListeners: function setupRequestListeners(request) {

@@ -21,0 +21,0 @@ request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR);

@@ -18,4 +18,4 @@ /**

AWS.RDS = AWS.Service.defineService('rds', ['2013-05-15', '2013-02-12', '2013-01-10']);
AWS.RDS = AWS.Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-05-15*', '2013-09-09']);
module.exports = AWS.RDS;

@@ -76,4 +76,6 @@ /**

httpRequest.headers['Content-Type'] = 'application/octet-stream';
if (AWS.util.isBrowser() && navigator.userAgent.match(/Firefox/)) {
var charset = '; charset=' + document.characterSet;
}
if (AWS.util.isBrowser() && navigator.userAgent.match(/Firefox/)) {
if (!httpRequest.headers['Content-Type'].match(/;/)) {
var charset = '; charset=UTF-8';
httpRequest.headers['Content-Type'] += charset;

@@ -80,0 +82,0 @@ }

@@ -18,4 +18,4 @@ /**

AWS.StorageGateway = AWS.Service.defineService('storagegateway', ['2012-06-30']);
AWS.StorageGateway = AWS.Service.defineService('storagegateway', ['2013-06-30', '2012-06-30']);
module.exports = AWS.StorageGateway;

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

AWS.STS.prototype.assumeRoleWithWebIdentity = function assumeRoleWithWebIdentity(params, callback) {
if (typeof params === 'function') {
callback = params;
params = {};
}
return this.makeUnauthenticatedRequest('assumeRoleWithWebIdentity', params, callback);
};
var request = this.makeRequest('assumeRoleWithWebIdentity', params);
request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS);
request.removeListener('sign', AWS.EventListeners.Core.SIGN);
request.addListener('build', function convertToGET(request) {
request.httpRequest.method = 'GET';
request.httpRequest.path = '/?' + request.httpRequest.body;
request.httpRequest.body = '';
// don't need these headers on a GET request
delete request.httpRequest.headers['Content-Length'];
delete request.httpRequest.headers['Content-Type'];
});
return callback ? request.send(callback) : request;
AWS.STS.prototype.assumeRoleWithSAML = function assumeRoleWithSAML(params, callback) {
return this.makeUnauthenticatedRequest('assumeRoleWithSAML', params, callback);
};
module.exports = AWS.STS;

@@ -38,2 +38,3 @@ /**

'requestPayment': 1,
'restore': 1,
'tagging': 1,

@@ -40,0 +41,0 @@ 'torrent': 1,

{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.0.0-rc1",
"version": "2.0.0-rc2",
"author": {

@@ -16,12 +16,12 @@ "name":"Amazon Web Services",

"devDependencies": {
"repl.history": "latest",
"jasmine-node": "latest",
"semver": "latest",
"coffee-script": "latest",
"jshint": "latest",
"cucumber": "latest"
"repl.history": "",
"jasmine-node": "",
"semver": "",
"coffee-script": "",
"jshint": "",
"cucumber": ""
},
"dependencies": {
"xml2js": "0.2.4",
"xmlbuilder": "latest"
"xmlbuilder": "0.4.2"
},

@@ -28,0 +28,0 @@ "main": "lib/aws.js",

@@ -15,3 +15,3 @@ # AWS SDK for JavaScript [![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)

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc2.min.js"></script>

@@ -52,3 +52,3 @@ ### In Node.js

<tr><td>2012-08-10</td></tr>
<tr><td>Amazon Elastic Compute Cloud</td><td>AWS.EC2</td><td>2013-10-01</td></tr>
<tr><td>Amazon Elastic Compute Cloud</td><td>AWS.EC2</td><td>2013-10-15</td></tr>
<tr><td>Amazon Elastic MapReduce</td><td>AWS.EMR</td><td>2009-03-31</td></tr>

@@ -61,3 +61,3 @@ <tr><td>Amazon Elastic Transcoder</td><td>AWS.ElasticTranscoder</td><td>2012-09-25</td></tr>

<tr><td>2013-02-12</td></tr>
<tr><td>2013-05-15</td></tr>
<tr><td>2013-09-09</td></tr>
<tr><td>Amazon Route 53</td><td>AWS.Route53</td><td>2012-12-12</td></tr>

@@ -72,2 +72,3 @@ <tr><td>Amazon Simple Email Service</td><td>AWS.SES</td><td>2010-12-01</td></tr>

<tr><td>AWS CloudFormation</td><td>AWS.CloudFormation</td><td>2010-05-15</td></tr>
<tr><td>AWS CloudTrail</td><td>AWS.CloudTrail</td><td>2013-11-01</td></tr>
<tr><td>AWS Data Pipeline</td><td>AWS.DataPipeline</td><td>2012-10-29</td></tr>

@@ -80,3 +81,4 @@ <tr><td>AWS Direct Connect</td><td>AWS.DirectConnect</td><td>2012-10-25</td></tr>

<tr><td>AWS Security Token Service</td><td>AWS.STS</td><td>2011-06-15</td></tr>
<tr><td>AWS Storage Gateway</td><td>AWS.StorageGateway</td><td>2012-06-30</td></tr>
<tr><td rowspan="2">AWS Storage Gateway</td><td rowspan="2">AWS.StorageGateway</td><td>2012-06-30</td></tr>
<tr><td>2013-06-30</td></tr>
<tr><td>AWS Support</td><td>AWS.Support</td><td>2013-04-15</td></tr>

@@ -83,0 +85,0 @@ <tr><td>Elastic Load Balancing</td><td>AWS.ELB</td><td>2012-06-01</td></tr>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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