Skip to content

Commit

Permalink
Updates SDK to v2.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Mar 23, 2017
1 parent e6671c4 commit 78b8b18
Show file tree
Hide file tree
Showing 14 changed files with 179 additions and 105 deletions.
12 changes: 12 additions & 0 deletions .changes/2.32.0.json
@@ -0,0 +1,12 @@
[
{
"type": "feature",
"category": "S3",
"description": "Adds a means of specifying tags to apply to objects of any size uploaded with AWS.S3.ManagedUploader"
},
{
"type": "feature",
"category": "ApplicationAutoScaling",
"description": "Application AutoScaling is launching support for a new target resource (AppStream 2.0 Fleets) as a scalable target."
}
]
5 changes: 0 additions & 5 deletions .changes/next-release/feature-S3-d7608648.json

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,11 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.31.0-->
<!--LATEST=2.32.0-->
<!--ENTRYINSERT-->

## 2.32.0
* feature: S3: Adds a means of specifying tags to apply to objects of any size uploaded with AWS.S3.ManagedUploader
* feature: ApplicationAutoScaling: Application AutoScaling is launching support for a new target resource (AppStream 2.0 Fleets) as a scalable target.

## 2.31.0
* feature: DynamoDB: Adds ability to customize retry delays for DynamoDB. This previously worked for all services except DynamoDB. Also adds jitter to DynamoDB retries. See `AWS.Config.retryDelayOptions` for more information.
* feature: Waiter: Allow customization of a waiter using a special `$waiter` key
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -24,7 +24,7 @@ to work with the new major version.
To use the SDK in the browser, simply add the following script tag to your
HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.31.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.32.0.min.js"></script>

You can also build a custom browser SDK with your specified set of AWS services.
This can allow you to reduce the SDK's size, specify different API versions of
Expand Down
48 changes: 25 additions & 23 deletions apis/application-autoscaling-2016-02-06.normal.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions apis/application-autoscaling-2016-02-06.paginators.json
Expand Up @@ -2,21 +2,21 @@
"pagination": {
"DescribeScalableTargets": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"output_token": "NextToken",
"result_key": "ScalableTargets"
},
"DescribeScalingPolicies": {
"DescribeScalingActivities": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"result_key": "ScalingPolicies"
"output_token": "NextToken",
"result_key": "ScalingActivities"
},
"DescribeScalingActivities": {
"DescribeScalingPolicies": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"result_key": "ScalingActivities"
"output_token": "NextToken",
"result_key": "ScalingPolicies"
}
}
}
}
7 changes: 7 additions & 0 deletions apis/cloudtrail-2013-11-01.min.json
Expand Up @@ -155,6 +155,9 @@
"GetEventSelectors": {
"input": {
"type": "structure",
"required": [
"TrailName"
],
"members": {
"TrailName": {}
}
Expand Down Expand Up @@ -358,6 +361,10 @@
"PutEventSelectors": {
"input": {
"type": "structure",
"required": [
"TrailName",
"EventSelectors"
],
"members": {
"TrailName": {},
"EventSelectors": {
Expand Down
18 changes: 14 additions & 4 deletions apis/cloudtrail-2013-11-01.normal.json
Expand Up @@ -559,6 +559,7 @@
},
"GetEventSelectorsRequest":{
"type":"structure",
"required":["TrailName"],
"members":{
"TrailName":{
"shape":"String",
Expand Down Expand Up @@ -869,7 +870,10 @@
"ListTagsResponse":{
"type":"structure",
"members":{
"ResourceTagList":{"shape":"ResourceTagList"},
"ResourceTagList":{
"shape":"ResourceTagList",
"documentation":"<p>A list of resource tags.</p>"
},
"NextToken":{
"shape":"String",
"documentation":"<p>Reserved for future use.</p>"
Expand Down Expand Up @@ -998,6 +1002,10 @@
},
"PutEventSelectorsRequest":{
"type":"structure",
"required":[
"TrailName",
"EventSelectors"
],
"members":{
"TrailName":{
"shape":"String",
Expand Down Expand Up @@ -1088,14 +1096,16 @@
"shape":"String",
"documentation":"<p>Specifies the ARN of the resource.</p>"
},
"TagsList":{"shape":"TagsList"}
"TagsList":{
"shape":"TagsList",
"documentation":"<p>A list of tags.</p>"
}
},
"documentation":"<p>A resource tag.</p>"
},
"ResourceTagList":{
"type":"list",
"member":{"shape":"ResourceTag"},
"documentation":"<p>A list of resource tags.</p>"
"member":{"shape":"ResourceTag"}
},
"ResourceTypeNotSupportedException":{
"type":"structure",
Expand Down
44 changes: 22 additions & 22 deletions clients/applicationautoscaling.d.ts

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions clients/cloudtrail.d.ts
Expand Up @@ -318,7 +318,7 @@ declare namespace CloudTrail {
/**
* Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-) Start with a letter or number, and end with a letter or number Be between 3 and 128 characters Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid. Not be in IP address format (for example, 192.168.5.4) If you specify a trail ARN, it must be in the format: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*/
TrailName?: String;
TrailName: String;
}
export interface GetEventSelectorsResponse {
/**
Expand Down Expand Up @@ -441,6 +441,9 @@ declare namespace CloudTrail {
NextToken?: String;
}
export interface ListTagsResponse {
/**
* A list of resource tags.
*/
ResourceTagList?: ResourceTagList;
/**
* Reserved for future use.
Expand Down Expand Up @@ -516,11 +519,11 @@ declare namespace CloudTrail {
/**
* Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-) Start with a letter or number, and end with a letter or number Be between 3 and 128 characters Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid. Not be in IP address format (for example, 192.168.5.4) If you specify a trail ARN, it must be in the format: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*/
TrailName?: String;
TrailName: String;
/**
* Specifies the settings for your event selectors. You can configure up to five event selectors for a trail.
*/
EventSelectors?: EventSelectors;
EventSelectors: EventSelectors;
}
export interface PutEventSelectorsResponse {
/**
Expand Down Expand Up @@ -562,6 +565,9 @@ declare namespace CloudTrail {
* Specifies the ARN of the resource.
*/
ResourceId?: String;
/**
* A list of tags.
*/
TagsList?: TagsList;
}
export type ResourceTagList = ResourceTag[];
Expand Down
64 changes: 51 additions & 13 deletions dist/aws-sdk.js
@@ -1,4 +1,4 @@
// AWS SDK for JavaScript v2.31.0
// AWS SDK for JavaScript v2.32.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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){
Expand Down Expand Up @@ -4365,25 +4365,24 @@ module.exports={
"pagination": {
"DescribeScalableTargets": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"output_token": "NextToken",
"result_key": "ScalableTargets"
},
"DescribeScalingPolicies": {
"DescribeScalingActivities": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"result_key": "ScalingPolicies"
"output_token": "NextToken",
"result_key": "ScalingActivities"
},
"DescribeScalingActivities": {
"DescribeScalingPolicies": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults",
"result_key": "ScalingActivities"
"output_token": "NextToken",
"result_key": "ScalingPolicies"
}
}
}

},{}],7:[function(require,module,exports){
module.exports={
"version": "2.0",
Expand Down Expand Up @@ -9842,6 +9841,9 @@ module.exports={
"GetEventSelectors": {
"input": {
"type": "structure",
"required": [
"TrailName"
],
"members": {
"TrailName": {}
}
Expand Down Expand Up @@ -10045,6 +10047,10 @@ module.exports={
"PutEventSelectors": {
"input": {
"type": "structure",
"required": [
"TrailName",
"EventSelectors"
],
"members": {
"TrailName": {},
"EventSelectors": {
Expand Down Expand Up @@ -96005,7 +96011,7 @@ module.exports = AWS;
AWS.util.update(AWS, {


VERSION: '2.31.0',
VERSION: '2.32.0',


Signers: {},
Expand Down Expand Up @@ -100145,6 +100151,13 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
if (options.queueSize) this.queueSize = options.queueSize;
if (options.partSize) this.partSize = options.partSize;
if (options.leavePartsOnError) this.leavePartsOnError = true;
if (options.tags) {
if (!Array.isArray(options.tags)) {
throw new Error('Tags must be specified as an array; ' +
typeof options.tags + ' provided.');
}
this.tags = options.tags;
}

if (this.partSize < this.minPartSize) {
throw new Error('partSize must be greater than ' +
Expand Down Expand Up @@ -100378,7 +100391,11 @@ AWS.S3.ManagedUpload = AWS.util.inherit({

var partNumber = ++self.totalPartNumbers;
if (self.isDoneChunking && partNumber === 1) {
var req = self.service.putObject({Body: chunk});
var params = {Body: chunk};
if (this.tags) {
params.Tagging = this.getTaggingHeader();
}
var req = self.service.putObject(params);
req._managedUpload = self;
req.on('httpUploadProgress', self.progress).send(self.finishSinglePart);
return null;
Expand Down Expand Up @@ -100418,6 +100435,17 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
},


getTaggingHeader: function getTaggingHeader() {
var kvPairStrings = [];
for (var i = 0; i < this.tags.length; i++) {
kvPairStrings.push(AWS.util.uriEscape(this.tags[i].Key) + '=' +
AWS.util.uriEscape(this.tags[i].Value));
}

return kvPairStrings.join('&');
},


uploadPart: function uploadPart(chunk, partNumber) {
var self = this;

Expand Down Expand Up @@ -100504,8 +100532,18 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
var self = this;
var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } };
self.service.completeMultipartUpload(completeParams, function(err, data) {
if (err) return self.cleanup(err);
else self.callback(err, data);
if (err) {
return self.cleanup(err);
}

if (Array.isArray(self.tags)) {
self.service.putObjectTagging(
{Tagging: {TagSet: self.tags}},
self.callback
);
} else {
self.callback(err, data);
}
});
},

Expand Down
46 changes: 23 additions & 23 deletions dist/aws-sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core.js
Expand Up @@ -17,7 +17,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.31.0',
VERSION: '2.32.0',

/**
* @api private
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.31.0",
"version": "2.32.0",
"author": {
"name": "Amazon Web Services",
"email": "",
Expand Down

0 comments on commit 78b8b18

Please sign in to comment.