aws-sdk
Advanced tools
Comparing version 2.0.0-rc8 to 2.0.0-rc9
@@ -8,3 +8,3 @@ { | ||
"serviceFullName": "Amazon CloudWatch", | ||
"signatureVersion": "v2", | ||
"signatureVersion": "v4", | ||
"timestampFormat": "iso8601", | ||
@@ -11,0 +11,0 @@ "operations": { |
@@ -1801,3 +1801,3 @@ { | ||
"outputToken": "UnprocessedKeys", | ||
"resultKey": "Items" | ||
"resultKey": "Responses[]" | ||
}, | ||
@@ -1807,2 +1807,3 @@ "listTables": { | ||
"outputToken": "LastEvaluatedTableName", | ||
"limitKey": "Limit", | ||
"resultKey": "TableNames" | ||
@@ -1813,2 +1814,3 @@ }, | ||
"outputToken": "LastEvaluatedKey", | ||
"limitKey": "Limit", | ||
"resultKey": "Items" | ||
@@ -1819,2 +1821,3 @@ }, | ||
"outputToken": "LastEvaluatedKey", | ||
"limitKey": "Limit", | ||
"resultKey": "Items" | ||
@@ -1821,0 +1824,0 @@ } |
@@ -2085,5 +2085,9 @@ { | ||
"listPipelines": { | ||
"inputToken": "PageToken", | ||
"outputToken": "NextPageToken", | ||
"resultKey": "Pipelines" | ||
}, | ||
"listPresets": { | ||
"inputToken": "PageToken", | ||
"outputToken": "NextPageToken", | ||
"resultKey": "Presets" | ||
@@ -2090,0 +2094,0 @@ } |
@@ -1049,4 +1049,29 @@ { | ||
"resultKey": "JobFlows" | ||
}, | ||
"listBootstrapActions": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"resultKey": "BootstrapActions" | ||
}, | ||
"listClusters": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"resultKey": "Clusters" | ||
}, | ||
"listInstanceGroups": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"resultKey": "InstanceGroups" | ||
}, | ||
"listInstances": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"resultKey": "Instances" | ||
}, | ||
"listSteps": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"resultKey": "Steps" | ||
} | ||
} | ||
} |
@@ -796,3 +796,3 @@ { | ||
"inputToken": "marker", | ||
"outputToken": "marker", | ||
"outputToken": "Marker", | ||
"limitKey": "limit", | ||
@@ -803,3 +803,3 @@ "resultKey": "UploadsList" | ||
"inputToken": "marker", | ||
"outputToken": "marker", | ||
"outputToken": "Marker", | ||
"limitKey": "limit", | ||
@@ -810,3 +810,3 @@ "resultKey": "Parts" | ||
"inputToken": "marker", | ||
"outputToken": "marker", | ||
"outputToken": "Marker", | ||
"limitKey": "limit", | ||
@@ -813,0 +813,0 @@ "resultKey": "VaultList" |
@@ -2002,2 +2002,5 @@ { | ||
}, | ||
"listSAMLProviders": { | ||
"resultKey": "SAMLProviderList" | ||
}, | ||
"listServerCertificates": { | ||
@@ -2004,0 +2007,0 @@ "inputToken": "Marker", |
@@ -186,2 +186,3 @@ { | ||
"inputToken": "Marker", | ||
"outputToken": "Jobs[-1].JobId", | ||
"moreResults": "IsTruncated", | ||
@@ -188,0 +189,0 @@ "limitKey": "MaxJobs", |
@@ -559,2 +559,12 @@ { | ||
"pagination": { | ||
"listEndpointsByPlatformApplication": { | ||
"inputToken": "NextToken", | ||
"outputToken": "NextToken", | ||
"resultKey": "Endpoints" | ||
}, | ||
"listPlatformApplications": { | ||
"inputToken": "NextToken", | ||
"outputToken": "NextToken", | ||
"resultKey": "PlatformApplications" | ||
}, | ||
"listSubscriptions": { | ||
@@ -561,0 +571,0 @@ "inputToken": "NextToken", |
@@ -879,2 +879,3 @@ { | ||
"input_token": "Marker", | ||
"output_token": "Jobs[-1].JobId", | ||
"more_results": "IsTruncated", | ||
@@ -881,0 +882,0 @@ "limit_key": "MaxJobs", |
@@ -307,2 +307,26 @@ { | ||
}, | ||
"listDeadLetterSourceQueues": { | ||
"name": "ListDeadLetterSourceQueues", | ||
"input": { | ||
"type": "structure", | ||
"members": { | ||
"QueueUrl": { | ||
"required": true | ||
} | ||
} | ||
}, | ||
"output": { | ||
"type": "structure", | ||
"members": { | ||
"QueueUrl": { | ||
"type": "list", | ||
"members": { | ||
"name": "QueueUrl" | ||
}, | ||
"flattened": true, | ||
"name": "queueUrls" | ||
} | ||
} | ||
} | ||
}, | ||
"listQueues": { | ||
@@ -309,0 +333,0 @@ "name": "ListQueues", |
@@ -1292,2 +1292,26 @@ { | ||
}, | ||
"describeTapeArchives": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"limitKey": "Limit", | ||
"resultKey": "TapeArchives" | ||
}, | ||
"describeTapeRecoveryPoints": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"limitKey": "Limit", | ||
"resultKey": "TapeRecoveryPointInfos" | ||
}, | ||
"describeTapes": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"limitKey": "Limit", | ||
"resultKey": "Tapes" | ||
}, | ||
"describeVTLDevices": { | ||
"inputToken": "Marker", | ||
"outputToken": "Marker", | ||
"limitKey": "Limit", | ||
"resultKey": "VTLDevices" | ||
}, | ||
"listGateways": { | ||
@@ -1294,0 +1318,0 @@ "inputToken": "Marker", |
@@ -498,10 +498,4 @@ { | ||
"resultKey": "summaries" | ||
}, | ||
"describeSeverityLevels": { | ||
"resultKey": "severityLevelsList" | ||
}, | ||
"describeTrustedAdvisorChecks": { | ||
"resultKey": "checks" | ||
} | ||
} | ||
} |
@@ -7,9 +7,9 @@ { | ||
"dependencies": { | ||
"browserify": "2.x", | ||
"browserify": "3.x", | ||
"through": "2.x", | ||
"uglify-js": "2.x", | ||
"underscore": "1.x", | ||
"underscore": "1.4.2", | ||
"express": "3.x", | ||
"xml2js": "0.2.4", | ||
"xmlbuilder": "latest" | ||
"xmlbuilder": "0.4.2" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -10,3 +10,3 @@ # @title Examples in the Browser | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc9.min.js"></script> | ||
<script type="text/javascript"> | ||
@@ -13,0 +13,0 @@ // See the Configuring section to configure credentials in the SDK |
@@ -11,6 +11,6 @@ # @title AWS SDK for JavaScript in the Browser | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc9.min.js"></script> | ||
You can also download this package by clicking the following link: | ||
[aws-sdk-2.0.0-rc8.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc8.min.js) | ||
[aws-sdk-2.0.0-rc9.min.js](https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc9.min.js) | ||
@@ -17,0 +17,0 @@ Once the SDK is loaded in your page, the module will be available from |
@@ -178,5 +178,5 @@ module.exports = function () { | ||
this.progress = []; | ||
var req = this.s3.getObject({Bucket: this.sharedBucket, Key: key}, function (err, data) { }); | ||
var req = this.s3.getObject({Bucket: this.sharedBucket, Key: key}); | ||
req.on('httpDownloadProgress', function (p) { self.progress.push(p) }); | ||
req.send(function (err,data) { callback(); }); | ||
req.send(callback); | ||
}); | ||
@@ -183,0 +183,0 @@ |
@@ -5,6 +5,2 @@ var AWS = require('../core'); | ||
/* jshint -W079 */ | ||
var Buffer = require('buffer').Buffer; | ||
/* jshint +W079 */ | ||
function Shape(rules, options) { | ||
@@ -156,3 +152,3 @@ if (!rules) { | ||
set_enum: function(values) { | ||
if (this.options.documentation) this.rules.enum = values; | ||
if (this.options.documentation) this.rules['enum'] = values; | ||
}, | ||
@@ -319,3 +315,3 @@ | ||
if (typeof api === 'string' || Buffer.isBuffer(api)) { | ||
if (typeof api === 'string' || AWS.util.Buffer.isBuffer(api)) { | ||
api = JSON.parse(api); | ||
@@ -322,0 +318,0 @@ } |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
VERSION: '2.0.0-rc8', | ||
VERSION: '2.0.0-rc9', | ||
@@ -19,0 +19,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
@@ -4,0 +3,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
require('../metadata_service'); | ||
@@ -4,0 +3,0 @@ |
var AWS = require('../core'); | ||
require('../credentials'); | ||
@@ -4,0 +3,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
@@ -4,0 +3,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
require('../services/sts'); | ||
@@ -5,0 +3,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
require('../services/sts'); | ||
@@ -5,0 +3,0 @@ /** |
var AWS = require('../core'); | ||
require('../credentials'); | ||
require('../services/sts'); | ||
@@ -5,0 +3,0 @@ /** |
@@ -9,6 +9,2 @@ var AWS = require('./core'); | ||
/* jshint -W079 */ | ||
var Buffer = require('buffer').Buffer; | ||
/* jshint +W079 */ | ||
/** | ||
@@ -212,3 +208,3 @@ * The namespace used to register global event listeners for request building | ||
resp.httpResponse.headers = headers; | ||
resp.httpResponse.body = new Buffer(''); | ||
resp.httpResponse.body = new AWS.util.Buffer(''); | ||
resp.httpResponse.buffers = []; | ||
@@ -228,3 +224,3 @@ resp.httpResponse.numBytes = 0; | ||
resp.httpResponse.buffers.push(new Buffer(chunk)); | ||
resp.httpResponse.buffers.push(new AWS.util.Buffer(chunk)); | ||
} | ||
@@ -231,0 +227,0 @@ }); |
@@ -110,3 +110,3 @@ var AWS = require('../core'); | ||
bufferToStream: function bufferToStream(buffer) { | ||
if (!Buffer.isBuffer(buffer)) buffer = new Buffer(buffer); | ||
if (!AWS.util.Buffer.isBuffer(buffer)) buffer = new AWS.util.Buffer(buffer); | ||
@@ -113,0 +113,0 @@ var readable = new ReadableStream(); |
@@ -26,8 +26,6 @@ var AWS = require('../core'); | ||
var failed = false; // toggle failed if invalid state is set | ||
xhr.addEventListener('readystatechange', function() { | ||
if (failed) return; // fail fast if in invalid state | ||
if (xhr.status === 0) return; // 0 code is invalid | ||
if (this.readyState === this.HEADERS_RECEIVED) { | ||
try { xhr.responseType = 'arraybuffer'; } catch (e) {} | ||
if (xhr.status === 0) { failed = true; return; } // 0 code is invalid | ||
emitter.statusCode = xhr.status; | ||
@@ -86,3 +84,3 @@ emitter.headers = self.parseHeaders(xhr.getAllResponseHeaders()); | ||
var ab = xhr.response; | ||
buffer = new Buffer(ab.byteLength); | ||
buffer = new AWS.util.Buffer(ab.byteLength); | ||
var view = new Uint8Array(ab); | ||
@@ -96,3 +94,3 @@ for (var i = 0; i < buffer.length; ++i) { | ||
if (!buffer && typeof xhr.responseText === 'string') { | ||
buffer = new Buffer(xhr.responseText); | ||
buffer = new AWS.util.Buffer(xhr.responseText); | ||
} | ||
@@ -99,0 +97,0 @@ } catch (e) {} |
@@ -154,3 +154,3 @@ var AWS = require('./core'); | ||
var Stream = require('stream').Stream; | ||
if (value instanceof Buffer || value instanceof Stream) return; | ||
if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return; | ||
} | ||
@@ -157,0 +157,0 @@ |
@@ -57,3 +57,3 @@ var AWS = require('../core'); | ||
computeChecksums: function computeChecksums(data) { | ||
if (!(data instanceof Buffer)) data = new Buffer(data); | ||
if (!AWS.util.Buffer.isBuffer(data)) data = new AWS.util.Buffer(data); | ||
@@ -86,3 +86,3 @@ var mb = 1024 * 1024; | ||
if (hashes[i+1]) { | ||
var tmpHash = new Buffer(64); | ||
var tmpHash = new AWS.util.Buffer(64); | ||
tmpHash.write(hashes[i], 0, 32, 'binary'); | ||
@@ -89,0 +89,0 @@ tmpHash.write(hashes[i+1], 32, 32, 'binary'); |
var AWS = require('../core'); | ||
/* jshint -W079 */ | ||
var Buffer = require('buffer').Buffer; | ||
/* jshint +W079 */ | ||
AWS.S3 = AWS.Service.defineService('s3', ['2006-03-01'], { | ||
@@ -96,3 +92,3 @@ /** | ||
// TODO: compute checksums for Stream objects | ||
if (!Buffer.isBuffer(req.httpRequest.body) && | ||
if (!AWS.util.Buffer.isBuffer(req.httpRequest.body) && | ||
typeof req.httpRequest.body !== 'string') { | ||
@@ -304,5 +300,5 @@ return false; | ||
getSignedUrl: function getSignedUrl(operation, params, callback) { | ||
params = params || {}; | ||
var expires = params.Expires || 900; | ||
delete params.Expires; // we can't validate this | ||
var url = require('url'); | ||
var events = ['validate', 'build', 'sign']; | ||
@@ -316,4 +312,16 @@ var request = this.makeRequest(operation, params); | ||
delete request.httpRequest.headers['X-Amz-User-Agent']; | ||
request.httpRequest.headers[expiresHeader] = parseInt( | ||
AWS.util.date.unixTimestamp() + expires, 10).toString(); | ||
if (request.service.getSignerClass() === AWS.Signers.V4) { | ||
if (expires > 604800) { // one week expiry is invalid | ||
var message = 'getSignedUrl() does not support expiry time greater ' + | ||
'than a week with SigV4 signing.'; | ||
throw AWS.util.error(new Error(), { | ||
code: 'InvalidExpiryTime', message: message, retryable: false | ||
}); | ||
} | ||
request.httpRequest.headers[expiresHeader] = expires; | ||
} else { | ||
request.httpRequest.headers[expiresHeader] = parseInt( | ||
AWS.util.date.unixTimestamp() + expires, 10).toString(); | ||
} | ||
} | ||
@@ -330,11 +338,20 @@ | ||
var auth = queryParams['Authorization'].split(':'); | ||
var auth = queryParams['Authorization'].split(' '); | ||
if (auth[0] === 'AWS') { | ||
auth = auth[1].split(':'); | ||
queryParams['AWSAccessKeyId'] = auth[0]; | ||
queryParams['Signature'] = auth[1]; | ||
} else if (auth[0] === 'AWS4-HMAC-SHA256') { // SigV4 signing | ||
auth.shift(); | ||
var rest = auth.join(' '); | ||
var signature = rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; | ||
queryParams['X-Amz-Signature'] = signature; | ||
delete queryParams['Expires']; | ||
} | ||
delete queryParams['Authorization']; | ||
delete queryParams['Host']; | ||
queryParams['AWSAccessKeyId'] = auth[0].split(' ')[1]; | ||
queryParams['Signature'] = auth[1]; | ||
// build URL | ||
var endpoint = request.httpRequest.endpoint; | ||
var parsedUrl = url.parse(request.httpRequest.path); | ||
var parsedUrl = AWS.util.urlParse(request.httpRequest.path); | ||
var querystring = AWS.util.queryParamsToString(queryParams); | ||
@@ -349,4 +366,5 @@ endpoint.pathname = parsedUrl.pathname; | ||
request.removeListener('build', this.addContentType); | ||
if (!params.Body) { // no Content-MD5 signing if body is not provided | ||
if (!params.Body) { // no Content-MD5/SHA-256 if body is not provided | ||
request.removeListener('build', this.computeContentMd5); | ||
request.removeListener('build', this.computeSha256); | ||
} | ||
@@ -357,3 +375,3 @@ | ||
if (err) callback(err, null); | ||
else callback(null, url.format(request.httpRequest.endpoint)); | ||
else callback(null, AWS.util.urlFormat(request.httpRequest.endpoint)); | ||
}); | ||
@@ -364,3 +382,3 @@ } else { | ||
}); | ||
return url.format(request.httpRequest.endpoint); | ||
return AWS.util.urlFormat(request.httpRequest.endpoint); | ||
} | ||
@@ -367,0 +385,0 @@ } |
@@ -68,2 +68,6 @@ /*global escape:true */ | ||
urlFormat: function urlFormat(url) { | ||
return require('url').format(url); | ||
}, | ||
queryParamsToString: function queryParamsToString(params) { | ||
@@ -108,5 +112,5 @@ var items = []; | ||
Buffer: Buffer, | ||
buffer: { | ||
Buffer: Buffer, | ||
/** | ||
@@ -113,0 +117,0 @@ * Concatenates a list of Buffer objects. |
{ | ||
"name": "aws-sdk", | ||
"description": "AWS SDK for JavaScript", | ||
"version": "2.0.0-rc8", | ||
"version": "2.0.0-rc9", | ||
"author": { | ||
@@ -19,5 +19,6 @@ "name":"Amazon Web Services", | ||
"semver": "", | ||
"coffee-script": "", | ||
"coffee-script": "1.6.3", | ||
"jshint": "", | ||
"cucumber": "" | ||
"cucumber": "", | ||
"coffeeify": "" | ||
}, | ||
@@ -24,0 +25,0 @@ "dependencies": { |
@@ -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-rc8.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc9.min.js"></script> | ||
@@ -18,0 +18,0 @@ ### In Node.js |
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 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 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 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 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 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 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 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 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 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 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
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
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
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
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
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
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
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
15374097
297156
7