Skip to content

Commit

Permalink
Updates SDK to v2.549.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Oct 14, 2019
1 parent 65c967b commit 5041766
Show file tree
Hide file tree
Showing 16 changed files with 121 additions and 78 deletions.
17 changes: 17 additions & 0 deletions .changes/2.549.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"type": "bugfix",
"category": "Request Signing",
"description": "This change allows requests to a service to be signed if the api.json doesn't specify a signatureVersion or authtype, but the configuration has a signatureVersion specified. Prior to this change, the logic to create a signer would use signatureVersion specified in the config, but the code would never reach it if api.json signatureVersion or authtype weren't defined."
},
{
"type": "feature",
"category": "Personalize",
"description": "AWS Personalize: Adds ability to create a solution version using FULL or UPDATE training mode"
},
{
"type": "feature",
"category": "Retry",
"description": "retry all 429 status code exceptions"
}
]
5 changes: 0 additions & 5 deletions .changes/next-release/bugfix-Request Signing-6a70276c.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/next-release/feature-Retry-b976dacf.json

This file was deleted.

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

## 2.549.0
* bugfix: Request Signing: This change allows requests to a service to be signed if the api.json doesn't specify a signatureVersion or authtype, but the configuration has a signatureVersion specified. Prior to this change, the logic to create a signer would use signatureVersion specified in the config, but the code would never reach it if api.json signatureVersion or authtype weren't defined.
* feature: Personalize: AWS Personalize: Adds ability to create a solution version using FULL or UPDATE training mode
* feature: Retry: retry all 429 status code exceptions

## 2.548.0
* feature: Greengrass: Greengrass OTA service supports Raspbian/Armv6l platforms.

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.548.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.549.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
10 changes: 6 additions & 4 deletions apis/personalize-2018-05-22.min.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
"solutionArn"
],
"members": {
"solutionArn": {}
"solutionArn": {},
"trainingMode": {}
}
},
"output": {
Expand Down Expand Up @@ -709,7 +710,7 @@
"type": "timestamp"
},
"latestSolutionVersion": {
"shape": "S38"
"shape": "S39"
}
}
}
Expand Down Expand Up @@ -750,6 +751,7 @@
"trainingHours": {
"type": "double"
},
"trainingMode": {},
"status": {},
"failureReason": {},
"creationDateTime": {
Expand Down Expand Up @@ -1058,7 +1060,7 @@
"solutionVersions": {
"type": "list",
"member": {
"shape": "S38"
"shape": "S39"
}
},
"nextToken": {}
Expand Down Expand Up @@ -1232,7 +1234,7 @@
"key": {},
"value": {}
},
"S38": {
"S39": {
"type": "structure",
"members": {
"solutionVersionArn": {},
Expand Down
27 changes: 21 additions & 6 deletions apis/personalize-2018-05-22.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,10 @@
"solutionArn": {
"shape": "Arn",
"documentation": "<p>The Amazon Resource Name (ARN) of the solution containing the training configuration information.</p>"
},
"trainingMode": {
"shape": "TrainingMode",
"documentation": "<p>The scope of training to be performed when creating the solution version. The <code>FULL</code> option trains the solution version based on the entirety of the input solution's training data, while the <code>UPDATE</code> option processes only the data that has changed in comparison to the input solution. Choose <code>UPDATE</code> when you want to incrementally update your solution version instead of creating an entirely new one.</p> <important> <p>The <code>UPDATE</code> option can only be used when you already have an active solution version created from the input solution using the <code>FULL</code> option and the input solution was trained with the <a>native-recipe-hrnn-coldstart</a> recipe.</p> </important>"
}
}
},
Expand Down Expand Up @@ -2341,11 +2345,11 @@
"members": {
"maxNumberOfTrainingJobs": {
"shape": "HPOResource",
"documentation": "<p>The maximum number of training jobs.</p>"
"documentation": "<p>The maximum number of training jobs when you create a solution version. The maximum value for <code>maxNumberOfTrainingJobs</code> is <code>40</code>.</p>"
},
"maxParallelTrainingJobs": {
"shape": "HPOResource",
"documentation": "<p>The maximum number of parallel training jobs.</p>"
"documentation": "<p>The maximum number of parallel training jobs when you create a solution version. The maximum value for <code>maxParallelTrainingJobs</code> is <code>10</code>.</p>"
}
},
"documentation": "<p>Describes the resource configuration for hyperparameter optimization (HPO).</p>"
Expand Down Expand Up @@ -2964,7 +2968,7 @@
},
"performAutoML": {
"shape": "PerformAutoML",
"documentation": "<p>When true, Amazon Personalize performs a search for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses <code>recipeArn</code>.</p>"
"documentation": "<p>When true, Amazon Personalize searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses <code>recipeArn</code>.</p>"
},
"recipeArn": {
"shape": "Arn",
Expand All @@ -2984,15 +2988,19 @@
},
"trainingHours": {
"shape": "TrainingHours",
"documentation": "<p>The time used to train the model. </p>"
"documentation": "<p>The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model.</p>"
},
"trainingMode": {
"shape": "TrainingMode",
"documentation": "<p>The scope of training used to create the solution version. The <code>FULL</code> option trains the solution version based on the entirety of the input solution's training data, while the <code>UPDATE</code> option processes only the training data that has changed since the creation of the last solution version. Choose <code>UPDATE</code> when you want to start recommending items added to the dataset without retraining the model.</p> <important> <p>The <code>UPDATE</code> option can only be used after you've created a solution version with the <code>FULL</code> option and the training solution uses the <a>native-recipe-hrnn-coldstart</a>.</p> </important>"
},
"status": {
"shape": "Status",
"documentation": "<p>The status of the solution version.</p> <p>A solution version can be in one of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>"
"documentation": "<p>The status of the solution version.</p> <p>A solution version can be in one of the following states:</p> <ul> <li> <p>CREATE PENDING</p> </li> <li> <p>CREATE IN_PROGRESS</p> </li> <li> <p>ACTIVE</p> </li> <li> <p>CREATE FAILED</p> </li> </ul>"
},
"failureReason": {
"shape": "FailureReason",
"documentation": "<p>If training a solution version fails, the reason behind the failure.</p>"
"documentation": "<p>If training a solution version fails, the reason for the failure.</p>"
},
"creationDateTime": {
"shape": "Date",
Expand Down Expand Up @@ -3061,6 +3069,13 @@
"type": "string",
"max": 256
},
"TrainingMode": {
"type": "string",
"enum": [
"FULL",
"UPDATE"
]
},
"TransactionsPerSecond": {
"type": "integer",
"min": 1
Expand Down
6 changes: 3 additions & 3 deletions apis/workspaces-2015-04-08.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@
},
"EnableInternetAccess": {
"shape": "BooleanObject",
"documentation": "<p>The public IP address to attach to all WorkSpaces that are created or rebuilt.</p>"
"documentation": "<p>Specifies whether to automatically assign a public IP address to WorkSpaces in this directory by default. If enabled, the public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see <a href=\"https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html\"> Configure a VPC for Amazon WorkSpaces</a>.</p>"
},
"DefaultOu": {
"shape": "DefaultOu",
Expand Down Expand Up @@ -1469,7 +1469,7 @@
"members": {
"RebuildSnapshots": {
"shape": "SnapshotList",
"documentation": "<p>Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the root volume.</p>"
"documentation": "<p>Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.</p>"
},
"RestoreSnapshots": {
"shape": "SnapshotList",
Expand Down Expand Up @@ -2691,7 +2691,7 @@
},
"RunningModeAutoStopTimeoutInMinutes": {
"shape": "RunningModeAutoStopTimeoutInMinutes",
"documentation": "<p>The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60 minute intervals.</p>"
"documentation": "<p>The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.</p>"
},
"RootVolumeSizeGib": {
"shape": "RootVolumeSizeGib",
Expand Down
21 changes: 15 additions & 6 deletions clients/personalize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ declare namespace Personalize {
* The Amazon Resource Name (ARN) of the solution containing the training configuration information.
*/
solutionArn: Arn;
/**
* The scope of training to be performed when creating the solution version. The FULL option trains the solution version based on the entirety of the input solution's training data, while the UPDATE option processes only the data that has changed in comparison to the input solution. Choose UPDATE when you want to incrementally update your solution version instead of creating an entirely new one. The UPDATE option can only be used when you already have an active solution version created from the input solution using the FULL option and the input solution was trained with the native-recipe-hrnn-coldstart recipe.
*/
trainingMode?: TrainingMode;
}
export interface CreateSolutionVersionResponse {
/**
Expand Down Expand Up @@ -1272,11 +1276,11 @@ declare namespace Personalize {
export type HPOResource = string;
export interface HPOResourceConfig {
/**
* The maximum number of training jobs.
* The maximum number of training jobs when you create a solution version. The maximum value for maxNumberOfTrainingJobs is 40.
*/
maxNumberOfTrainingJobs?: HPOResource;
/**
* The maximum number of parallel training jobs.
* The maximum number of parallel training jobs when you create a solution version. The maximum value for maxParallelTrainingJobs is 10.
*/
maxParallelTrainingJobs?: HPOResource;
}
Expand Down Expand Up @@ -1711,7 +1715,7 @@ declare namespace Personalize {
*/
performHPO?: PerformHPO;
/**
* When true, Amazon Personalize performs a search for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn.
* When true, Amazon Personalize searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn.
*/
performAutoML?: PerformAutoML;
/**
Expand All @@ -1731,15 +1735,19 @@ declare namespace Personalize {
*/
solutionConfig?: SolutionConfig;
/**
* The time used to train the model.
* The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model.
*/
trainingHours?: TrainingHours;
/**
* The status of the solution version. A solution version can be in one of the following states: CREATE PENDING &gt; CREATE IN_PROGRESS &gt; ACTIVE -or- CREATE FAILED
* The scope of training used to create the solution version. The FULL option trains the solution version based on the entirety of the input solution's training data, while the UPDATE option processes only the training data that has changed since the creation of the last solution version. Choose UPDATE when you want to start recommending items added to the dataset without retraining the model. The UPDATE option can only be used after you've created a solution version with the FULL option and the training solution uses the native-recipe-hrnn-coldstart.
*/
trainingMode?: TrainingMode;
/**
* The status of the solution version. A solution version can be in one of the following states: CREATE PENDING CREATE IN_PROGRESS ACTIVE CREATE FAILED
*/
status?: Status;
/**
* If training a solution version fails, the reason behind the failure.
* If training a solution version fails, the reason for the failure.
*/
failureReason?: FailureReason;
/**
Expand Down Expand Up @@ -1779,6 +1787,7 @@ declare namespace Personalize {
export type TrackingId = string;
export type TrainingHours = number;
export type TrainingInputMode = string;
export type TrainingMode = "FULL"|"UPDATE"|string;
export type TransactionsPerSecond = number;
export type Tunable = boolean;
export interface UpdateCampaignRequest {
Expand Down
6 changes: 3 additions & 3 deletions clients/workspaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ declare namespace WorkSpaces {
*/
EnableWorkDocs?: BooleanObject;
/**
* The public IP address to attach to all WorkSpaces that are created or rebuilt.
* Specifies whether to automatically assign a public IP address to WorkSpaces in this directory by default. If enabled, the public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces.
*/
EnableInternetAccess?: BooleanObject;
/**
Expand Down Expand Up @@ -665,7 +665,7 @@ declare namespace WorkSpaces {
}
export interface DescribeWorkspaceSnapshotsResult {
/**
* Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the root volume.
* Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.
*/
RebuildSnapshots?: SnapshotList;
/**
Expand Down Expand Up @@ -1322,7 +1322,7 @@ declare namespace WorkSpaces {
*/
RunningMode?: RunningMode;
/**
* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60 minute intervals.
* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
*/
RunningModeAutoStopTimeoutInMinutes?: RunningModeAutoStopTimeoutInMinutes;
/**
Expand Down
3 changes: 2 additions & 1 deletion 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.548.0',
VERSION: '2.549.0',

/**
* @api private
Expand Down Expand Up @@ -4755,6 +4755,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
throttledError: function throttledError(error) {
// this logic varies between services
if (error.statusCode === 429) return true;
switch (error.code) {
case 'ProvisionedThroughputExceededException':
case 'Throttling':
Expand Down
Loading

0 comments on commit 5041766

Please sign in to comment.