|
1 |
| -// AWS SDK for JavaScript v2.1.4 |
| 1 | +// AWS SDK for JavaScript v2.1.5 |
2 | 2 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3 | 3 | // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
|
4 | 4 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
@@ -43,6 +43,10 @@ AWS.apiLoader.services['kinesis'] = {};
|
43 | 43 | AWS.Kinesis = AWS.Service.defineService('kinesis', [ '2013-12-02' ]);
|
44 | 44 |
|
45 | 45 | AWS.apiLoader.services['kinesis']['2013-12-02'] = {"metadata":{"apiVersion":"2013-12-02","endpointPrefix":"kinesis","jsonVersion":"1.1","serviceAbbreviation":"Kinesis","serviceFullName":"Amazon Kinesis","signatureVersion":"v4","targetPrefix":"Kinesis_20131202","protocol":"json"},"operations":{"AddTagsToStream":{"input":{"type":"structure","required":["StreamName","Tags"],"members":{"StreamName":{},"Tags":{"type":"map","key":{},"value":{}}}},"http":{}},"CreateStream":{"input":{"type":"structure","required":["StreamName","ShardCount"],"members":{"StreamName":{},"ShardCount":{"type":"integer"}}},"http":{}},"DeleteStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{}}},"http":{}},"DescribeStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{},"Limit":{"type":"integer"},"ExclusiveStartShardId":{}}},"output":{"type":"structure","required":["StreamDescription"],"members":{"StreamDescription":{"type":"structure","required":["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards"],"members":{"StreamName":{},"StreamARN":{},"StreamStatus":{},"Shards":{"type":"list","member":{"type":"structure","required":["ShardId","HashKeyRange","SequenceNumberRange"],"members":{"ShardId":{},"ParentShardId":{},"AdjacentParentShardId":{},"HashKeyRange":{"type":"structure","required":["StartingHashKey","EndingHashKey"],"members":{"StartingHashKey":{},"EndingHashKey":{}}},"SequenceNumberRange":{"type":"structure","required":["StartingSequenceNumber"],"members":{"StartingSequenceNumber":{},"EndingSequenceNumber":{}}}}}},"HasMoreShards":{"type":"boolean"}}}}},"http":{}},"GetRecords":{"input":{"type":"structure","required":["ShardIterator"],"members":{"ShardIterator":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Records"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["SequenceNumber","Data","PartitionKey"],"members":{"SequenceNumber":{},"Data":{"type":"blob"},"PartitionKey":{}}}},"NextShardIterator":{}}},"http":{}},"GetShardIterator":{"input":{"type":"structure","required":["StreamName","ShardId","ShardIteratorType"],"members":{"StreamName":{},"ShardId":{},"ShardIteratorType":{},"StartingSequenceNumber":{}}},"output":{"type":"structure","members":{"ShardIterator":{}}},"http":{}},"ListStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"ExclusiveStartStreamName":{}}},"output":{"type":"structure","required":["StreamNames","HasMoreStreams"],"members":{"StreamNames":{"type":"list","member":{}},"HasMoreStreams":{"type":"boolean"}}},"http":{}},"ListTagsForStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}},"HasMoreTags":{"type":"boolean"}}},"http":{}},"MergeShards":{"input":{"type":"structure","required":["StreamName","ShardToMerge","AdjacentShardToMerge"],"members":{"StreamName":{},"ShardToMerge":{},"AdjacentShardToMerge":{}}},"http":{}},"PutRecord":{"input":{"type":"structure","required":["StreamName","Data","PartitionKey"],"members":{"StreamName":{},"Data":{"type":"blob"},"PartitionKey":{},"ExplicitHashKey":{},"SequenceNumberForOrdering":{}}},"output":{"type":"structure","required":["ShardId","SequenceNumber"],"members":{"ShardId":{},"SequenceNumber":{}}},"http":{}},"PutRecords":{"input":{"type":"structure","required":["Records","StreamName"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["Data","PartitionKey"],"members":{"Data":{"type":"blob"},"ExplicitHashKey":{},"PartitionKey":{}}}},"StreamName":{}}},"output":{"type":"structure","required":["Records"],"members":{"FailedRecordCount":{"type":"integer"},"Records":{"type":"list","member":{"type":"structure","members":{"SequenceNumber":{},"ShardId":{},"ErrorCode":{},"ErrorMessage":{}}}}}},"http":{}},"RemoveTagsFromStream":{"input":{"type":"structure","required":["StreamName","TagKeys"],"members":{"StreamName":{},"TagKeys":{"type":"list","member":{}}}},"http":{}},"SplitShard":{"input":{"type":"structure","required":["StreamName","ShardToSplit","NewStartingHashKey"],"members":{"StreamName":{},"ShardToSplit":{},"NewStartingHashKey":{}}},"http":{}}},"shapes":{},"paginators":{"DescribeStream":{"input_token":"ExclusiveStartShardId","limit_key":"Limit","more_results":"StreamDescription.HasMoreShards","output_token":"StreamDescription.Shards[-1].ShardId","result_key":"StreamDescription.Shards"},"ListStreams":{"input_token":"ExclusiveStartStreamName","limit_key":"Limit","more_results":"HasMoreStreams","output_token":"StreamNames[-1]","result_key":"StreamNames"}}};
|
| 46 | +AWS.apiLoader.services['lambda'] = {}; |
| 47 | +AWS.Lambda = AWS.Service.defineService('lambda', [ '2014-11-11' ]); |
| 48 | + |
| 49 | +AWS.apiLoader.services['lambda']['2014-11-11'] = {"metadata":{"apiVersion":"2014-11-11","endpointPrefix":"lambda","serviceFullName":"AWS Lambda","signatureVersion":"v4","protocol":"rest-json"},"operations":{"AddEventSource":{"http":{"requestUri":"/2014-11-13/event-source-mappings/"},"input":{"type":"structure","required":["EventSource","FunctionName","Role"],"members":{"EventSource":{},"FunctionName":{},"Role":{},"BatchSize":{"type":"integer"},"Parameters":{"shape":"S6"}}},"output":{"shape":"S7"}},"DeleteFunction":{"http":{"method":"DELETE","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":204},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}}},"GetEventSource":{"http":{"method":"GET","requestUri":"/2014-11-13/event-source-mappings/{UUID}","responseCode":200},"input":{"type":"structure","required":["UUID"],"members":{"UUID":{"location":"uri","locationName":"UUID"}}},"output":{"shape":"S7"}},"GetFunction":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}},"output":{"type":"structure","members":{"Configuration":{"shape":"Se"},"Code":{"type":"structure","members":{"RepositoryType":{},"Location":{}}}}}},"GetFunctionConfiguration":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/{FunctionName}/configuration","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"}}},"output":{"shape":"Se"}},"InvokeAsync":{"http":{"requestUri":"/2014-11-13/functions/{FunctionName}/invoke-async/","responseCode":202},"input":{"type":"structure","required":["FunctionName","InvokeArgs"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"InvokeArgs":{"shape":"Sq"}},"payload":"InvokeArgs"},"output":{"type":"structure","members":{"Status":{"location":"statusCode","type":"integer"}}}},"ListEventSources":{"http":{"method":"GET","requestUri":"/2014-11-13/event-source-mappings/","responseCode":200},"input":{"type":"structure","members":{"EventSourceArn":{"location":"querystring","locationName":"EventSource"},"FunctionName":{"location":"querystring","locationName":"FunctionName"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems","type":"integer"}}},"output":{"type":"structure","members":{"NextMarker":{},"EventSources":{"type":"list","member":{"shape":"S7"}}}}},"ListFunctions":{"http":{"method":"GET","requestUri":"/2014-11-13/functions/","responseCode":200},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems","type":"integer"}}},"output":{"type":"structure","members":{"NextMarker":{},"Functions":{"type":"list","member":{"shape":"Se"}}}}},"RemoveEventSource":{"http":{"method":"DELETE","requestUri":"/2014-11-13/event-source-mappings/{UUID}","responseCode":204},"input":{"type":"structure","required":["UUID"],"members":{"UUID":{"location":"uri","locationName":"UUID"}}}},"UpdateFunctionConfiguration":{"http":{"method":"PUT","requestUri":"/2014-11-13/functions/{FunctionName}/configuration","responseCode":200},"input":{"type":"structure","required":["FunctionName"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"Role":{"location":"querystring","locationName":"Role"},"Handler":{"location":"querystring","locationName":"Handler"},"Description":{"location":"querystring","locationName":"Description"},"Timeout":{"location":"querystring","locationName":"Timeout","type":"integer"},"MemorySize":{"location":"querystring","locationName":"MemorySize","type":"integer"}}},"output":{"shape":"Se"}},"UploadFunction":{"http":{"method":"PUT","requestUri":"/2014-11-13/functions/{FunctionName}","responseCode":201},"input":{"type":"structure","required":["FunctionName","FunctionZip","Runtime","Role","Handler","Mode"],"members":{"FunctionName":{"location":"uri","locationName":"FunctionName"},"FunctionZip":{"shape":"Sq"},"Runtime":{"location":"querystring","locationName":"Runtime"},"Role":{"location":"querystring","locationName":"Role"},"Handler":{"location":"querystring","locationName":"Handler"},"Mode":{"location":"querystring","locationName":"Mode"},"Description":{"location":"querystring","locationName":"Description"},"Timeout":{"location":"querystring","locationName":"Timeout","type":"integer"},"MemorySize":{"location":"querystring","locationName":"MemorySize","type":"integer"}},"payload":"FunctionZip"},"output":{"shape":"Se"}}},"shapes":{"S6":{"type":"map","key":{},"value":{}},"S7":{"type":"structure","members":{"UUID":{},"BatchSize":{"type":"integer"},"EventSource":{},"FunctionName":{},"Parameters":{"shape":"S6"},"Role":{},"LastModified":{"type":"timestamp"},"IsActive":{"type":"boolean"},"Status":{}}},"Se":{"type":"structure","members":{"FunctionName":{},"FunctionARN":{},"ConfigurationId":{},"Runtime":{},"Role":{},"Handler":{},"Mode":{},"CodeSize":{"type":"long"},"Description":{},"Timeout":{"type":"integer"},"MemorySize":{"type":"integer"},"LastModified":{"type":"timestamp"}}},"Sq":{"type":"blob","streaming":true}}}; |
46 | 50 | AWS.apiLoader.services['s3'] = {};
|
47 | 51 | AWS.S3 = AWS.Service.defineService('s3', [ '2006-03-01' ]);
|
48 | 52 | require('./services/s3');
|
@@ -247,7 +251,7 @@ module.exports = AWS;
|
247 | 251 | AWS.util.update(AWS, {
|
248 | 252 |
|
249 | 253 |
|
250 |
| - VERSION: '2.1.4', |
| 254 | + VERSION: '2.1.5', |
251 | 255 |
|
252 | 256 |
|
253 | 257 | Signers: {},
|
@@ -545,8 +549,8 @@ AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, {
|
545 | 549 | }
|
546 | 550 |
|
547 | 551 | if (creds.get) {
|
548 |
| - creds.get(function(err) { |
549 |
| - resolveNext(err, err ? null : creds); |
| 552 | + creds.get(function(getErr) { |
| 553 | + resolveNext(getErr, getErr ? null : creds); |
550 | 554 | });
|
551 | 555 | } else {
|
552 | 556 | resolveNext(null, creds);
|
@@ -795,12 +799,12 @@ AWS.EventListeners = {
|
795 | 799 | }
|
796 | 800 |
|
797 | 801 | function progress(httpResp) {
|
798 |
| - httpResp.on('sendProgress', function onSendProgress(progress) { |
799 |
| - resp.request.emit('httpUploadProgress', [progress, resp]); |
| 802 | + httpResp.on('sendProgress', function onSendProgress(value) { |
| 803 | + resp.request.emit('httpUploadProgress', [value, resp]); |
800 | 804 | });
|
801 | 805 |
|
802 |
| - httpResp.on('receiveProgress', function onReceiveProgress(progress) { |
803 |
| - resp.request.emit('httpDownloadProgress', [progress, resp]); |
| 806 | + httpResp.on('receiveProgress', function onReceiveProgress(value) { |
| 807 | + resp.request.emit('httpDownloadProgress', [value, resp]); |
804 | 808 | });
|
805 | 809 | }
|
806 | 810 |
|
@@ -2292,8 +2296,8 @@ function populateHeaders(req) {
|
2292 | 2296 | if (value === null || value === undefined) return;
|
2293 | 2297 |
|
2294 | 2298 | if (member.location === 'headers' && member.type === 'map') {
|
2295 |
| - util.each(value, function(key, value) { |
2296 |
| - req.httpRequest.headers[member.name + key] = value; |
| 2299 | + util.each(value, function(key, memberValue) { |
| 2300 | + req.httpRequest.headers[member.name + key] = memberValue; |
2297 | 2301 | });
|
2298 | 2302 | } else if (member.location === 'header') {
|
2299 | 2303 | value = member.toWireFormat(value).toString();
|
@@ -2908,7 +2912,7 @@ AWS.Request = inherit({
|
2908 | 2912 | if (statusCode < 300) {
|
2909 | 2913 | req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA);
|
2910 | 2914 | req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR);
|
2911 |
| - req.on('httpError', function streamHttpError(error, resp) { |
| 2915 | + req.on('httpError', function streamHttpError(error) { |
2912 | 2916 | resp.error = error;
|
2913 | 2917 | resp.error.retryable = false;
|
2914 | 2918 | });
|
@@ -4327,8 +4331,8 @@ AWS.util.update(AWS.S3.prototype, {
|
4327 | 4331 | var charset = '; charset=UTF-8';
|
4328 | 4332 | httpRequest.headers['Content-Type'] += charset;
|
4329 | 4333 | } else {
|
4330 |
| - var replaceFn = function(_, prefix, charset) { |
4331 |
| - return prefix + charset.toUpperCase(); |
| 4334 | + var replaceFn = function(_, prefix, charsetName) { |
| 4335 | + return prefix + charsetName.toUpperCase(); |
4332 | 4336 | };
|
4333 | 4337 |
|
4334 | 4338 | httpRequest.headers['Content-Type'] =
|
@@ -4947,11 +4951,11 @@ AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, {
|
4947 | 4951 | if (resources.length) {
|
4948 | 4952 |
|
4949 | 4953 | querystring = [];
|
4950 |
| - AWS.util.arrayEach(resources, function (resource) { |
4951 |
| - if (resource.value === undefined) |
4952 |
| - querystring.push(resource.name); |
| 4954 | + AWS.util.arrayEach(resources, function (res) { |
| 4955 | + if (res.value === undefined) |
| 4956 | + querystring.push(res.name); |
4953 | 4957 | else
|
4954 |
| - querystring.push(resource.name + '=' + resource.value); |
| 4958 | + querystring.push(res.name + '=' + res.value); |
4955 | 4959 | });
|
4956 | 4960 |
|
4957 | 4961 | resource += '?' + querystring.join('&');
|
@@ -7332,12 +7336,16 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
7332 | 7336 | var NUMBER = '0'.charCodeAt(0)
|
7333 | 7337 | var LOWER = 'a'.charCodeAt(0)
|
7334 | 7338 | var UPPER = 'A'.charCodeAt(0)
|
| 7339 | + var PLUS_URL_SAFE = '-'.charCodeAt(0) |
| 7340 | + var SLASH_URL_SAFE = '_'.charCodeAt(0) |
7335 | 7341 |
|
7336 | 7342 | function decode (elt) {
|
7337 | 7343 | var code = elt.charCodeAt(0)
|
7338 |
| - if (code === PLUS) |
| 7344 | + if (code === PLUS || |
| 7345 | + code === PLUS_URL_SAFE) |
7339 | 7346 | return 62 // '+'
|
7340 |
| - if (code === SLASH) |
| 7347 | + if (code === SLASH || |
| 7348 | + code === SLASH_URL_SAFE) |
7341 | 7349 | return 63 // '/'
|
7342 | 7350 | if (code < NUMBER)
|
7343 | 7351 | return -1 //no match
|
@@ -8021,10 +8029,8 @@ EventEmitter.prototype.emit = function(type) {
|
8021 | 8029 | er = arguments[1];
|
8022 | 8030 | if (er instanceof Error) {
|
8023 | 8031 | throw er; // Unhandled 'error' event
|
8024 |
| - } else { |
8025 |
| - throw TypeError('Uncaught, unspecified "error" event.'); |
8026 | 8032 | }
|
8027 |
| - return false; |
| 8033 | + throw TypeError('Uncaught, unspecified "error" event.'); |
8028 | 8034 | }
|
8029 | 8035 | }
|
8030 | 8036 |
|
|
0 commit comments