Skip to content

Commit 5608fd3

Browse files
author
awstools
committed
Updates SDK to v2.623.0
1 parent dc5b223 commit 5608fd3

17 files changed

+127
-63
lines changed

.changes/2.623.0.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"type": "bugfix",
4+
"category": "EndpointDiscovery",
5+
"description": "Update host header in requests when new endpoint is found; Throw error when endpoint discovery is required but not enabled"
6+
},
7+
{
8+
"type": "feature",
9+
"category": "AppConfig",
10+
"description": "This release adds exponential growth type support for deployment strategies."
11+
},
12+
{
13+
"type": "feature",
14+
"category": "Pinpoint",
15+
"description": "As of this release of the Amazon Pinpoint API, the Title property is optional for the CampaignEmailMessage object. "
16+
},
17+
{
18+
"type": "feature",
19+
"category": "SavingsPlans",
20+
"description": "Added support for AWS Lambda in Compute Savings Plans"
21+
}
22+
]

.changes/next-release/bugfix-EndpointDiscovery-76fcc017.json

-5
This file was deleted.

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Changelog for AWS SDK for JavaScript
2-
<!--LATEST=2.622.0-->
2+
<!--LATEST=2.623.0-->
33
<!--ENTRYINSERT-->
44

5+
## 2.623.0
6+
* bugfix: EndpointDiscovery: Update host header in requests when new endpoint is found; Throw error when endpoint discovery is required but not enabled
7+
* feature: AppConfig: This release adds exponential growth type support for deployment strategies.
8+
* feature: Pinpoint: As of this release of the Amazon Pinpoint API, the Title property is optional for the CampaignEmailMessage object.
9+
* feature: SavingsPlans: Added support for AWS Lambda in Compute Savings Plans
10+
511
## 2.622.0
612
* feature: Lambda: AWS Lambda now supports Ruby 2.7
713
* 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.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ version.
2525
To use the SDK in the browser, simply add the following script tag to your
2626
HTML pages:
2727

28-
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.622.0.min.js"></script>
28+
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.623.0.min.js"></script>
2929

3030
You can also build a custom browser SDK with your specified set of AWS services.
3131
This can allow you to reduce the SDK's size, specify different API versions of

apis/appconfig-2019-10-09.normal.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@
987987
},
988988
"GrowthType": {
989989
"shape": "GrowthType",
990-
"documentation": "<p>The algorithm used to define how percentage grows over time.</p>"
990+
"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>"
991991
},
992992
"ReplicateTo": {
993993
"shape": "ReplicateTo",
@@ -1523,7 +1523,8 @@
15231523
"GrowthType": {
15241524
"type": "string",
15251525
"enum": [
1526-
"LINEAR"
1526+
"LINEAR",
1527+
"EXPONENTIAL"
15271528
]
15281529
},
15291530
"Id": {
@@ -1984,7 +1985,7 @@
19841985
},
19851986
"GrowthType": {
19861987
"shape": "GrowthType",
1987-
"documentation": "<p>The algorithm used to define how percentage grows over time.</p>"
1988+
"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>"
19881989
}
19891990
}
19901991
},
@@ -2067,7 +2068,7 @@
20672068
},
20682069
"Content": {
20692070
"shape": "StringWithLengthBetween0And32768",
2070-
"documentation": "<p>Either the JSON Schema content or an AWS Lambda function name.</p>"
2071+
"documentation": "<p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.</p>"
20712072
}
20722073
},
20732074
"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>"

apis/pinpoint-2016-12-01.min.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -4850,10 +4850,7 @@
48504850
"FromAddress": {},
48514851
"HtmlBody": {},
48524852
"Title": {}
4853-
},
4854-
"required": [
4855-
"Title"
4856-
]
4853+
}
48574854
},
48584855
"GCMMessage": {
48594856
"shape": "Sc"

apis/pinpoint-2016-12-01.normal.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -5599,10 +5599,7 @@
55995599
"documentation": "<p>The subject line, or title, of the email.</p>"
56005600
}
56015601
},
5602-
"documentation": "<p>Specifies the content and \"From\" address for an email message that's sent to recipients of a campaign.</p>",
5603-
"required": [
5604-
"Title"
5605-
]
5602+
"documentation": "<p>Specifies the content and \"From\" address for an email message that's sent to recipients of a campaign.</p>"
56065603
},
56075604
"CampaignEventFilter": {
56085605
"type": "structure",

apis/savingsplans-2019-06-28.normal.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,8 @@
932932
"type": "string",
933933
"enum": [
934934
"EC2",
935-
"Fargate"
935+
"Fargate",
936+
"Lambda"
936937
]
937938
},
938939
"SavingsPlanProductTypeList": {
@@ -1077,7 +1078,8 @@
10771078
"type": "string",
10781079
"enum": [
10791080
"AmazonEC2",
1080-
"AmazonECS"
1081+
"AmazonECS",
1082+
"AWSLambda"
10811083
]
10821084
},
10831085
"SavingsPlanRateServiceCodeList": {
@@ -1089,7 +1091,9 @@
10891091
"SavingsPlanRateUnit": {
10901092
"type": "string",
10911093
"enum": [
1092-
"Hrs"
1094+
"Hrs",
1095+
"Lambda-GB-Second",
1096+
"Request"
10931097
]
10941098
},
10951099
"SavingsPlanRateUsageType": {

clients/appconfig.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ declare namespace AppConfig {
415415
*/
416416
GrowthFactor: GrowthFactor;
417417
/**
418-
* The algorithm used to define how percentage grows over time.
418+
* 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.
419419
*/
420420
GrowthType?: GrowthType;
421421
/**
@@ -763,7 +763,7 @@ declare namespace AppConfig {
763763
EnvironmentId: Id;
764764
}
765765
export type GrowthFactor = number;
766-
export type GrowthType = "LINEAR"|string;
766+
export type GrowthType = "LINEAR"|"EXPONENTIAL"|string;
767767
export type Id = string;
768768
export type Integer = number;
769769
export type Iso8601DateTime = Date;
@@ -995,7 +995,7 @@ declare namespace AppConfig {
995995
*/
996996
GrowthFactor?: GrowthFactor;
997997
/**
998-
* The algorithm used to define how percentage grows over time.
998+
* 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.
999999
*/
10001000
GrowthType?: GrowthType;
10011001
}
@@ -1042,7 +1042,7 @@ declare namespace AppConfig {
10421042
*/
10431043
Type: ValidatorType;
10441044
/**
1045-
* Either the JSON Schema content or an AWS Lambda function name.
1045+
* Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.
10461046
*/
10471047
Content: StringWithLengthBetween0And32768;
10481048
}

clients/pinpoint.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ declare namespace Pinpoint {
18611861
/**
18621862
* The subject line, or title, of the email.
18631863
*/
1864-
Title: __string;
1864+
Title?: __string;
18651865
}
18661866
export interface CampaignEventFilter {
18671867
/**

clients/savingsplans.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ declare namespace SavingsPlans {
565565
export type SavingsPlanOperationList = SavingsPlanOperation[];
566566
export type SavingsPlanPaymentOption = "All Upfront"|"Partial Upfront"|"No Upfront"|string;
567567
export type SavingsPlanPaymentOptionList = SavingsPlanPaymentOption[];
568-
export type SavingsPlanProductType = "EC2"|"Fargate"|string;
568+
export type SavingsPlanProductType = "EC2"|"Fargate"|"Lambda"|string;
569569
export type SavingsPlanProductTypeList = SavingsPlanProductType[];
570570
export interface SavingsPlanRate {
571571
/**
@@ -630,9 +630,9 @@ declare namespace SavingsPlans {
630630
}
631631
export type SavingsPlanRatePropertyKey = "region"|"instanceType"|"instanceFamily"|"productDescription"|"tenancy"|string;
632632
export type SavingsPlanRatePropertyList = SavingsPlanRateProperty[];
633-
export type SavingsPlanRateServiceCode = "AmazonEC2"|"AmazonECS"|string;
633+
export type SavingsPlanRateServiceCode = "AmazonEC2"|"AmazonECS"|"AWSLambda"|string;
634634
export type SavingsPlanRateServiceCodeList = SavingsPlanRateServiceCode[];
635-
export type SavingsPlanRateUnit = "Hrs"|string;
635+
export type SavingsPlanRateUnit = "Hrs"|"Lambda-GB-Second"|"Request"|string;
636636
export type SavingsPlanRateUsageType = string;
637637
export type SavingsPlanRateUsageTypeList = SavingsPlanRateUsageType[];
638638
export type SavingsPlanServiceCode = string;

dist/aws-sdk-core-react-native.js

+19-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
8383
/**
8484
* @constant
8585
*/
86-
VERSION: '2.622.0',
86+
VERSION: '2.623.0',
8787

8888
/**
8989
* @api private
@@ -6342,6 +6342,9 @@ return /******/ (function(modules) { // webpackBootstrap
63426342
var newEndpoint = new AWS.Endpoint(endpointStr);
63436343
this.endpoint = newEndpoint;
63446344
this.path = newEndpoint.path || '/';
6345+
if (this.headers['Host']) {
6346+
this.headers['Host'] = newEndpoint.host;
6347+
}
63456348
}
63466349
});
63476350

@@ -7317,7 +7320,7 @@ return /******/ (function(modules) { // webpackBootstrap
73177320
* @param [object] request request object.
73187321
* @api private
73197322
*/
7320-
function isEndpointDiscoveryApplicable(request) {
7323+
function isEndpointDiscoveryEnabled(request) {
73217324
var service = request.service || {};
73227325
if (service.config.endpointDiscoveryEnabled === true) return true;
73237326

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

7372-
if (!isEndpointDiscoveryApplicable(request)) return done();
7373-
7374-
request.httpRequest.appendToUserAgent('endpoint-discovery');
7375-
73767375
var operations = service.api.operations || {};
73777376
var operationModel = operations[request.operation];
73787377
var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
7378+
var isEnabled = isEndpointDiscoveryEnabled(request);
7379+
7380+
if (!isEnabled) {
7381+
// Unless endpoint discovery is required, SDK will fallback to normal regional endpoints.
7382+
if (isEndpointDiscoveryRequired === 'REQUIRED') {
7383+
throw util.error(new Error(), {
7384+
code: 'ConfigurationException',
7385+
message: 'Endpoint Discovery is not enabled but this operation requires it.'
7386+
});
7387+
}
7388+
return done();
7389+
}
7390+
7391+
request.httpRequest.appendToUserAgent('endpoint-discovery');
73797392
switch (isEndpointDiscoveryRequired) {
73807393
case 'OPTIONAL':
73817394
optionalDiscoverEndpoint(request);

dist/aws-sdk-react-native.js

+23-7
Large diffs are not rendered by default.

dist/aws-sdk.js

+21-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// AWS SDK for JavaScript v2.622.0
1+
// AWS SDK for JavaScript v2.623.0
22
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
44
(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){
@@ -188629,7 +188629,7 @@ AWS.util.update(AWS, {
188629188629
/**
188630188630
* @constant
188631188631
*/
188632-
VERSION: '2.622.0',
188632+
VERSION: '2.623.0',
188633188633

188634188634
/**
188635188635
* @api private
@@ -190356,7 +190356,7 @@ function isFalsy(value) {
190356190356
* @param [object] request request object.
190357190357
* @api private
190358190358
*/
190359-
function isEndpointDiscoveryApplicable(request) {
190359+
function isEndpointDiscoveryEnabled(request) {
190360190360
var service = request.service || {};
190361190361
if (service.config.endpointDiscoveryEnabled === true) return true;
190362190362

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

190411-
if (!isEndpointDiscoveryApplicable(request)) return done();
190412-
190413-
request.httpRequest.appendToUserAgent('endpoint-discovery');
190414-
190415190411
var operations = service.api.operations || {};
190416190412
var operationModel = operations[request.operation];
190417190413
var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
190414+
var isEnabled = isEndpointDiscoveryEnabled(request);
190415+
190416+
if (!isEnabled) {
190417+
// Unless endpoint discovery is required, SDK will fallback to normal regional endpoints.
190418+
if (isEndpointDiscoveryRequired === 'REQUIRED') {
190419+
throw util.error(new Error(), {
190420+
code: 'ConfigurationException',
190421+
message: 'Endpoint Discovery is not enabled but this operation requires it.'
190422+
});
190423+
}
190424+
return done();
190425+
}
190426+
190427+
request.httpRequest.appendToUserAgent('endpoint-discovery');
190418190428
switch (isEndpointDiscoveryRequired) {
190419190429
case 'OPTIONAL':
190420190430
optionalDiscoverEndpoint(request);
@@ -192795,6 +192805,9 @@ AWS.HttpRequest = inherit({
192795192805
var newEndpoint = new AWS.Endpoint(endpointStr);
192796192806
this.endpoint = newEndpoint;
192797192807
this.path = newEndpoint.path || '/';
192808+
if (this.headers['Host']) {
192809+
this.headers['Host'] = newEndpoint.host;
192810+
}
192798192811
}
192799192812
});
192800192813

@@ -209551,7 +209564,7 @@ var LRUCache = /** @class */ (function () {
209551209564
}());
209552209565
exports.LRUCache = LRUCache;
209553209566
},{}],431:[function(require,module,exports){
209554-
// AWS SDK for JavaScript v2.622.0
209567+
// AWS SDK for JavaScript v2.623.0
209555209568
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
209556209569
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
209557209570
require('./browser_loader');

dist/aws-sdk.min.js

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
2020
/**
2121
* @constant
2222
*/
23-
VERSION: '2.622.0',
23+
VERSION: '2.623.0',
2424

2525
/**
2626
* @api private

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aws-sdk",
33
"description": "AWS SDK for JavaScript",
4-
"version": "2.622.0",
4+
"version": "2.623.0",
55
"author": {
66
"name": "Amazon Web Services",
77
"email": "",

0 commit comments

Comments
 (0)