Skip to content

Commit

Permalink
Updates SDK to v2.623.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Feb 20, 2020
1 parent dc5b223 commit 5608fd3
Show file tree
Hide file tree
Showing 17 changed files with 127 additions and 63 deletions.
22 changes: 22 additions & 0 deletions .changes/2.623.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"type": "bugfix",
"category": "EndpointDiscovery",
"description": "Update host header in requests when new endpoint is found; Throw error when endpoint discovery is required but not enabled"
},
{
"type": "feature",
"category": "AppConfig",
"description": "This release adds exponential growth type support for deployment strategies."
},
{
"type": "feature",
"category": "Pinpoint",
"description": "As of this release of the Amazon Pinpoint API, the Title property is optional for the CampaignEmailMessage object. "
},
{
"type": "feature",
"category": "SavingsPlans",
"description": "Added support for AWS Lambda in Compute Savings Plans"
}
]
5 changes: 0 additions & 5 deletions .changes/next-release/bugfix-EndpointDiscovery-76fcc017.json

This file was deleted.

8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.622.0-->
<!--LATEST=2.623.0-->
<!--ENTRYINSERT-->

## 2.623.0
* bugfix: EndpointDiscovery: Update host header in requests when new endpoint is found; Throw error when endpoint discovery is required but not enabled
* feature: AppConfig: This release adds exponential growth type support for deployment strategies.
* feature: Pinpoint: As of this release of the Amazon Pinpoint API, the Title property is optional for the CampaignEmailMessage object.
* feature: SavingsPlans: Added support for AWS Lambda in Compute Savings Plans

## 2.622.0
* feature: Lambda: AWS Lambda now supports Ruby 2.7
* feature: ServiceCatalog: "ListPortfolioAccess" API now has a new optional parameter "OrganizationParentId". When it is provided and if the portfolio with the "PortfolioId" given was shared with an organization or organizational unit with "OrganizationParentId", all accounts in the organization sub-tree under parent which inherit an organizational portfolio share will be listed, rather than all accounts with external shares. To accommodate long lists returned from the new option, the API now supports pagination.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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.622.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.623.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
9 changes: 5 additions & 4 deletions apis/appconfig-2019-10-09.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@
},
"GrowthType": {
"shape": "GrowthType",
"documentation": "<p>The algorithm used to define how percentage grows over time.</p>"
"documentation": "<p>The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:</p> <p> <b>Linear</b>: For this type, AppConfig processes the deployment by dividing the total number of targets by the value specified for <code>Step percentage</code>. For example, a linear deployment that uses a <code>Step percentage</code> of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.</p> <p> <b>Exponential</b>: For this type, AppConfig processes the deployment exponentially using the following formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth factor specified by the user and <code>N</code> is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.</p>"
},
"ReplicateTo": {
"shape": "ReplicateTo",
Expand Down Expand Up @@ -1523,7 +1523,8 @@
"GrowthType": {
"type": "string",
"enum": [
"LINEAR"
"LINEAR",
"EXPONENTIAL"
]
},
"Id": {
Expand Down Expand Up @@ -1984,7 +1985,7 @@
},
"GrowthType": {
"shape": "GrowthType",
"documentation": "<p>The algorithm used to define how percentage grows over time.</p>"
"documentation": "<p>The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:</p> <p> <b>Linear</b>: For this type, AppConfig processes the deployment by increments of the growth factor evenly distributed over the deployment time. For example, a linear deployment that uses a growth factor of 20 initially makes the configuration available to 20 percent of the targets. After 1/5th of the deployment time has passed, the system updates the percentage to 40 percent. This continues until 100% of the targets are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For this type, AppConfig processes the deployment exponentially using the following formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth factor specified by the user and <code>N</code> is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.</p>"
}
}
},
Expand Down Expand Up @@ -2067,7 +2068,7 @@
},
"Content": {
"shape": "StringWithLengthBetween0And32768",
"documentation": "<p>Either the JSON Schema content or an AWS Lambda function name.</p>"
"documentation": "<p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.</p>"
}
},
"documentation": "<p>A validator provides a syntactic or semantic check to ensure the configuration you want to deploy functions as intended. To validate your application configuration data, you provide a schema or a Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid.</p>"
Expand Down
5 changes: 1 addition & 4 deletions apis/pinpoint-2016-12-01.min.json
Original file line number Diff line number Diff line change
Expand Up @@ -4850,10 +4850,7 @@
"FromAddress": {},
"HtmlBody": {},
"Title": {}
},
"required": [
"Title"
]
}
},
"GCMMessage": {
"shape": "Sc"
Expand Down
5 changes: 1 addition & 4 deletions apis/pinpoint-2016-12-01.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5599,10 +5599,7 @@
"documentation": "<p>The subject line, or title, of the email.</p>"
}
},
"documentation": "<p>Specifies the content and \"From\" address for an email message that's sent to recipients of a campaign.</p>",
"required": [
"Title"
]
"documentation": "<p>Specifies the content and \"From\" address for an email message that's sent to recipients of a campaign.</p>"
},
"CampaignEventFilter": {
"type": "structure",
Expand Down
10 changes: 7 additions & 3 deletions apis/savingsplans-2019-06-28.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@
"type": "string",
"enum": [
"EC2",
"Fargate"
"Fargate",
"Lambda"
]
},
"SavingsPlanProductTypeList": {
Expand Down Expand Up @@ -1077,7 +1078,8 @@
"type": "string",
"enum": [
"AmazonEC2",
"AmazonECS"
"AmazonECS",
"AWSLambda"
]
},
"SavingsPlanRateServiceCodeList": {
Expand All @@ -1089,7 +1091,9 @@
"SavingsPlanRateUnit": {
"type": "string",
"enum": [
"Hrs"
"Hrs",
"Lambda-GB-Second",
"Request"
]
},
"SavingsPlanRateUsageType": {
Expand Down
8 changes: 4 additions & 4 deletions clients/appconfig.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ declare namespace AppConfig {
*/
GrowthFactor: GrowthFactor;
/**
* The algorithm used to define how percentage grows over time.
* The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types: Linear: For this type, AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration. Exponential: For this type, AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows: 2*(2^0) 2*(2^1) 2*(2^2) Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
*/
GrowthType?: GrowthType;
/**
Expand Down Expand Up @@ -763,7 +763,7 @@ declare namespace AppConfig {
EnvironmentId: Id;
}
export type GrowthFactor = number;
export type GrowthType = "LINEAR"|string;
export type GrowthType = "LINEAR"|"EXPONENTIAL"|string;
export type Id = string;
export type Integer = number;
export type Iso8601DateTime = Date;
Expand Down Expand Up @@ -995,7 +995,7 @@ declare namespace AppConfig {
*/
GrowthFactor?: GrowthFactor;
/**
* The algorithm used to define how percentage grows over time.
* The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types: Linear: For this type, AppConfig processes the deployment by increments of the growth factor evenly distributed over the deployment time. For example, a linear deployment that uses a growth factor of 20 initially makes the configuration available to 20 percent of the targets. After 1/5th of the deployment time has passed, the system updates the percentage to 40 percent. This continues until 100% of the targets are set to receive the deployed configuration. Exponential: For this type, AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows: 2*(2^0) 2*(2^1) 2*(2^2) Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
*/
GrowthType?: GrowthType;
}
Expand Down Expand Up @@ -1042,7 +1042,7 @@ declare namespace AppConfig {
*/
Type: ValidatorType;
/**
* Either the JSON Schema content or an AWS Lambda function name.
* Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.
*/
Content: StringWithLengthBetween0And32768;
}
Expand Down
2 changes: 1 addition & 1 deletion clients/pinpoint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ declare namespace Pinpoint {
/**
* The subject line, or title, of the email.
*/
Title: __string;
Title?: __string;
}
export interface CampaignEventFilter {
/**
Expand Down
6 changes: 3 additions & 3 deletions clients/savingsplans.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ declare namespace SavingsPlans {
export type SavingsPlanOperationList = SavingsPlanOperation[];
export type SavingsPlanPaymentOption = "All Upfront"|"Partial Upfront"|"No Upfront"|string;
export type SavingsPlanPaymentOptionList = SavingsPlanPaymentOption[];
export type SavingsPlanProductType = "EC2"|"Fargate"|string;
export type SavingsPlanProductType = "EC2"|"Fargate"|"Lambda"|string;
export type SavingsPlanProductTypeList = SavingsPlanProductType[];
export interface SavingsPlanRate {
/**
Expand Down Expand Up @@ -630,9 +630,9 @@ declare namespace SavingsPlans {
}
export type SavingsPlanRatePropertyKey = "region"|"instanceType"|"instanceFamily"|"productDescription"|"tenancy"|string;
export type SavingsPlanRatePropertyList = SavingsPlanRateProperty[];
export type SavingsPlanRateServiceCode = "AmazonEC2"|"AmazonECS"|string;
export type SavingsPlanRateServiceCode = "AmazonEC2"|"AmazonECS"|"AWSLambda"|string;
export type SavingsPlanRateServiceCodeList = SavingsPlanRateServiceCode[];
export type SavingsPlanRateUnit = "Hrs"|string;
export type SavingsPlanRateUnit = "Hrs"|"Lambda-GB-Second"|"Request"|string;
export type SavingsPlanRateUsageType = string;
export type SavingsPlanRateUsageTypeList = SavingsPlanRateUsageType[];
export type SavingsPlanServiceCode = string;
Expand Down
25 changes: 19 additions & 6 deletions dist/aws-sdk-core-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* @constant
*/
VERSION: '2.622.0',
VERSION: '2.623.0',

/**
* @api private
Expand Down Expand Up @@ -6342,6 +6342,9 @@ return /******/ (function(modules) { // webpackBootstrap
var newEndpoint = new AWS.Endpoint(endpointStr);
this.endpoint = newEndpoint;
this.path = newEndpoint.path || '/';
if (this.headers['Host']) {
this.headers['Host'] = newEndpoint.host;
}
}
});

Expand Down Expand Up @@ -7317,7 +7320,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @param [object] request request object.
* @api private
*/
function isEndpointDiscoveryApplicable(request) {
function isEndpointDiscoveryEnabled(request) {
var service = request.service || {};
if (service.config.endpointDiscoveryEnabled === true) return true;

Expand Down Expand Up @@ -7369,13 +7372,23 @@ return /******/ (function(modules) { // webpackBootstrap
var service = request.service || {};
if (hasCustomEndpoint(service) || request.isPresigned()) return done();

if (!isEndpointDiscoveryApplicable(request)) return done();

request.httpRequest.appendToUserAgent('endpoint-discovery');

var operations = service.api.operations || {};
var operationModel = operations[request.operation];
var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
var isEnabled = isEndpointDiscoveryEnabled(request);

if (!isEnabled) {
// Unless endpoint discovery is required, SDK will fallback to normal regional endpoints.
if (isEndpointDiscoveryRequired === 'REQUIRED') {
throw util.error(new Error(), {
code: 'ConfigurationException',
message: 'Endpoint Discovery is not enabled but this operation requires it.'
});
}
return done();
}

request.httpRequest.appendToUserAgent('endpoint-discovery');
switch (isEndpointDiscoveryRequired) {
case 'OPTIONAL':
optionalDiscoverEndpoint(request);
Expand Down
30 changes: 23 additions & 7 deletions dist/aws-sdk-react-native.js

Large diffs are not rendered by default.

29 changes: 21 additions & 8 deletions dist/aws-sdk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// AWS SDK for JavaScript v2.622.0
// AWS SDK for JavaScript v2.623.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
Expand Down Expand Up @@ -188629,7 +188629,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.622.0',
VERSION: '2.623.0',

/**
* @api private
Expand Down Expand Up @@ -190356,7 +190356,7 @@ function isFalsy(value) {
* @param [object] request request object.
* @api private
*/
function isEndpointDiscoveryApplicable(request) {
function isEndpointDiscoveryEnabled(request) {
var service = request.service || {};
if (service.config.endpointDiscoveryEnabled === true) return true;

Expand Down Expand Up @@ -190408,13 +190408,23 @@ function discoverEndpoint(request, done) {
var service = request.service || {};
if (hasCustomEndpoint(service) || request.isPresigned()) return done();

if (!isEndpointDiscoveryApplicable(request)) return done();

request.httpRequest.appendToUserAgent('endpoint-discovery');

var operations = service.api.operations || {};
var operationModel = operations[request.operation];
var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
var isEnabled = isEndpointDiscoveryEnabled(request);

if (!isEnabled) {
// Unless endpoint discovery is required, SDK will fallback to normal regional endpoints.
if (isEndpointDiscoveryRequired === 'REQUIRED') {
throw util.error(new Error(), {
code: 'ConfigurationException',
message: 'Endpoint Discovery is not enabled but this operation requires it.'
});
}
return done();
}

request.httpRequest.appendToUserAgent('endpoint-discovery');
switch (isEndpointDiscoveryRequired) {
case 'OPTIONAL':
optionalDiscoverEndpoint(request);
Expand Down Expand Up @@ -192795,6 +192805,9 @@ AWS.HttpRequest = inherit({
var newEndpoint = new AWS.Endpoint(endpointStr);
this.endpoint = newEndpoint;
this.path = newEndpoint.path || '/';
if (this.headers['Host']) {
this.headers['Host'] = newEndpoint.host;
}
}
});

Expand Down Expand Up @@ -209551,7 +209564,7 @@ var LRUCache = /** @class */ (function () {
}());
exports.LRUCache = LRUCache;
},{}],431:[function(require,module,exports){
// AWS SDK for JavaScript v2.622.0
// AWS SDK for JavaScript v2.623.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
require('./browser_loader');
Expand Down
20 changes: 10 additions & 10 deletions dist/aws-sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.622.0',
VERSION: '2.623.0',

/**
* @api private
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.622.0",
"version": "2.623.0",
"author": {
"name": "Amazon Web Services",
"email": "",
Expand Down

0 comments on commit 5608fd3

Please sign in to comment.