aws-sdk 2.291.0 → 2.292.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "type": "feature",
4
+ "category": "SageMaker",
5
+ "description": "SageMaker updated the default endpoint URL to support Private Link via the CLI/SDK."
6
+ }
7
+ ]
package/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # Changelog for AWS SDK for JavaScript
2
- <!--LATEST=2.291.0-->
2
+ <!--LATEST=2.292.0-->
3
3
  <!--ENTRYINSERT-->
4
4
 
5
+ ## 2.292.0
6
+ * feature: SageMaker: SageMaker updated the default endpoint URL to support Private Link via the CLI/SDK.
7
+
5
8
  ## 2.291.0
6
9
  * feature: MediaConvert: This release adds support for a new rate control mode, Quality-Defined Variable Bitrate (QVBR) encoding, includes updates to optimize transcoding performance, and resolves previously reported bugs.
7
10
 
package/README.md CHANGED
@@ -25,7 +25,7 @@ version.
25
25
  To use the SDK in the browser, simply add the following script tag to your
26
26
  HTML pages:
27
27
 
28
- <script src="https://sdk.amazonaws.com/js/aws-sdk-2.291.0.min.js"></script>
28
+ <script src="https://sdk.amazonaws.com/js/aws-sdk-2.292.0.min.js"></script>
29
29
 
30
30
  You can also build a custom browser SDK with your specified set of AWS services.
31
31
  This can allow you to reduce the SDK's size, specify different API versions of
@@ -2,7 +2,7 @@
2
2
  "version": "2.0",
3
3
  "metadata": {
4
4
  "apiVersion": "2017-07-24",
5
- "endpointPrefix": "sagemaker",
5
+ "endpointPrefix": "api.sagemaker",
6
6
  "jsonVersion": "1.1",
7
7
  "protocol": "json",
8
8
  "serviceAbbreviation": "SageMaker",
@@ -748,7 +748,7 @@ declare namespace SageMaker {
748
748
  */
749
749
  MaxPayloadInMB?: MaxPayloadInMB;
750
750
  /**
751
- * Determines the number of records included in a single mini-batch. SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit. Batch transform will automatically split your input data into whatever payload size is specified if you set SplitType to Line and BatchStrategy to MultiRecord. There's no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset are very large.
751
+ * Determines the number of records included in a single mini-batch. SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.
752
752
  */
753
753
  BatchStrategy?: BatchStrategy;
754
754
  /**
@@ -1126,7 +1126,7 @@ declare namespace SageMaker {
1126
1126
  */
1127
1127
  TrainingJobStatus: TrainingJobStatus;
1128
1128
  /**
1129
- * Provides granular information about the system state. For more information, see TrainingJobStatus. Starting - starting the training job. LaunchingMLInstances - launching ML instances for the training job. PreparingTrainingStack - preparing the ML instances for the training job. Downloading - downloading the input data. DownloadingTrainingImage - downloading the training algorithm image. Training - model training is in progress. Uploading - uploading the trained model. Stopping - stopping the training job. Stopped - the training job has stopped. MaxRuntimeExceeded - the training job exceeded the specified max run time and has been stopped. Completed - the training job has completed. Failed - the training job has failed. The failure reason is provided in the StatusMessage. The valid values for SecondaryStatus are subject to change. They primarily provide information on the progress of the training job.
1129
+ * Provides granular information about the system state. For more information, see TrainingJobStatus. Starting - starting the training job. LaunchingMLInstances - launching ML instances for the training job. PreparingTrainingStack - preparing the ML instances for the training job. Downloading - downloading the input data. DownloadingTrainingImage - downloading the training algorithm image. Training - model training is in progress. Uploading - uploading the trained model. Stopping - stopping the training job. Stopped - the training job has stopped. MaxRuntimeExceeded - the training exceed the specified the max run time, which means the training job is stopping. Completed - the training job has completed. Failed - the training job has failed. The failure reason is provided in the StatusMessage. The valid values for SecondaryStatus are subject to change. They primary provide information on the progress of the training job.
1130
1130
  */
1131
1131
  SecondaryStatus: SecondaryStatus;
1132
1132
  /**
@@ -1182,7 +1182,7 @@ declare namespace SageMaker {
1182
1182
  */
1183
1183
  LastModifiedTime?: Timestamp;
1184
1184
  /**
1185
- * To give an overview of the training job lifecycle, SecondaryStatusTransitions is a log of time-ordered secondary statuses that a training job has transitioned.
1185
+ * A log of time-ordered secondary statuses that a training job has transitioned.
1186
1186
  */
1187
1187
  SecondaryStatusTransitions?: SecondaryStatusTransitions;
1188
1188
  }
@@ -2254,7 +2254,7 @@ declare namespace SageMaker {
2254
2254
  */
2255
2255
  StartTime: Timestamp;
2256
2256
  /**
2257
- * A timestamp that shows when the secondary status has ended and the job has transitioned into another secondary status. The EndTime timestamp is also set after the training job has ended.
2257
+ * A timestamp that shows when the secondary status has ended and the job has transitioned into another secondary status.
2258
2258
  */
2259
2259
  EndTime?: Timestamp;
2260
2260
  /**
@@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
83
83
  /**
84
84
  * @constant
85
85
  */
86
- VERSION: '2.291.0',
86
+ VERSION: '2.292.0',
87
87
 
88
88
  /**
89
89
  * @api private
@@ -389,7 +389,7 @@ return /******/ (function(modules) { // webpackBootstrap
389
389
  /**
390
390
  * @constant
391
391
  */
392
- VERSION: '2.291.0',
392
+ VERSION: '2.292.0',
393
393
 
394
394
  /**
395
395
  * @api private
@@ -38501,7 +38501,7 @@ return /******/ (function(modules) { // webpackBootstrap
38501
38501
  /* 477 */
38502
38502
  /***/ (function(module, exports) {
38503
38503
 
38504
- module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-07-24","endpointPrefix":"sagemaker","jsonVersion":"1.1","protocol":"json","serviceAbbreviation":"SageMaker","serviceFullName":"Amazon SageMaker Service","serviceId":"SageMaker","signatureVersion":"v4","signingName":"sagemaker","targetPrefix":"SageMaker","uid":"sagemaker-2017-07-24"},"operations":{"AddTags":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"S3"}}},"output":{"type":"structure","members":{"Tags":{"shape":"S3"}}}},"CreateEndpoint":{"input":{"type":"structure","required":["EndpointName","EndpointConfigName"],"members":{"EndpointName":{},"EndpointConfigName":{},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"CreateEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName","ProductionVariants"],"members":{"EndpointConfigName":{},"ProductionVariants":{"shape":"Se"},"Tags":{"shape":"S3"},"KmsKeyId":{}}},"output":{"type":"structure","required":["EndpointConfigArn"],"members":{"EndpointConfigArn":{}}}},"CreateHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobConfig","TrainingJobDefinition"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobConfig":{"shape":"Sq"},"TrainingJobDefinition":{"shape":"S18"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["HyperParameterTuningJobArn"],"members":{"HyperParameterTuningJobArn":{}}}},"CreateModel":{"input":{"type":"structure","required":["ModelName","PrimaryContainer","ExecutionRoleArn"],"members":{"ModelName":{},"PrimaryContainer":{"shape":"S27"},"ExecutionRoleArn":{},"Tags":{"shape":"S3"},"VpcConfig":{"shape":"S1s"}}},"output":{"type":"structure","required":["ModelArn"],"members":{"ModelArn":{}}}},"CreateNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName","InstanceType","RoleArn"],"members":{"NotebookInstanceName":{},"InstanceType":{},"SubnetId":{},"SecurityGroupIds":{"shape":"S2j"},"RoleArn":{},"KmsKeyId":{},"Tags":{"shape":"S3"},"LifecycleConfigName":{},"DirectInternetAccess":{}}},"output":{"type":"structure","members":{"NotebookInstanceArn":{}}}},"CreateNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"}}},"output":{"type":"structure","members":{"NotebookInstanceLifecycleConfigArn":{}}}},"CreatePresignedNotebookInstanceUrl":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{},"SessionExpirationDurationInSeconds":{"type":"integer"}}},"output":{"type":"structure","members":{"AuthorizedUrl":{}}}},"CreateTrainingJob":{"input":{"type":"structure","required":["TrainingJobName","AlgorithmSpecification","RoleArn","InputDataConfig","OutputDataConfig","ResourceConfig","StoppingCondition"],"members":{"TrainingJobName":{},"HyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"shape":"S30"},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"VpcConfig":{"shape":"S1s"},"StoppingCondition":{"shape":"S22"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["TrainingJobArn"],"members":{"TrainingJobArn":{}}}},"CreateTransformJob":{"input":{"type":"structure","required":["TransformJobName","ModelName","TransformInput","TransformOutput","TransformResources"],"members":{"TransformJobName":{},"ModelName":{},"MaxConcurrentTransforms":{"type":"integer"},"MaxPayloadInMB":{"type":"integer"},"BatchStrategy":{},"Environment":{"shape":"S38"},"TransformInput":{"shape":"S3b"},"TransformOutput":{"shape":"S3f"},"TransformResources":{"shape":"S3i"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["TransformJobArn"],"members":{"TransformJobArn":{}}}},"DeleteEndpoint":{"input":{"type":"structure","required":["EndpointName"],"members":{"EndpointName":{}}}},"DeleteEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName"],"members":{"EndpointConfigName":{}}}},"DeleteModel":{"input":{"type":"structure","required":["ModelName"],"members":{"ModelName":{}}}},"DeleteNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"DeleteNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{}}}},"DeleteTags":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"DescribeEndpoint":{"input":{"type":"structure","required":["EndpointName"],"members":{"EndpointName":{}}},"output":{"type":"structure","required":["EndpointName","EndpointArn","EndpointConfigName","EndpointStatus","CreationTime","LastModifiedTime"],"members":{"EndpointName":{},"EndpointArn":{},"EndpointConfigName":{},"ProductionVariants":{"type":"list","member":{"type":"structure","required":["VariantName"],"members":{"VariantName":{},"DeployedImages":{"type":"list","member":{"type":"structure","members":{"SpecifiedImage":{},"ResolvedImage":{},"ResolutionTime":{"type":"timestamp"}}}},"CurrentWeight":{"type":"float"},"DesiredWeight":{"type":"float"},"CurrentInstanceCount":{"type":"integer"},"DesiredInstanceCount":{"type":"integer"}}}},"EndpointStatus":{},"FailureReason":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}}},"DescribeEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName"],"members":{"EndpointConfigName":{}}},"output":{"type":"structure","required":["EndpointConfigName","EndpointConfigArn","ProductionVariants","CreationTime"],"members":{"EndpointConfigName":{},"EndpointConfigArn":{},"ProductionVariants":{"shape":"Se"},"KmsKeyId":{},"CreationTime":{"type":"timestamp"}}}},"DescribeHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{}}},"output":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobArn","HyperParameterTuningJobConfig","TrainingJobDefinition","HyperParameterTuningJobStatus","CreationTime","TrainingJobStatusCounters","ObjectiveStatusCounters"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobArn":{},"HyperParameterTuningJobConfig":{"shape":"Sq"},"TrainingJobDefinition":{"shape":"S18"},"HyperParameterTuningJobStatus":{},"CreationTime":{"type":"timestamp"},"HyperParameterTuningEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatusCounters":{"shape":"S49"},"ObjectiveStatusCounters":{"shape":"S4b"},"BestTrainingJob":{"shape":"S4d"},"FailureReason":{}}}},"DescribeModel":{"input":{"type":"structure","required":["ModelName"],"members":{"ModelName":{}}},"output":{"type":"structure","required":["ModelName","PrimaryContainer","ExecutionRoleArn","CreationTime","ModelArn"],"members":{"ModelName":{},"PrimaryContainer":{"shape":"S27"},"ExecutionRoleArn":{},"VpcConfig":{"shape":"S1s"},"CreationTime":{"type":"timestamp"},"ModelArn":{}}}},"DescribeNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}},"output":{"type":"structure","members":{"NotebookInstanceArn":{},"NotebookInstanceName":{},"NotebookInstanceStatus":{},"FailureReason":{},"Url":{},"InstanceType":{},"SubnetId":{},"SecurityGroups":{"shape":"S2j"},"RoleArn":{},"KmsKeyId":{},"NetworkInterfaceId":{},"LastModifiedTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"},"NotebookInstanceLifecycleConfigName":{},"DirectInternetAccess":{}}}},"DescribeNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{}}},"output":{"type":"structure","members":{"NotebookInstanceLifecycleConfigArn":{},"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"},"LastModifiedTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"}}}},"DescribeTrainingJob":{"input":{"type":"structure","required":["TrainingJobName"],"members":{"TrainingJobName":{}}},"output":{"type":"structure","required":["TrainingJobName","TrainingJobArn","ModelArtifacts","TrainingJobStatus","SecondaryStatus","AlgorithmSpecification","InputDataConfig","ResourceConfig","StoppingCondition","CreationTime"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"TuningJobArn":{},"ModelArtifacts":{"type":"structure","required":["S3ModelArtifacts"],"members":{"S3ModelArtifacts":{}}},"TrainingJobStatus":{},"SecondaryStatus":{},"FailureReason":{},"HyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"shape":"S30"},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"VpcConfig":{"shape":"S1s"},"StoppingCondition":{"shape":"S22"},"CreationTime":{"type":"timestamp"},"TrainingStartTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"SecondaryStatusTransitions":{"type":"list","member":{"type":"structure","required":["Status","StartTime"],"members":{"Status":{},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"StatusMessage":{}}}}}}},"DescribeTransformJob":{"input":{"type":"structure","required":["TransformJobName"],"members":{"TransformJobName":{}}},"output":{"type":"structure","required":["TransformJobName","TransformJobArn","TransformJobStatus","ModelName","TransformInput","TransformResources","CreationTime"],"members":{"TransformJobName":{},"TransformJobArn":{},"TransformJobStatus":{},"FailureReason":{},"ModelName":{},"MaxConcurrentTransforms":{"type":"integer"},"MaxPayloadInMB":{"type":"integer"},"BatchStrategy":{},"Environment":{"shape":"S38"},"TransformInput":{"shape":"S3b"},"TransformOutput":{"shape":"S3f"},"TransformResources":{"shape":"S3i"},"CreationTime":{"type":"timestamp"},"TransformStartTime":{"type":"timestamp"},"TransformEndTime":{"type":"timestamp"}}}},"ListEndpointConfigs":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","required":["EndpointConfigs"],"members":{"EndpointConfigs":{"type":"list","member":{"type":"structure","required":["EndpointConfigName","EndpointConfigArn","CreationTime"],"members":{"EndpointConfigName":{},"EndpointConfigArn":{},"CreationTime":{"type":"timestamp"}}}},"NextToken":{}}}},"ListEndpoints":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"StatusEquals":{}}},"output":{"type":"structure","required":["Endpoints"],"members":{"Endpoints":{"type":"list","member":{"type":"structure","required":["EndpointName","EndpointArn","CreationTime","LastModifiedTime","EndpointStatus"],"members":{"EndpointName":{},"EndpointArn":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"EndpointStatus":{}}}},"NextToken":{}}}},"ListHyperParameterTuningJobs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"StatusEquals":{}}},"output":{"type":"structure","required":["HyperParameterTuningJobSummaries"],"members":{"HyperParameterTuningJobSummaries":{"type":"list","member":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobArn","HyperParameterTuningJobStatus","Strategy","CreationTime","TrainingJobStatusCounters","ObjectiveStatusCounters"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobArn":{},"HyperParameterTuningJobStatus":{},"Strategy":{},"CreationTime":{"type":"timestamp"},"HyperParameterTuningEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatusCounters":{"shape":"S49"},"ObjectiveStatusCounters":{"shape":"S4b"},"ResourceLimits":{"shape":"Sv"}}}},"NextToken":{}}}},"ListModels":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","required":["Models"],"members":{"Models":{"type":"list","member":{"type":"structure","required":["ModelName","ModelArn","CreationTime"],"members":{"ModelName":{},"ModelArn":{},"CreationTime":{"type":"timestamp"}}}},"NextToken":{}}}},"ListNotebookInstanceLifecycleConfigs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","members":{"NextToken":{},"NotebookInstanceLifecycleConfigs":{"type":"list","member":{"type":"structure","required":["NotebookInstanceLifecycleConfigName","NotebookInstanceLifecycleConfigArn"],"members":{"NotebookInstanceLifecycleConfigName":{},"NotebookInstanceLifecycleConfigArn":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}}}}}},"ListNotebookInstances":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"StatusEquals":{},"NotebookInstanceLifecycleConfigNameContains":{}}},"output":{"type":"structure","members":{"NextToken":{},"NotebookInstances":{"type":"list","member":{"type":"structure","required":["NotebookInstanceName","NotebookInstanceArn"],"members":{"NotebookInstanceName":{},"NotebookInstanceArn":{},"NotebookInstanceStatus":{},"Url":{},"InstanceType":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"NotebookInstanceLifecycleConfigName":{}}}}}}},"ListTags":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"Tags":{"shape":"S3"},"NextToken":{}}}},"ListTrainingJobs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"NameContains":{},"StatusEquals":{},"SortBy":{},"SortOrder":{}}},"output":{"type":"structure","required":["TrainingJobSummaries"],"members":{"TrainingJobSummaries":{"type":"list","member":{"type":"structure","required":["TrainingJobName","TrainingJobArn","CreationTime","TrainingJobStatus"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"CreationTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatus":{}}}},"NextToken":{}}}},"ListTrainingJobsForHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{},"NextToken":{},"MaxResults":{"type":"integer"},"StatusEquals":{},"SortBy":{},"SortOrder":{}}},"output":{"type":"structure","required":["TrainingJobSummaries"],"members":{"TrainingJobSummaries":{"type":"list","member":{"shape":"S4d"}},"NextToken":{}}}},"ListTransformJobs":{"input":{"type":"structure","members":{"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"NameContains":{},"StatusEquals":{},"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","required":["TransformJobSummaries"],"members":{"TransformJobSummaries":{"type":"list","member":{"type":"structure","required":["TransformJobName","TransformJobArn","CreationTime","TransformJobStatus"],"members":{"TransformJobName":{},"TransformJobArn":{},"CreationTime":{"type":"timestamp"},"TransformEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TransformJobStatus":{},"FailureReason":{}}}},"NextToken":{}}}},"StartNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"StopHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{}}}},"StopNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"StopTrainingJob":{"input":{"type":"structure","required":["TrainingJobName"],"members":{"TrainingJobName":{}}}},"StopTransformJob":{"input":{"type":"structure","required":["TransformJobName"],"members":{"TransformJobName":{}}}},"UpdateEndpoint":{"input":{"type":"structure","required":["EndpointName","EndpointConfigName"],"members":{"EndpointName":{},"EndpointConfigName":{}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"UpdateEndpointWeightsAndCapacities":{"input":{"type":"structure","required":["EndpointName","DesiredWeightsAndCapacities"],"members":{"EndpointName":{},"DesiredWeightsAndCapacities":{"type":"list","member":{"type":"structure","required":["VariantName"],"members":{"VariantName":{},"DesiredWeight":{"type":"float"},"DesiredInstanceCount":{"type":"integer"}}}}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"UpdateNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{},"InstanceType":{},"RoleArn":{}}},"output":{"type":"structure","members":{}}},"UpdateNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"}}},"output":{"type":"structure","members":{}}}},"shapes":{"S3":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Se":{"type":"list","member":{"type":"structure","required":["VariantName","ModelName","InitialInstanceCount","InstanceType"],"members":{"VariantName":{},"ModelName":{},"InitialInstanceCount":{"type":"integer"},"InstanceType":{},"InitialVariantWeight":{"type":"float"}}}},"Sq":{"type":"structure","required":["Strategy","HyperParameterTuningJobObjective","ResourceLimits","ParameterRanges"],"members":{"Strategy":{},"HyperParameterTuningJobObjective":{"type":"structure","required":["Type","MetricName"],"members":{"Type":{},"MetricName":{}}},"ResourceLimits":{"shape":"Sv"},"ParameterRanges":{"type":"structure","members":{"IntegerParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","MinValue","MaxValue"],"members":{"Name":{},"MinValue":{},"MaxValue":{}}}},"ContinuousParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","MinValue","MaxValue"],"members":{"Name":{},"MinValue":{},"MaxValue":{}}}},"CategoricalParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","Values"],"members":{"Name":{},"Values":{"type":"list","member":{}}}}}}}}},"Sv":{"type":"structure","required":["MaxNumberOfTrainingJobs","MaxParallelTrainingJobs"],"members":{"MaxNumberOfTrainingJobs":{"type":"integer"},"MaxParallelTrainingJobs":{"type":"integer"}}},"S18":{"type":"structure","required":["AlgorithmSpecification","RoleArn","InputDataConfig","OutputDataConfig","ResourceConfig","StoppingCondition"],"members":{"StaticHyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"type":"structure","required":["TrainingImage","TrainingInputMode"],"members":{"TrainingImage":{},"TrainingInputMode":{},"MetricDefinitions":{"type":"list","member":{"type":"structure","required":["Name","Regex"],"members":{"Name":{},"Regex":{}}}}}},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"VpcConfig":{"shape":"S1s"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"StoppingCondition":{"shape":"S22"}}},"S19":{"type":"map","key":{},"value":{}},"S1h":{"type":"list","member":{"type":"structure","required":["ChannelName","DataSource"],"members":{"ChannelName":{},"DataSource":{"type":"structure","required":["S3DataSource"],"members":{"S3DataSource":{"type":"structure","required":["S3DataType","S3Uri"],"members":{"S3DataType":{},"S3Uri":{},"S3DataDistributionType":{}}}}},"ContentType":{},"CompressionType":{},"RecordWrapperType":{}}}},"S1s":{"type":"structure","required":["SecurityGroupIds","Subnets"],"members":{"SecurityGroupIds":{"type":"list","member":{}},"Subnets":{"type":"list","member":{}}}},"S1x":{"type":"structure","required":["S3OutputPath"],"members":{"KmsKeyId":{},"S3OutputPath":{}}},"S1y":{"type":"structure","required":["InstanceType","InstanceCount","VolumeSizeInGB"],"members":{"InstanceType":{},"InstanceCount":{"type":"integer"},"VolumeSizeInGB":{"type":"integer"},"VolumeKmsKeyId":{}}},"S22":{"type":"structure","members":{"MaxRuntimeInSeconds":{"type":"integer"}}},"S27":{"type":"structure","required":["Image"],"members":{"ContainerHostname":{},"Image":{},"ModelDataUrl":{},"Environment":{"type":"map","key":{},"value":{}}}},"S2j":{"type":"list","member":{}},"S2p":{"type":"list","member":{"type":"structure","members":{"Content":{}}}},"S30":{"type":"structure","required":["TrainingImage","TrainingInputMode"],"members":{"TrainingImage":{},"TrainingInputMode":{}}},"S38":{"type":"map","key":{},"value":{}},"S3b":{"type":"structure","required":["DataSource"],"members":{"DataSource":{"type":"structure","required":["S3DataSource"],"members":{"S3DataSource":{"type":"structure","required":["S3DataType","S3Uri"],"members":{"S3DataType":{},"S3Uri":{}}}}},"ContentType":{},"CompressionType":{},"SplitType":{}}},"S3f":{"type":"structure","required":["S3OutputPath"],"members":{"S3OutputPath":{},"Accept":{},"AssembleWith":{},"KmsKeyId":{}}},"S3i":{"type":"structure","required":["InstanceType","InstanceCount"],"members":{"InstanceType":{},"InstanceCount":{"type":"integer"}}},"S49":{"type":"structure","members":{"Completed":{"type":"integer"},"InProgress":{"type":"integer"},"RetryableError":{"type":"integer"},"NonRetryableError":{"type":"integer"},"Stopped":{"type":"integer"}}},"S4b":{"type":"structure","members":{"Succeeded":{"type":"integer"},"Pending":{"type":"integer"},"Failed":{"type":"integer"}}},"S4d":{"type":"structure","required":["TrainingJobName","TrainingJobArn","CreationTime","TrainingJobStatus","TunedHyperParameters"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"CreationTime":{"type":"timestamp"},"TrainingStartTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"TrainingJobStatus":{},"TunedHyperParameters":{"shape":"S19"},"FailureReason":{},"FinalHyperParameterTuningJobObjectiveMetric":{"type":"structure","required":["MetricName","Value"],"members":{"Type":{},"MetricName":{},"Value":{"type":"float"}}},"ObjectiveStatus":{}}}}}
38504
+ module.exports = {"version":"2.0","metadata":{"apiVersion":"2017-07-24","endpointPrefix":"api.sagemaker","jsonVersion":"1.1","protocol":"json","serviceAbbreviation":"SageMaker","serviceFullName":"Amazon SageMaker Service","serviceId":"SageMaker","signatureVersion":"v4","signingName":"sagemaker","targetPrefix":"SageMaker","uid":"sagemaker-2017-07-24"},"operations":{"AddTags":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"S3"}}},"output":{"type":"structure","members":{"Tags":{"shape":"S3"}}}},"CreateEndpoint":{"input":{"type":"structure","required":["EndpointName","EndpointConfigName"],"members":{"EndpointName":{},"EndpointConfigName":{},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"CreateEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName","ProductionVariants"],"members":{"EndpointConfigName":{},"ProductionVariants":{"shape":"Se"},"Tags":{"shape":"S3"},"KmsKeyId":{}}},"output":{"type":"structure","required":["EndpointConfigArn"],"members":{"EndpointConfigArn":{}}}},"CreateHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobConfig","TrainingJobDefinition"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobConfig":{"shape":"Sq"},"TrainingJobDefinition":{"shape":"S18"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["HyperParameterTuningJobArn"],"members":{"HyperParameterTuningJobArn":{}}}},"CreateModel":{"input":{"type":"structure","required":["ModelName","PrimaryContainer","ExecutionRoleArn"],"members":{"ModelName":{},"PrimaryContainer":{"shape":"S27"},"ExecutionRoleArn":{},"Tags":{"shape":"S3"},"VpcConfig":{"shape":"S1s"}}},"output":{"type":"structure","required":["ModelArn"],"members":{"ModelArn":{}}}},"CreateNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName","InstanceType","RoleArn"],"members":{"NotebookInstanceName":{},"InstanceType":{},"SubnetId":{},"SecurityGroupIds":{"shape":"S2j"},"RoleArn":{},"KmsKeyId":{},"Tags":{"shape":"S3"},"LifecycleConfigName":{},"DirectInternetAccess":{}}},"output":{"type":"structure","members":{"NotebookInstanceArn":{}}}},"CreateNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"}}},"output":{"type":"structure","members":{"NotebookInstanceLifecycleConfigArn":{}}}},"CreatePresignedNotebookInstanceUrl":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{},"SessionExpirationDurationInSeconds":{"type":"integer"}}},"output":{"type":"structure","members":{"AuthorizedUrl":{}}}},"CreateTrainingJob":{"input":{"type":"structure","required":["TrainingJobName","AlgorithmSpecification","RoleArn","InputDataConfig","OutputDataConfig","ResourceConfig","StoppingCondition"],"members":{"TrainingJobName":{},"HyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"shape":"S30"},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"VpcConfig":{"shape":"S1s"},"StoppingCondition":{"shape":"S22"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["TrainingJobArn"],"members":{"TrainingJobArn":{}}}},"CreateTransformJob":{"input":{"type":"structure","required":["TransformJobName","ModelName","TransformInput","TransformOutput","TransformResources"],"members":{"TransformJobName":{},"ModelName":{},"MaxConcurrentTransforms":{"type":"integer"},"MaxPayloadInMB":{"type":"integer"},"BatchStrategy":{},"Environment":{"shape":"S38"},"TransformInput":{"shape":"S3b"},"TransformOutput":{"shape":"S3f"},"TransformResources":{"shape":"S3i"},"Tags":{"shape":"S3"}}},"output":{"type":"structure","required":["TransformJobArn"],"members":{"TransformJobArn":{}}}},"DeleteEndpoint":{"input":{"type":"structure","required":["EndpointName"],"members":{"EndpointName":{}}}},"DeleteEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName"],"members":{"EndpointConfigName":{}}}},"DeleteModel":{"input":{"type":"structure","required":["ModelName"],"members":{"ModelName":{}}}},"DeleteNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"DeleteNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{}}}},"DeleteTags":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"DescribeEndpoint":{"input":{"type":"structure","required":["EndpointName"],"members":{"EndpointName":{}}},"output":{"type":"structure","required":["EndpointName","EndpointArn","EndpointConfigName","EndpointStatus","CreationTime","LastModifiedTime"],"members":{"EndpointName":{},"EndpointArn":{},"EndpointConfigName":{},"ProductionVariants":{"type":"list","member":{"type":"structure","required":["VariantName"],"members":{"VariantName":{},"DeployedImages":{"type":"list","member":{"type":"structure","members":{"SpecifiedImage":{},"ResolvedImage":{},"ResolutionTime":{"type":"timestamp"}}}},"CurrentWeight":{"type":"float"},"DesiredWeight":{"type":"float"},"CurrentInstanceCount":{"type":"integer"},"DesiredInstanceCount":{"type":"integer"}}}},"EndpointStatus":{},"FailureReason":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}}},"DescribeEndpointConfig":{"input":{"type":"structure","required":["EndpointConfigName"],"members":{"EndpointConfigName":{}}},"output":{"type":"structure","required":["EndpointConfigName","EndpointConfigArn","ProductionVariants","CreationTime"],"members":{"EndpointConfigName":{},"EndpointConfigArn":{},"ProductionVariants":{"shape":"Se"},"KmsKeyId":{},"CreationTime":{"type":"timestamp"}}}},"DescribeHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{}}},"output":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobArn","HyperParameterTuningJobConfig","TrainingJobDefinition","HyperParameterTuningJobStatus","CreationTime","TrainingJobStatusCounters","ObjectiveStatusCounters"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobArn":{},"HyperParameterTuningJobConfig":{"shape":"Sq"},"TrainingJobDefinition":{"shape":"S18"},"HyperParameterTuningJobStatus":{},"CreationTime":{"type":"timestamp"},"HyperParameterTuningEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatusCounters":{"shape":"S49"},"ObjectiveStatusCounters":{"shape":"S4b"},"BestTrainingJob":{"shape":"S4d"},"FailureReason":{}}}},"DescribeModel":{"input":{"type":"structure","required":["ModelName"],"members":{"ModelName":{}}},"output":{"type":"structure","required":["ModelName","PrimaryContainer","ExecutionRoleArn","CreationTime","ModelArn"],"members":{"ModelName":{},"PrimaryContainer":{"shape":"S27"},"ExecutionRoleArn":{},"VpcConfig":{"shape":"S1s"},"CreationTime":{"type":"timestamp"},"ModelArn":{}}}},"DescribeNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}},"output":{"type":"structure","members":{"NotebookInstanceArn":{},"NotebookInstanceName":{},"NotebookInstanceStatus":{},"FailureReason":{},"Url":{},"InstanceType":{},"SubnetId":{},"SecurityGroups":{"shape":"S2j"},"RoleArn":{},"KmsKeyId":{},"NetworkInterfaceId":{},"LastModifiedTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"},"NotebookInstanceLifecycleConfigName":{},"DirectInternetAccess":{}}}},"DescribeNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{}}},"output":{"type":"structure","members":{"NotebookInstanceLifecycleConfigArn":{},"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"},"LastModifiedTime":{"type":"timestamp"},"CreationTime":{"type":"timestamp"}}}},"DescribeTrainingJob":{"input":{"type":"structure","required":["TrainingJobName"],"members":{"TrainingJobName":{}}},"output":{"type":"structure","required":["TrainingJobName","TrainingJobArn","ModelArtifacts","TrainingJobStatus","SecondaryStatus","AlgorithmSpecification","InputDataConfig","ResourceConfig","StoppingCondition","CreationTime"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"TuningJobArn":{},"ModelArtifacts":{"type":"structure","required":["S3ModelArtifacts"],"members":{"S3ModelArtifacts":{}}},"TrainingJobStatus":{},"SecondaryStatus":{},"FailureReason":{},"HyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"shape":"S30"},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"VpcConfig":{"shape":"S1s"},"StoppingCondition":{"shape":"S22"},"CreationTime":{"type":"timestamp"},"TrainingStartTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"SecondaryStatusTransitions":{"type":"list","member":{"type":"structure","required":["Status","StartTime"],"members":{"Status":{},"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"},"StatusMessage":{}}}}}}},"DescribeTransformJob":{"input":{"type":"structure","required":["TransformJobName"],"members":{"TransformJobName":{}}},"output":{"type":"structure","required":["TransformJobName","TransformJobArn","TransformJobStatus","ModelName","TransformInput","TransformResources","CreationTime"],"members":{"TransformJobName":{},"TransformJobArn":{},"TransformJobStatus":{},"FailureReason":{},"ModelName":{},"MaxConcurrentTransforms":{"type":"integer"},"MaxPayloadInMB":{"type":"integer"},"BatchStrategy":{},"Environment":{"shape":"S38"},"TransformInput":{"shape":"S3b"},"TransformOutput":{"shape":"S3f"},"TransformResources":{"shape":"S3i"},"CreationTime":{"type":"timestamp"},"TransformStartTime":{"type":"timestamp"},"TransformEndTime":{"type":"timestamp"}}}},"ListEndpointConfigs":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","required":["EndpointConfigs"],"members":{"EndpointConfigs":{"type":"list","member":{"type":"structure","required":["EndpointConfigName","EndpointConfigArn","CreationTime"],"members":{"EndpointConfigName":{},"EndpointConfigArn":{},"CreationTime":{"type":"timestamp"}}}},"NextToken":{}}}},"ListEndpoints":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"StatusEquals":{}}},"output":{"type":"structure","required":["Endpoints"],"members":{"Endpoints":{"type":"list","member":{"type":"structure","required":["EndpointName","EndpointArn","CreationTime","LastModifiedTime","EndpointStatus"],"members":{"EndpointName":{},"EndpointArn":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"EndpointStatus":{}}}},"NextToken":{}}}},"ListHyperParameterTuningJobs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"StatusEquals":{}}},"output":{"type":"structure","required":["HyperParameterTuningJobSummaries"],"members":{"HyperParameterTuningJobSummaries":{"type":"list","member":{"type":"structure","required":["HyperParameterTuningJobName","HyperParameterTuningJobArn","HyperParameterTuningJobStatus","Strategy","CreationTime","TrainingJobStatusCounters","ObjectiveStatusCounters"],"members":{"HyperParameterTuningJobName":{},"HyperParameterTuningJobArn":{},"HyperParameterTuningJobStatus":{},"Strategy":{},"CreationTime":{"type":"timestamp"},"HyperParameterTuningEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatusCounters":{"shape":"S49"},"ObjectiveStatusCounters":{"shape":"S4b"},"ResourceLimits":{"shape":"Sv"}}}},"NextToken":{}}}},"ListModels":{"input":{"type":"structure","members":{"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","required":["Models"],"members":{"Models":{"type":"list","member":{"type":"structure","required":["ModelName","ModelArn","CreationTime"],"members":{"ModelName":{},"ModelArn":{},"CreationTime":{"type":"timestamp"}}}},"NextToken":{}}}},"ListNotebookInstanceLifecycleConfigs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"}}},"output":{"type":"structure","members":{"NextToken":{},"NotebookInstanceLifecycleConfigs":{"type":"list","member":{"type":"structure","required":["NotebookInstanceLifecycleConfigName","NotebookInstanceLifecycleConfigArn"],"members":{"NotebookInstanceLifecycleConfigName":{},"NotebookInstanceLifecycleConfigArn":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}}}}}},"ListNotebookInstances":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"SortBy":{},"SortOrder":{},"NameContains":{},"CreationTimeBefore":{"type":"timestamp"},"CreationTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"StatusEquals":{},"NotebookInstanceLifecycleConfigNameContains":{}}},"output":{"type":"structure","members":{"NextToken":{},"NotebookInstances":{"type":"list","member":{"type":"structure","required":["NotebookInstanceName","NotebookInstanceArn"],"members":{"NotebookInstanceName":{},"NotebookInstanceArn":{},"NotebookInstanceStatus":{},"Url":{},"InstanceType":{},"CreationTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"NotebookInstanceLifecycleConfigName":{}}}}}}},"ListTags":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"Tags":{"shape":"S3"},"NextToken":{}}}},"ListTrainingJobs":{"input":{"type":"structure","members":{"NextToken":{},"MaxResults":{"type":"integer"},"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"NameContains":{},"StatusEquals":{},"SortBy":{},"SortOrder":{}}},"output":{"type":"structure","required":["TrainingJobSummaries"],"members":{"TrainingJobSummaries":{"type":"list","member":{"type":"structure","required":["TrainingJobName","TrainingJobArn","CreationTime","TrainingJobStatus"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"CreationTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TrainingJobStatus":{}}}},"NextToken":{}}}},"ListTrainingJobsForHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{},"NextToken":{},"MaxResults":{"type":"integer"},"StatusEquals":{},"SortBy":{},"SortOrder":{}}},"output":{"type":"structure","required":["TrainingJobSummaries"],"members":{"TrainingJobSummaries":{"type":"list","member":{"shape":"S4d"}},"NextToken":{}}}},"ListTransformJobs":{"input":{"type":"structure","members":{"CreationTimeAfter":{"type":"timestamp"},"CreationTimeBefore":{"type":"timestamp"},"LastModifiedTimeAfter":{"type":"timestamp"},"LastModifiedTimeBefore":{"type":"timestamp"},"NameContains":{},"StatusEquals":{},"SortBy":{},"SortOrder":{},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","required":["TransformJobSummaries"],"members":{"TransformJobSummaries":{"type":"list","member":{"type":"structure","required":["TransformJobName","TransformJobArn","CreationTime","TransformJobStatus"],"members":{"TransformJobName":{},"TransformJobArn":{},"CreationTime":{"type":"timestamp"},"TransformEndTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"TransformJobStatus":{},"FailureReason":{}}}},"NextToken":{}}}},"StartNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"StopHyperParameterTuningJob":{"input":{"type":"structure","required":["HyperParameterTuningJobName"],"members":{"HyperParameterTuningJobName":{}}}},"StopNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{}}}},"StopTrainingJob":{"input":{"type":"structure","required":["TrainingJobName"],"members":{"TrainingJobName":{}}}},"StopTransformJob":{"input":{"type":"structure","required":["TransformJobName"],"members":{"TransformJobName":{}}}},"UpdateEndpoint":{"input":{"type":"structure","required":["EndpointName","EndpointConfigName"],"members":{"EndpointName":{},"EndpointConfigName":{}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"UpdateEndpointWeightsAndCapacities":{"input":{"type":"structure","required":["EndpointName","DesiredWeightsAndCapacities"],"members":{"EndpointName":{},"DesiredWeightsAndCapacities":{"type":"list","member":{"type":"structure","required":["VariantName"],"members":{"VariantName":{},"DesiredWeight":{"type":"float"},"DesiredInstanceCount":{"type":"integer"}}}}}},"output":{"type":"structure","required":["EndpointArn"],"members":{"EndpointArn":{}}}},"UpdateNotebookInstance":{"input":{"type":"structure","required":["NotebookInstanceName"],"members":{"NotebookInstanceName":{},"InstanceType":{},"RoleArn":{}}},"output":{"type":"structure","members":{}}},"UpdateNotebookInstanceLifecycleConfig":{"input":{"type":"structure","required":["NotebookInstanceLifecycleConfigName"],"members":{"NotebookInstanceLifecycleConfigName":{},"OnCreate":{"shape":"S2p"},"OnStart":{"shape":"S2p"}}},"output":{"type":"structure","members":{}}}},"shapes":{"S3":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Se":{"type":"list","member":{"type":"structure","required":["VariantName","ModelName","InitialInstanceCount","InstanceType"],"members":{"VariantName":{},"ModelName":{},"InitialInstanceCount":{"type":"integer"},"InstanceType":{},"InitialVariantWeight":{"type":"float"}}}},"Sq":{"type":"structure","required":["Strategy","HyperParameterTuningJobObjective","ResourceLimits","ParameterRanges"],"members":{"Strategy":{},"HyperParameterTuningJobObjective":{"type":"structure","required":["Type","MetricName"],"members":{"Type":{},"MetricName":{}}},"ResourceLimits":{"shape":"Sv"},"ParameterRanges":{"type":"structure","members":{"IntegerParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","MinValue","MaxValue"],"members":{"Name":{},"MinValue":{},"MaxValue":{}}}},"ContinuousParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","MinValue","MaxValue"],"members":{"Name":{},"MinValue":{},"MaxValue":{}}}},"CategoricalParameterRanges":{"type":"list","member":{"type":"structure","required":["Name","Values"],"members":{"Name":{},"Values":{"type":"list","member":{}}}}}}}}},"Sv":{"type":"structure","required":["MaxNumberOfTrainingJobs","MaxParallelTrainingJobs"],"members":{"MaxNumberOfTrainingJobs":{"type":"integer"},"MaxParallelTrainingJobs":{"type":"integer"}}},"S18":{"type":"structure","required":["AlgorithmSpecification","RoleArn","InputDataConfig","OutputDataConfig","ResourceConfig","StoppingCondition"],"members":{"StaticHyperParameters":{"shape":"S19"},"AlgorithmSpecification":{"type":"structure","required":["TrainingImage","TrainingInputMode"],"members":{"TrainingImage":{},"TrainingInputMode":{},"MetricDefinitions":{"type":"list","member":{"type":"structure","required":["Name","Regex"],"members":{"Name":{},"Regex":{}}}}}},"RoleArn":{},"InputDataConfig":{"shape":"S1h"},"VpcConfig":{"shape":"S1s"},"OutputDataConfig":{"shape":"S1x"},"ResourceConfig":{"shape":"S1y"},"StoppingCondition":{"shape":"S22"}}},"S19":{"type":"map","key":{},"value":{}},"S1h":{"type":"list","member":{"type":"structure","required":["ChannelName","DataSource"],"members":{"ChannelName":{},"DataSource":{"type":"structure","required":["S3DataSource"],"members":{"S3DataSource":{"type":"structure","required":["S3DataType","S3Uri"],"members":{"S3DataType":{},"S3Uri":{},"S3DataDistributionType":{}}}}},"ContentType":{},"CompressionType":{},"RecordWrapperType":{}}}},"S1s":{"type":"structure","required":["SecurityGroupIds","Subnets"],"members":{"SecurityGroupIds":{"type":"list","member":{}},"Subnets":{"type":"list","member":{}}}},"S1x":{"type":"structure","required":["S3OutputPath"],"members":{"KmsKeyId":{},"S3OutputPath":{}}},"S1y":{"type":"structure","required":["InstanceType","InstanceCount","VolumeSizeInGB"],"members":{"InstanceType":{},"InstanceCount":{"type":"integer"},"VolumeSizeInGB":{"type":"integer"},"VolumeKmsKeyId":{}}},"S22":{"type":"structure","members":{"MaxRuntimeInSeconds":{"type":"integer"}}},"S27":{"type":"structure","required":["Image"],"members":{"ContainerHostname":{},"Image":{},"ModelDataUrl":{},"Environment":{"type":"map","key":{},"value":{}}}},"S2j":{"type":"list","member":{}},"S2p":{"type":"list","member":{"type":"structure","members":{"Content":{}}}},"S30":{"type":"structure","required":["TrainingImage","TrainingInputMode"],"members":{"TrainingImage":{},"TrainingInputMode":{}}},"S38":{"type":"map","key":{},"value":{}},"S3b":{"type":"structure","required":["DataSource"],"members":{"DataSource":{"type":"structure","required":["S3DataSource"],"members":{"S3DataSource":{"type":"structure","required":["S3DataType","S3Uri"],"members":{"S3DataType":{},"S3Uri":{}}}}},"ContentType":{},"CompressionType":{},"SplitType":{}}},"S3f":{"type":"structure","required":["S3OutputPath"],"members":{"S3OutputPath":{},"Accept":{},"AssembleWith":{},"KmsKeyId":{}}},"S3i":{"type":"structure","required":["InstanceType","InstanceCount"],"members":{"InstanceType":{},"InstanceCount":{"type":"integer"}}},"S49":{"type":"structure","members":{"Completed":{"type":"integer"},"InProgress":{"type":"integer"},"RetryableError":{"type":"integer"},"NonRetryableError":{"type":"integer"},"Stopped":{"type":"integer"}}},"S4b":{"type":"structure","members":{"Succeeded":{"type":"integer"},"Pending":{"type":"integer"},"Failed":{"type":"integer"}}},"S4d":{"type":"structure","required":["TrainingJobName","TrainingJobArn","CreationTime","TrainingJobStatus","TunedHyperParameters"],"members":{"TrainingJobName":{},"TrainingJobArn":{},"CreationTime":{"type":"timestamp"},"TrainingStartTime":{"type":"timestamp"},"TrainingEndTime":{"type":"timestamp"},"TrainingJobStatus":{},"TunedHyperParameters":{"shape":"S19"},"FailureReason":{},"FinalHyperParameterTuningJobObjectiveMetric":{"type":"structure","required":["MetricName","Value"],"members":{"Type":{},"MetricName":{},"Value":{"type":"float"}}},"ObjectiveStatus":{}}}}}
38505
38505
 
38506
38506
  /***/ }),
38507
38507
  /* 478 */
package/dist/aws-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- // AWS SDK for JavaScript v2.291.0
1
+ // AWS SDK for JavaScript v2.292.0
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(){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){
@@ -132855,7 +132855,7 @@ AWS.util.update(AWS, {
132855
132855
  /**
132856
132856
  * @constant
132857
132857
  */
132858
- VERSION: '2.291.0',
132858
+ VERSION: '2.292.0',
132859
132859
 
132860
132860
  /**
132861
132861
  * @api private
@@ -151987,7 +151987,7 @@ function v4(options, buf, offset) {
151987
151987
  module.exports = v4;
151988
151988
 
151989
151989
  },{"./lib/bytesToUuid":357,"./lib/rng":358}],361:[function(require,module,exports){
151990
- // AWS SDK for JavaScript v2.291.0
151990
+ // AWS SDK for JavaScript v2.292.0
151991
151991
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151992
151992
  // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
151993
151993
  require('./browser_loader');
@@ -1,4 +1,4 @@
1
- // AWS SDK for JavaScript v2.291.0
1
+ // AWS SDK for JavaScript v2.292.0
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(){function e(t,r,a){function i(o,n){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!n&&u)return u(o,!0);if(s)return s(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var m=r[o]={exports:{}};t[o][0].call(m.exports,function(e){return i(t[o][1][e]||e)},m,m.exports,e,t,r,a)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o<a.length;o++)i(a[o]);return i}return e}()({1:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2015-12-08",endpointPrefix:"acm",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"ACM",serviceFullName:"AWS Certificate Manager",serviceId:"ACM",signatureVersion:"v4",targetPrefix:"CertificateManager",uid:"acm-2015-12-08"},operations:{AddTagsToCertificate:{input:{type:"structure",required:["CertificateArn","Tags"],members:{CertificateArn:{},Tags:{shape:"S3"}}}},DeleteCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}}},DescribeCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{type:"structure",members:{CertificateArn:{},DomainName:{},SubjectAlternativeNames:{shape:"Sc"},DomainValidationOptions:{shape:"Sd"},Serial:{},Subject:{},Issuer:{},CreatedAt:{type:"timestamp"},IssuedAt:{type:"timestamp"},ImportedAt:{type:"timestamp"},Status:{},RevokedAt:{type:"timestamp"},RevocationReason:{},NotBefore:{type:"timestamp"},NotAfter:{type:"timestamp"},KeyAlgorithm:{},SignatureAlgorithm:{},InUseBy:{type:"list",member:{}},FailureReason:{},Type:{},RenewalSummary:{type:"structure",required:["RenewalStatus","DomainValidationOptions"],members:{RenewalStatus:{},DomainValidationOptions:{shape:"Sd"}}},KeyUsages:{type:"list",member:{type:"structure",members:{Name:{}}}},ExtendedKeyUsages:{type:"list",member:{type:"structure",members:{Name:{},OID:{}}}},CertificateAuthorityArn:{},RenewalEligibility:{},Options:{shape:"S11"}}}}}},ExportCertificate:{input:{type:"structure",required:["CertificateArn","Passphrase"],members:{CertificateArn:{},Passphrase:{type:"blob",sensitive:!0}}},output:{type:"structure",members:{Certificate:{},CertificateChain:{},PrivateKey:{type:"string",sensitive:!0}}}},GetCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{},CertificateChain:{}}}},ImportCertificate:{input:{type:"structure",required:["Certificate","PrivateKey"],members:{CertificateArn:{},Certificate:{type:"blob"},PrivateKey:{type:"blob",sensitive:!0},CertificateChain:{type:"blob"}}},output:{type:"structure",members:{CertificateArn:{}}}},ListCertificates:{input:{type:"structure",members:{CertificateStatuses:{type:"list",member:{}},Includes:{type:"structure",members:{extendedKeyUsage:{type:"list",member:{}},keyUsage:{type:"list",member:{}},keyTypes:{type:"list",member:{}}}},NextToken:{},MaxItems:{type:"integer"}}},output:{type:"structure",members:{NextToken:{},CertificateSummaryList:{type:"list",member:{type:"structure",members:{CertificateArn:{},DomainName:{}}}}}}},ListTagsForCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Tags:{shape:"S3"}}}},RemoveTagsFromCertificate:{input:{type:"structure",required:["CertificateArn","Tags"],members:{CertificateArn:{},Tags:{shape:"S3"}}}},RequestCertificate:{input:{type:"structure",required:["DomainName"],members:{DomainName:{},ValidationMethod:{},SubjectAlternativeNames:{shape:"Sc"},IdempotencyToken:{},DomainValidationOptions:{type:"list",member:{type:"structure",required:["DomainName","ValidationDomain"],members:{DomainName:{},ValidationDomain:{}}}},Options:{shape:"S11"},CertificateAuthorityArn:{}}},output:{type:"structure",members:{CertificateArn:{}}}},ResendValidationEmail:{input:{type:"structure",required:["CertificateArn","Domain","ValidationDomain"],members:{CertificateArn:{},Domain:{},ValidationDomain:{}}}},UpdateCertificateOptions:{input:{type:"structure",required:["CertificateArn","Options"],members:{CertificateArn:{},Options:{shape:"S11"}}}}},shapes:{S3:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}},Sc:{type:"list",member:{}},Sd:{type:"list",member:{type:"structure",required:["DomainName"],members:{DomainName:{},ValidationEmails:{type:"list",member:{}},ValidationDomain:{},ValidationStatus:{},ResourceRecord:{type:"structure",required:["Name","Type","Value"],members:{Name:{},Type:{},Value:{}}},ValidationMethod:{}}}},S11:{type:"structure",members:{CertificateTransparencyLoggingPreference:{}}}}}},{}],2:[function(e,t,r){t.exports={pagination:{ListCertificates:{input_token:"NextToken",limit_key:"MaxItems",output_token:"NextToken",result_key:"CertificateSummaryList"}}}},{}],3:[function(e,t,r){t.exports={version:2,waiters:{CertificateValidated:{delay:60,maxAttempts:40,operation:"DescribeCertificate",acceptors:[{matcher:"pathAll",expected:"SUCCESS",argument:"Certificate.DomainValidationOptions[].ValidationStatus",state:"success"},{matcher:"pathAny",expected:"PENDING_VALIDATION",argument:"Certificate.DomainValidationOptions[].ValidationStatus",state:"retry"},{matcher:"path",expected:"FAILED",argument:"Certificate.Status",state:"failure"},{matcher:"error",expected:"ResourceNotFoundException",state:"failure"}]}}}},{}],4:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2015-07-09",endpointPrefix:"apigateway",protocol:"rest-json",serviceFullName:"Amazon API Gateway",serviceId:"API Gateway",signatureVersion:"v4",uid:"apigateway-2015-07-09"},operations:{CreateApiKey:{http:{requestUri:"/apikeys",responseCode:201},input:{type:"structure",members:{name:{},description:{},enabled:{type:"boolean"},generateDistinctId:{type:"boolean"},value:{},stageKeys:{type:"list",member:{type:"structure",members:{restApiId:{},stageName:{}}}},customerId:{}}},output:{shape:"S6"}},CreateAuthorizer:{http:{requestUri:"/restapis/{restapi_id}/authorizers",responseCode:201},input:{type:"structure",required:["restApiId","name","type"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},type:{},providerARNs:{shape:"Sb"},authType:{},authorizerUri:{},authorizerCredentials:{},identitySource:{},identityValidationExpression:{},authorizerResultTtlInSeconds:{type:"integer"}}},output:{shape:"Se"}},CreateBasePathMapping:{http:{requestUri:"/domainnames/{domain_name}/basepathmappings",responseCode:201},input:{type:"structure",required:["domainName","restApiId"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{},restApiId:{},stage:{}}},output:{shape:"Sg"}},CreateDeployment:{http:{requestUri:"/restapis/{restapi_id}/deployments",responseCode:201},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{},stageDescription:{},description:{},cacheClusterEnabled:{type:"boolean"},cacheClusterSize:{},variables:{shape:"Sk"},canarySettings:{type:"structure",members:{percentTraffic:{type:"double"},stageVariableOverrides:{shape:"Sk"},useStageCache:{type:"boolean"}}}}},output:{shape:"Sn"}},CreateDocumentationPart:{http:{requestUri:"/restapis/{restapi_id}/documentation/parts",responseCode:201},input:{type:"structure",required:["restApiId","location","properties"],members:{restApiId:{location:"uri",locationName:"restapi_id"},location:{shape:"Ss"},properties:{}}},output:{shape:"Sv"}},CreateDocumentationVersion:{http:{requestUri:"/restapis/{restapi_id}/documentation/versions",responseCode:201},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{},stageName:{},description:{}}},output:{shape:"Sx"}},CreateDomainName:{http:{requestUri:"/domainnames",responseCode:201},input:{type:"structure",required:["domainName"],members:{domainName:{},certificateName:{},certificateBody:{},certificatePrivateKey:{},certificateChain:{},certificateArn:{},regionalCertificateName:{},regionalCertificateArn:{},endpointConfiguration:{shape:"Sz"}}},output:{shape:"S12"}},CreateModel:{http:{requestUri:"/restapis/{restapi_id}/models",responseCode:201},input:{type:"structure",required:["restApiId","name","contentType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},description:{},schema:{},contentType:{}}},output:{shape:"S14"}},CreateRequestValidator:{http:{requestUri:"/restapis/{restapi_id}/requestvalidators",responseCode:201},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},validateRequestBody:{type:"boolean"},validateRequestParameters:{type:"boolean"}}},output:{shape:"S16"}},CreateResource:{http:{requestUri:"/restapis/{restapi_id}/resources/{parent_id}",responseCode:201},input:{type:"structure",required:["restApiId","parentId","pathPart"],members:{restApiId:{location:"uri",locationName:"restapi_id"},parentId:{location:"uri",locationName:"parent_id"},pathPart:{}}},output:{shape:"S18"}},CreateRestApi:{http:{requestUri:"/restapis",responseCode:201},input:{type:"structure",required:["name"],members:{name:{},description:{},version:{},cloneFrom:{},binaryMediaTypes:{shape:"S8"},minimumCompressionSize:{type:"integer"},apiKeySource:{},endpointConfiguration:{shape:"Sz"},policy:{}}},output:{shape:"S1o"}},CreateStage:{http:{requestUri:"/restapis/{restapi_id}/stages",responseCode:201},input:{type:"structure",required:["restApiId","stageName","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{},deploymentId:{},description:{},cacheClusterEnabled:{type:"boolean"},cacheClusterSize:{},variables:{shape:"Sk"},documentationVersion:{},canarySettings:{shape:"S1q"},tags:{shape:"Sk"}}},output:{shape:"S1r"}},CreateUsagePlan:{http:{requestUri:"/usageplans",responseCode:201},input:{type:"structure",required:["name"],members:{name:{},description:{},apiStages:{shape:"S1y"},throttle:{shape:"S21"},quota:{shape:"S22"}}},output:{shape:"S24"}},CreateUsagePlanKey:{http:{requestUri:"/usageplans/{usageplanId}/keys",responseCode:201},input:{type:"structure",required:["usagePlanId","keyId","keyType"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"},keyId:{},keyType:{}}},output:{shape:"S26"}},CreateVpcLink:{http:{requestUri:"/vpclinks",responseCode:202},input:{type:"structure",required:["name","targetArns"],members:{name:{},description:{},targetArns:{shape:"S8"}}},output:{shape:"S28"}},DeleteApiKey:{http:{method:"DELETE",requestUri:"/apikeys/{api_Key}",responseCode:202},input:{type:"structure",required:["apiKey"],members:{apiKey:{location:"uri",locationName:"api_Key"}}}},DeleteAuthorizer:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/authorizers/{authorizer_id}",responseCode:202},input:{type:"structure",required:["restApiId","authorizerId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},authorizerId:{location:"uri",locationName:"authorizer_id"}}}},DeleteBasePathMapping:{http:{method:"DELETE",requestUri:"/domainnames/{domain_name}/basepathmappings/{base_path}",responseCode:202},input:{type:"structure",required:["domainName","basePath"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{location:"uri",locationName:"base_path"}}}},DeleteClientCertificate:{http:{method:"DELETE",requestUri:"/clientcertificates/{clientcertificate_id}",responseCode:202},input:{type:"structure",required:["clientCertificateId"],members:{clientCertificateId:{location:"uri",locationName:"clientcertificate_id"}}}},DeleteDeployment:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/deployments/{deployment_id}",responseCode:202},input:{type:"structure",required:["restApiId","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},deploymentId:{location:"uri",locationName:"deployment_id"}}}},DeleteDocumentationPart:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/documentation/parts/{part_id}",responseCode:202},input:{type:"structure",required:["restApiId","documentationPartId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationPartId:{location:"uri",locationName:"part_id"}}}},DeleteDocumentationVersion:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/documentation/versions/{doc_version}",responseCode:202},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{location:"uri",locationName:"doc_version"}}}},DeleteDomainName:{http:{method:"DELETE",requestUri:"/domainnames/{domain_name}",responseCode:202},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"}}}},DeleteGatewayResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/gatewayresponses/{response_type}",responseCode:202},input:{type:"structure",required:["restApiId","responseType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},responseType:{location:"uri",locationName:"response_type"}}}},DeleteIntegration:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}}},DeleteIntegrationResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}}},DeleteMethod:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}}},DeleteMethodResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}}},DeleteModel:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/models/{model_name}",responseCode:202},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"}}}},DeleteRequestValidator:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}",responseCode:202},input:{type:"structure",required:["restApiId","requestValidatorId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},requestValidatorId:{location:"uri",locationName:"requestvalidator_id"}}}},DeleteResource:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}",responseCode:202},input:{type:"structure",required:["restApiId","resourceId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"}}}},DeleteRestApi:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}",responseCode:202},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"}}}},DeleteStage:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},DeleteUsagePlan:{http:{method:"DELETE",requestUri:"/usageplans/{usageplanId}",responseCode:202},input:{type:"structure",required:["usagePlanId"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"}}}},DeleteUsagePlanKey:{http:{method:"DELETE",requestUri:"/usageplans/{usageplanId}/keys/{keyId}",responseCode:202},input:{type:"structure",required:["usagePlanId","keyId"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"},keyId:{location:"uri",locationName:"keyId"}}}},DeleteVpcLink:{http:{method:"DELETE",requestUri:"/vpclinks/{vpclink_id}",responseCode:202},input:{type:"structure",required:["vpcLinkId"],members:{vpcLinkId:{location:"uri",locationName:"vpclink_id"}}}},FlushStageAuthorizersCache:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},FlushStageCache:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/cache/data",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},GenerateClientCertificate:{http:{requestUri:"/clientcertificates",responseCode:201},input:{type:"structure",members:{description:{}}},output:{shape:"S2z"}},GetAccount:{http:{method:"GET",requestUri:"/account"},input:{type:"structure",members:{}},output:{shape:"S31"}},GetApiKey:{http:{method:"GET",requestUri:"/apikeys/{api_Key}"},input:{type:"structure",required:["apiKey"],members:{apiKey:{location:"uri",locationName:"api_Key"},includeValue:{location:"querystring",locationName:"includeValue",type:"boolean"}}},output:{shape:"S6"}},GetApiKeys:{http:{method:"GET",requestUri:"/apikeys"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},nameQuery:{location:"querystring",locationName:"name"},customerId:{location:"querystring",locationName:"customerId"},includeValues:{location:"querystring",locationName:"includeValues",type:"boolean"}}},output:{type:"structure",members:{warnings:{shape:"S8"},position:{},items:{locationName:"item",type:"list",member:{shape:"S6"}}}}},GetAuthorizer:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/authorizers/{authorizer_id}"},input:{type:"structure",required:["restApiId","authorizerId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},authorizerId:{location:"uri",locationName:"authorizer_id"}}},output:{shape:"Se"}},GetAuthorizers:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/authorizers"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Se"}}}}},GetBasePathMapping:{http:{method:"GET",requestUri:"/domainnames/{domain_name}/basepathmappings/{base_path}"},input:{type:"structure",required:["domainName","basePath"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{location:"uri",locationName:"base_path"}}},output:{shape:"Sg"}},GetBasePathMappings:{http:{method:"GET",requestUri:"/domainnames/{domain_name}/basepathmappings"},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sg"}}}}},GetClientCertificate:{http:{method:"GET",requestUri:"/clientcertificates/{clientcertificate_id}"},input:{type:"structure",required:["clientCertificateId"],members:{clientCertificateId:{location:"uri",locationName:"clientcertificate_id"}}},output:{shape:"S2z"}},GetClientCertificates:{http:{method:"GET",requestUri:"/clientcertificates"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S2z"}}}}},GetDeployment:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/deployments/{deployment_id}"},input:{type:"structure",required:["restApiId","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},deploymentId:{location:"uri",locationName:"deployment_id"},embed:{shape:"S8",location:"querystring",locationName:"embed"}}},output:{shape:"Sn"}},GetDeployments:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/deployments"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sn"}}}}},GetDocumentationPart:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/parts/{part_id}"},input:{type:"structure",required:["restApiId","documentationPartId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationPartId:{location:"uri",locationName:"part_id"}}},output:{shape:"Sv"}},GetDocumentationParts:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/parts"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},type:{location:"querystring",locationName:"type"},nameQuery:{location:"querystring",locationName:"name"},path:{location:"querystring",locationName:"path"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},locationStatus:{location:"querystring",locationName:"locationStatus"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sv"}}}}},GetDocumentationVersion:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/versions/{doc_version}"},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{location:"uri",locationName:"doc_version"}}},output:{shape:"Sx"}},GetDocumentationVersions:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/versions"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sx"}}}}},GetDomainName:{http:{method:"GET",requestUri:"/domainnames/{domain_name}"},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"}}},output:{shape:"S12"}},GetDomainNames:{http:{method:"GET",requestUri:"/domainnames"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S12"}}}}},GetExport:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}",responseCode:200},input:{type:"structure",required:["restApiId","stageName","exportType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"},exportType:{location:"uri",locationName:"export_type"},parameters:{shape:"Sk",location:"querystring"},accepts:{location:"header",locationName:"Accept"}}},output:{type:"structure",members:{contentType:{location:"header",locationName:"Content-Type"},contentDisposition:{location:"header",locationName:"Content-Disposition"},body:{type:"blob"}},payload:"body"}},GetGatewayResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/gatewayresponses/{response_type}"},input:{type:"structure",required:["restApiId","responseType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},responseType:{location:"uri",locationName:"response_type"}}},output:{shape:"S43"}},GetGatewayResponses:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/gatewayresponses"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S43"}}}}},GetIntegration:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration"},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}},output:{shape:"S1f"}},GetIntegrationResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}},output:{shape:"S1l"}},GetMethod:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}},output:{shape:"S1a"}},GetMethodResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}},output:{shape:"S1d"}},GetModel:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models/{model_name}"},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"},flatten:{location:"querystring",locationName:"flatten",type:"boolean"}}},output:{shape:"S14"}},GetModelTemplate:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models/{model_name}/default_template"},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"}}},output:{type:"structure",members:{value:{}}}},GetModels:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S14"}}}}},GetRequestValidator:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}"},input:{type:"structure",required:["restApiId","requestValidatorId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},requestValidatorId:{location:"uri",locationName:"requestvalidator_id"}}},output:{shape:"S16"}},GetRequestValidators:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/requestvalidators"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S16"}}}}},GetResource:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}"},input:{type:"structure",required:["restApiId","resourceId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},embed:{shape:"S8",location:"querystring",locationName:"embed"}}},output:{shape:"S18"}},GetResources:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},embed:{shape:"S8",location:"querystring",locationName:"embed"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S18"}}}}},GetRestApi:{http:{method:"GET",requestUri:"/restapis/{restapi_id}"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"}}},output:{shape:"S1o"}},GetRestApis:{http:{method:"GET",requestUri:"/restapis"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S1o"}}}}},GetSdk:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}",responseCode:200},input:{type:"structure",required:["restApiId","stageName","sdkType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"},sdkType:{location:"uri",locationName:"sdk_type"},parameters:{shape:"Sk",location:"querystring"}}},output:{type:"structure",members:{contentType:{location:"header",locationName:"Content-Type"},contentDisposition:{location:"header",locationName:"Content-Disposition"},body:{type:"blob"}},payload:"body"}},GetSdkType:{http:{method:"GET",requestUri:"/sdktypes/{sdktype_id}"},input:{type:"structure",required:["id"],members:{id:{location:"uri",locationName:"sdktype_id"}}},output:{shape:"S4w"}},GetSdkTypes:{http:{method:"GET",requestUri:"/sdktypes"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S4w"}}}}},GetStage:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages/{stage_name}"},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}},output:{shape:"S1r"}},GetStages:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},deploymentId:{location:"querystring",locationName:"deploymentId"}}},output:{type:"structure",members:{item:{type:"list",member:{shape:"S1r"}}}}},
@@ -47,7 +47,7 @@ members:{ResourceARN:{}}}},AddUploadBuffer:{input:{type:"structure",required:["G
47
47
  RuleGroupId:{}}},output:{type:"structure",members:{RuleGroup:{shape:"S1i"}}}},GetSampledRequests:{input:{type:"structure",required:["WebAclId","RuleId","TimeWindow","MaxItems"],members:{WebAclId:{},RuleId:{},TimeWindow:{shape:"S3w"},MaxItems:{type:"long"}}},output:{type:"structure",members:{SampledRequests:{type:"list",member:{type:"structure",required:["Request","Weight"],members:{Request:{type:"structure",members:{ClientIP:{},Country:{},URI:{},Method:{},HTTPVersion:{},Headers:{type:"list",member:{type:"structure",members:{Name:{},Value:{}}}}}},Weight:{type:"long"},Timestamp:{type:"timestamp"},Action:{},RuleWithinRuleGroup:{}}}},PopulationSize:{type:"long"},TimeWindow:{shape:"S3w"}}}},GetSizeConstraintSet:{input:{type:"structure",required:["SizeConstraintSetId"],members:{SizeConstraintSetId:{}}},output:{type:"structure",members:{SizeConstraintSet:{shape:"S1l"}}}},GetSqlInjectionMatchSet:{input:{type:"structure",required:["SqlInjectionMatchSetId"],members:{SqlInjectionMatchSetId:{}}},output:{type:"structure",members:{SqlInjectionMatchSet:{shape:"S1s"}}}},GetWebACL:{input:{type:"structure",required:["WebACLId"],members:{WebACLId:{}}},output:{type:"structure",members:{WebACL:{shape:"S1z"}}}},GetXssMatchSet:{input:{type:"structure",required:["XssMatchSetId"],members:{XssMatchSetId:{}}},output:{type:"structure",members:{XssMatchSet:{shape:"S28"}}}},ListActivatedRulesInRuleGroup:{input:{type:"structure",members:{RuleGroupId:{},NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},ActivatedRules:{shape:"S20"}}}},ListByteMatchSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},ByteMatchSets:{type:"list",member:{type:"structure",required:["ByteMatchSetId","Name"],members:{ByteMatchSetId:{},Name:{}}}}}}},ListGeoMatchSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},GeoMatchSets:{type:"list",member:{type:"structure",required:["GeoMatchSetId","Name"],members:{GeoMatchSetId:{},Name:{}}}}}}},ListIPSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},IPSets:{type:"list",member:{type:"structure",required:["IPSetId","Name"],members:{IPSetId:{},Name:{}}}}}}},ListRateBasedRules:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Rules:{shape:"S54"}}}},ListRegexMatchSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},RegexMatchSets:{type:"list",member:{type:"structure",required:["RegexMatchSetId","Name"],members:{RegexMatchSetId:{},Name:{}}}}}}},ListRegexPatternSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},RegexPatternSets:{type:"list",member:{type:"structure",required:["RegexPatternSetId","Name"],members:{RegexPatternSetId:{},Name:{}}}}}}},ListRuleGroups:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},RuleGroups:{type:"list",member:{type:"structure",required:["RuleGroupId","Name"],members:{RuleGroupId:{},Name:{}}}}}}},ListRules:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Rules:{shape:"S54"}}}},ListSizeConstraintSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},SizeConstraintSets:{type:"list",member:{type:"structure",required:["SizeConstraintSetId","Name"],members:{SizeConstraintSetId:{},Name:{}}}}}}},ListSqlInjectionMatchSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},SqlInjectionMatchSets:{type:"list",member:{type:"structure",required:["SqlInjectionMatchSetId","Name"],members:{SqlInjectionMatchSetId:{},Name:{}}}}}}},ListSubscribedRuleGroups:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},RuleGroups:{type:"list",member:{type:"structure",required:["RuleGroupId","Name","MetricName"],members:{RuleGroupId:{},Name:{},MetricName:{}}}}}}},ListWebACLs:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},WebACLs:{type:"list",member:{type:"structure",required:["WebACLId","Name"],members:{WebACLId:{},Name:{}}}}}}},ListXssMatchSets:{input:{type:"structure",members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},XssMatchSets:{type:"list",member:{type:"structure",required:["XssMatchSetId","Name"],members:{XssMatchSetId:{},Name:{}}}}}}},PutPermissionPolicy:{input:{type:"structure",required:["ResourceArn","Policy"],members:{ResourceArn:{},Policy:{}}},output:{type:"structure",members:{}}},UpdateByteMatchSet:{input:{type:"structure",required:["ByteMatchSetId","ChangeToken","Updates"],members:{ByteMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","ByteMatchTuple"],members:{Action:{},ByteMatchTuple:{shape:"S8"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateGeoMatchSet:{input:{type:"structure",required:["GeoMatchSetId","ChangeToken","Updates"],members:{GeoMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","GeoMatchConstraint"],members:{Action:{},GeoMatchConstraint:{shape:"Sj"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateIPSet:{input:{type:"structure",required:["IPSetId","ChangeToken","Updates"],members:{IPSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","IPSetDescriptor"],members:{Action:{},IPSetDescriptor:{shape:"Sq"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateRateBasedRule:{input:{type:"structure",required:["RuleId","ChangeToken","Updates","RateLimit"],members:{RuleId:{},ChangeToken:{},Updates:{shape:"S6k"},RateLimit:{type:"long"}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateRegexMatchSet:{input:{type:"structure",required:["RegexMatchSetId","Updates","ChangeToken"],members:{RegexMatchSetId:{},Updates:{type:"list",member:{type:"structure",required:["Action","RegexMatchTuple"],members:{Action:{},RegexMatchTuple:{shape:"S17"}}}},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateRegexPatternSet:{input:{type:"structure",required:["RegexPatternSetId","Updates","ChangeToken"],members:{RegexPatternSetId:{},Updates:{type:"list",member:{type:"structure",required:["Action","RegexPatternString"],members:{Action:{},RegexPatternString:{}}}},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateRule:{input:{type:"structure",required:["RuleId","ChangeToken","Updates"],members:{RuleId:{},ChangeToken:{},Updates:{shape:"S6k"}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateRuleGroup:{input:{type:"structure",required:["RuleGroupId","Updates","ChangeToken"],members:{RuleGroupId:{},Updates:{type:"list",member:{type:"structure",required:["Action","ActivatedRule"],members:{Action:{},ActivatedRule:{shape:"S21"}}}},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateSizeConstraintSet:{input:{type:"structure",required:["SizeConstraintSetId","ChangeToken","Updates"],members:{SizeConstraintSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","SizeConstraint"],members:{Action:{},SizeConstraint:{shape:"S1n"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateSqlInjectionMatchSet:{input:{type:"structure",required:["SqlInjectionMatchSetId","ChangeToken","Updates"],members:{SqlInjectionMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","SqlInjectionMatchTuple"],members:{Action:{},SqlInjectionMatchTuple:{shape:"S1u"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateWebACL:{input:{type:"structure",required:["WebACLId","ChangeToken"],members:{WebACLId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","ActivatedRule"],members:{Action:{},ActivatedRule:{shape:"S21"}}}},DefaultAction:{shape:"S1w"}}},output:{type:"structure",members:{ChangeToken:{}}}},UpdateXssMatchSet:{input:{type:"structure",required:["XssMatchSetId","ChangeToken","Updates"],members:{XssMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","XssMatchTuple"],members:{Action:{},XssMatchTuple:{shape:"S2a"}}}}}},output:{type:"structure",members:{ChangeToken:{}}}}},shapes:{S5:{type:"structure",required:["ByteMatchSetId","ByteMatchTuples"],members:{ByteMatchSetId:{},Name:{},ByteMatchTuples:{type:"list",member:{shape:"S8"}}}},S8:{type:"structure",required:["FieldToMatch","TargetString","TextTransformation","PositionalConstraint"],members:{FieldToMatch:{shape:"S9"},TargetString:{type:"blob"},TextTransformation:{},PositionalConstraint:{}}},S9:{type:"structure",required:["Type"],members:{Type:{},Data:{}}},Sh:{type:"structure",required:["GeoMatchSetId","GeoMatchConstraints"],members:{GeoMatchSetId:{},Name:{},GeoMatchConstraints:{type:"list",member:{shape:"Sj"}}}},Sj:{type:"structure",required:["Type","Value"],members:{Type:{},Value:{}}},So:{type:"structure",required:["IPSetId","IPSetDescriptors"],members:{IPSetId:{},Name:{},IPSetDescriptors:{type:"list",member:{shape:"Sq"}}}},Sq:{type:"structure",required:["Type","Value"],members:{Type:{},Value:{}}},Sy:{type:"structure",required:["RuleId","MatchPredicates","RateKey","RateLimit"],members:{RuleId:{},Name:{},MetricName:{},MatchPredicates:{shape:"Sz"},RateKey:{},RateLimit:{type:"long"}}},Sz:{type:"list",member:{shape:"S10"}},S10:{type:"structure",required:["Negated","Type","DataId"],members:{Negated:{type:"boolean"},Type:{},DataId:{}}},S15:{type:"structure",members:{RegexMatchSetId:{},Name:{},RegexMatchTuples:{type:"list",member:{shape:"S17"}}}},S17:{type:"structure",required:["FieldToMatch","TextTransformation","RegexPatternSetId"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{},RegexPatternSetId:{}}},S1a:{type:"structure",required:["RegexPatternSetId","RegexPatternStrings"],members:{RegexPatternSetId:{},Name:{},RegexPatternStrings:{type:"list",member:{}}}},S1f:{type:"structure",required:["RuleId","Predicates"],members:{RuleId:{},Name:{},MetricName:{},Predicates:{shape:"Sz"}}},S1i:{type:"structure",required:["RuleGroupId"],members:{RuleGroupId:{},Name:{},MetricName:{}}},S1l:{type:"structure",required:["SizeConstraintSetId","SizeConstraints"],members:{SizeConstraintSetId:{},Name:{},SizeConstraints:{type:"list",member:{shape:"S1n"}}}},S1n:{type:"structure",required:["FieldToMatch","TextTransformation","ComparisonOperator","Size"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{},ComparisonOperator:{},Size:{type:"long"}}},S1s:{type:"structure",required:["SqlInjectionMatchSetId","SqlInjectionMatchTuples"],members:{SqlInjectionMatchSetId:{},Name:{},SqlInjectionMatchTuples:{type:"list",member:{shape:"S1u"}}}},S1u:{type:"structure",required:["FieldToMatch","TextTransformation"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{}}},S1w:{type:"structure",required:["Type"],members:{Type:{}}},S1z:{type:"structure",required:["WebACLId","DefaultAction","Rules"],members:{WebACLId:{},Name:{},MetricName:{},DefaultAction:{shape:"S1w"},Rules:{shape:"S20"}}},S20:{type:"list",member:{shape:"S21"}},S21:{type:"structure",required:["Priority","RuleId"],members:{Priority:{type:"integer"},RuleId:{},Action:{shape:"S1w"},OverrideAction:{type:"structure",required:["Type"],members:{Type:{}}},Type:{}}},S28:{type:"structure",required:["XssMatchSetId","XssMatchTuples"],members:{XssMatchSetId:{},Name:{},XssMatchTuples:{type:"list",member:{shape:"S2a"}}}},S2a:{type:"structure",required:["FieldToMatch","TextTransformation"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{}}},S3w:{type:"structure",required:["StartTime","EndTime"],members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"}}},S54:{type:"list",member:{type:"structure",required:["RuleId","Name"],members:{RuleId:{},Name:{}}}},S6k:{type:"list",member:{type:"structure",required:["Action","Predicate"],members:{Action:{},Predicate:{shape:"S10"}}}}}}},{}],175:[function(e,t,r){arguments[4][23][0].apply(r,arguments)},{dup:23}],176:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2016-05-01",endpointPrefix:"workdocs",jsonVersion:"1.1",protocol:"rest-json",serviceFullName:"Amazon WorkDocs",serviceId:"WorkDocs",signatureVersion:"v4",uid:"workdocs-2016-05-01"},operations:{AbortDocumentVersionUpload:{http:{method:"DELETE",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}",responseCode:204},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"}}}},ActivateUser:{http:{requestUri:"/api/v1/users/{UserId}/activation",responseCode:200},input:{type:"structure",required:["UserId"],members:{UserId:{location:"uri",locationName:"UserId"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}},output:{type:"structure",members:{User:{shape:"S8"}}}},AddResourcePermissions:{http:{requestUri:"/api/v1/resources/{ResourceId}/permissions",responseCode:201},input:{type:"structure",required:["ResourceId","Principals"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},Principals:{type:"list",member:{type:"structure",required:["Id","Type","Role"],members:{Id:{},Type:{},Role:{}}}},NotificationOptions:{type:"structure",members:{SendEmail:{type:"boolean"},EmailMessage:{shape:"St"}}}}},output:{type:"structure",members:{ShareResults:{type:"list",member:{type:"structure",members:{PrincipalId:{},Role:{},Status:{},ShareId:{},StatusMessage:{shape:"St"}}}}}}},CreateComment:{http:{requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}/comment",responseCode:201},input:{type:"structure",required:["DocumentId","VersionId","Text"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},ParentId:{},ThreadId:{},Text:{shape:"S10"},Visibility:{},NotifyCollaborators:{type:"boolean"}}},output:{type:"structure",members:{Comment:{shape:"S13"}}}},CreateCustomMetadata:{http:{method:"PUT",requestUri:"/api/v1/resources/{ResourceId}/customMetadata",responseCode:200},input:{type:"structure",required:["ResourceId","CustomMetadata"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},VersionId:{location:"querystring",locationName:"versionid"},CustomMetadata:{shape:"S16"}}},output:{type:"structure",members:{}}},CreateFolder:{http:{requestUri:"/api/v1/folders",responseCode:201},input:{type:"structure",required:["ParentFolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Name:{},ParentFolderId:{}}},output:{type:"structure",members:{Metadata:{shape:"S1d"}}}},CreateLabels:{http:{method:"PUT",requestUri:"/api/v1/resources/{ResourceId}/labels",responseCode:200},input:{type:"structure",required:["ResourceId","Labels"],members:{ResourceId:{location:"uri",locationName:"ResourceId"},Labels:{shape:"S1g"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}},output:{type:"structure",members:{}}},CreateNotificationSubscription:{http:{requestUri:"/api/v1/organizations/{OrganizationId}/subscriptions",responseCode:200},input:{type:"structure",required:["OrganizationId","Endpoint","Protocol","SubscriptionType"],members:{OrganizationId:{location:"uri",locationName:"OrganizationId"},Endpoint:{},Protocol:{},SubscriptionType:{}}},output:{type:"structure",members:{Subscription:{shape:"S1p"}}}},CreateUser:{http:{requestUri:"/api/v1/users",responseCode:201},input:{type:"structure",required:["Username","GivenName","Surname","Password"],members:{OrganizationId:{},Username:{},EmailAddress:{},GivenName:{},Surname:{},Password:{type:"string",sensitive:!0},TimeZoneId:{},StorageRule:{shape:"Sj"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}},output:{type:"structure",members:{User:{shape:"S8"}}}},DeactivateUser:{http:{method:"DELETE",requestUri:"/api/v1/users/{UserId}/activation",responseCode:204},input:{type:"structure",required:["UserId"],members:{UserId:{location:"uri",locationName:"UserId"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}}},DeleteComment:{http:{method:"DELETE",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}",responseCode:204},input:{type:"structure",required:["DocumentId","VersionId","CommentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},CommentId:{location:"uri",locationName:"CommentId"}}}},DeleteCustomMetadata:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/customMetadata",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},VersionId:{location:"querystring",locationName:"versionId"},Keys:{location:"querystring",locationName:"keys",type:"list",member:{}},DeleteAll:{location:"querystring",locationName:"deleteAll",type:"boolean"}}},output:{type:"structure",members:{}}},DeleteDocument:{http:{method:"DELETE",requestUri:"/api/v1/documents/{DocumentId}",responseCode:204},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"}}}},DeleteFolder:{http:{method:"DELETE",requestUri:"/api/v1/folders/{FolderId}",responseCode:204},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"}}}},DeleteFolderContents:{http:{method:"DELETE",requestUri:"/api/v1/folders/{FolderId}/contents",responseCode:204},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"}}}},DeleteLabels:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/labels",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{ResourceId:{location:"uri",locationName:"ResourceId"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Labels:{shape:"S1g",location:"querystring",locationName:"labels"},DeleteAll:{location:"querystring",locationName:"deleteAll",type:"boolean"}}},output:{type:"structure",members:{}}},DeleteNotificationSubscription:{http:{method:"DELETE",requestUri:"/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}",responseCode:200},input:{type:"structure",required:["SubscriptionId","OrganizationId"],members:{SubscriptionId:{location:"uri",locationName:"SubscriptionId"},OrganizationId:{location:"uri",locationName:"OrganizationId"}}}},DeleteUser:{http:{method:"DELETE",requestUri:"/api/v1/users/{UserId}",responseCode:204},input:{type:"structure",required:["UserId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},UserId:{location:"uri",locationName:"UserId"}}}},DescribeActivities:{http:{method:"GET",requestUri:"/api/v1/activities",responseCode:200},input:{type:"structure",members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},StartTime:{location:"querystring",locationName:"startTime",type:"timestamp"},EndTime:{location:"querystring",locationName:"endTime",type:"timestamp"},OrganizationId:{location:"querystring",locationName:"organizationId"},UserId:{location:"querystring",locationName:"userId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{UserActivities:{type:"list",member:{type:"structure",members:{Type:{},TimeStamp:{type:"timestamp"},OrganizationId:{},Initiator:{shape:"S2c"},Participants:{type:"structure",members:{Users:{type:"list",member:{shape:"S2c"}},Groups:{shape:"S2f"}}},ResourceMetadata:{shape:"S2i"},OriginalParent:{shape:"S2i"},CommentMetadata:{type:"structure",members:{CommentId:{},Contributor:{shape:"S8"},CreatedTimestamp:{type:"timestamp"},CommentStatus:{},RecipientId:{}}}}}},Marker:{}}}},DescribeComments:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}/comments",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Comments:{type:"list",member:{shape:"S13"}},Marker:{}}}},DescribeDocumentVersions:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Include:{location:"querystring",locationName:"include"},Fields:{location:"querystring",locationName:"fields"}}},output:{type:"structure",members:{DocumentVersions:{type:"list",member:{shape:"S2t"}},Marker:{}}}},DescribeFolderContents:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}/contents",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Sort:{location:"querystring",locationName:"sort"},Order:{location:"querystring",locationName:"order"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"},Type:{location:"querystring",locationName:"type"},Include:{location:"querystring",locationName:"include"}}},output:{type:"structure",members:{Folders:{shape:"S36"},Documents:{type:"list",member:{shape:"S38"}},Marker:{}}}},DescribeGroups:{http:{method:"GET",requestUri:"/api/v1/groups",responseCode:200},input:{type:"structure",required:["SearchQuery"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},SearchQuery:{shape:"S3a",location:"querystring",locationName:"searchQuery"},OrganizationId:{location:"querystring",locationName:"organizationId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{Groups:{shape:"S2f"},Marker:{}}}},DescribeNotificationSubscriptions:{http:{method:"GET",requestUri:"/api/v1/organizations/{OrganizationId}/subscriptions",responseCode:200},input:{type:"structure",required:["OrganizationId"],members:{OrganizationId:{location:"uri",locationName:"OrganizationId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{Subscriptions:{type:"list",member:{shape:"S1p"}},Marker:{}}}},DescribeResourcePermissions:{http:{method:"GET",requestUri:"/api/v1/resources/{ResourceId}/permissions",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},PrincipalId:{location:"querystring",locationName:"principalId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Principals:{type:"list",member:{type:"structure",members:{Id:{},Type:{},Roles:{type:"list",member:{type:"structure",members:{Role:{},Type:{}}}}}}},Marker:{}}}},DescribeRootFolders:{http:{method:"GET",requestUri:"/api/v1/me/root",responseCode:200},input:{type:"structure",required:["AuthenticationToken"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Folders:{shape:"S36"},Marker:{}}}},DescribeUsers:{http:{method:"GET",requestUri:"/api/v1/users",responseCode:200},input:{type:"structure",members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},OrganizationId:{location:"querystring",locationName:"organizationId"},UserIds:{location:"querystring",locationName:"userIds"},Query:{shape:"S3a",location:"querystring",locationName:"query"},Include:{location:"querystring",locationName:"include"},Order:{location:"querystring",locationName:"order"},Sort:{location:"querystring",locationName:"sort"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"}}},output:{type:"structure",members:{Users:{type:"list",member:{shape:"S8"}},TotalNumberOfUsers:{deprecated:!0,type:"long"},Marker:{}}}},GetCurrentUser:{http:{method:"GET",requestUri:"/api/v1/me",responseCode:200},input:{type:"structure",required:["AuthenticationToken"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}},output:{type:"structure",members:{User:{shape:"S8"}}}},GetDocument:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S38"},CustomMetadata:{shape:"S16"}}}},GetDocumentPath:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/path",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Path:{shape:"S41"}}}},GetDocumentVersion:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},Fields:{location:"querystring",locationName:"fields"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S2t"},CustomMetadata:{shape:"S16"}}}},GetFolder:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S1d"},CustomMetadata:{shape:"S16"}}}},GetFolderPath:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}/path",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Path:{shape:"S41"}}}},InitiateDocumentVersionUpload:{http:{requestUri:"/api/v1/documents",responseCode:201},input:{type:"structure",required:["ParentFolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Id:{},Name:{},ContentCreatedTimestamp:{type:"timestamp"},ContentModifiedTimestamp:{type:"timestamp"},ContentType:{},DocumentSizeInBytes:{type:"long"},ParentFolderId:{}}},output:{type:"structure",members:{Metadata:{shape:"S38"},UploadMetadata:{type:"structure",members:{UploadUrl:{shape:"S2y"},SignedHeaders:{type:"map",key:{},value:{}}}}}}},RemoveAllResourcePermissions:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/permissions",responseCode:204},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"}}}},RemoveResourcePermission:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}",responseCode:204},input:{type:"structure",required:["ResourceId","PrincipalId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},PrincipalId:{location:"uri",locationName:"PrincipalId"},PrincipalType:{location:"querystring",locationName:"type"}}}},UpdateDocument:{http:{method:"PATCH",requestUri:"/api/v1/documents/{DocumentId}",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Name:{},ParentFolderId:{},ResourceState:{}}}},UpdateDocumentVersion:{http:{method:"PATCH",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},VersionStatus:{}}}},UpdateFolder:{http:{method:"PATCH",requestUri:"/api/v1/folders/{FolderId}",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Name:{},ParentFolderId:{},ResourceState:{}}}},UpdateUser:{http:{method:"PATCH",requestUri:"/api/v1/users/{UserId}",responseCode:200},input:{type:"structure",required:["UserId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},UserId:{location:"uri",locationName:"UserId"},GivenName:{},Surname:{},Type:{},StorageRule:{shape:"Sj"},TimeZoneId:{},Locale:{},GrantPoweruserPrivileges:{}}},output:{type:"structure",members:{User:{shape:"S8"}}}}},shapes:{S2:{type:"string",sensitive:!0},S8:{type:"structure",members:{Id:{},Username:{},EmailAddress:{},GivenName:{},Surname:{},OrganizationId:{},RootFolderId:{},RecycleBinFolderId:{},Status:{},Type:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},
48
48
  TimeZoneId:{},Locale:{},Storage:{type:"structure",members:{StorageUtilizedInBytes:{type:"long"},StorageRule:{shape:"Sj"}}}}},Sj:{type:"structure",members:{StorageAllocatedInBytes:{type:"long"},StorageType:{}}},St:{type:"string",sensitive:!0},S10:{type:"string",sensitive:!0},S13:{type:"structure",required:["CommentId"],members:{CommentId:{},ParentId:{},ThreadId:{},Text:{shape:"S10"},Contributor:{shape:"S8"},CreatedTimestamp:{type:"timestamp"},Status:{},Visibility:{},RecipientId:{}}},S16:{type:"map",key:{},value:{}},S1d:{type:"structure",members:{Id:{},Name:{},CreatorId:{},ParentFolderId:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},ResourceState:{},Signature:{},Labels:{shape:"S1g"},Size:{type:"long"},LatestVersionSize:{type:"long"}}},S1g:{type:"list",member:{}},S1p:{type:"structure",members:{SubscriptionId:{},EndPoint:{},Protocol:{}}},S2c:{type:"structure",members:{Id:{},Username:{},GivenName:{},Surname:{},EmailAddress:{}}},S2f:{type:"list",member:{type:"structure",members:{Id:{},Name:{}}}},S2i:{type:"structure",members:{Type:{},Name:{},OriginalName:{},Id:{},VersionId:{},Owner:{shape:"S2c"},ParentId:{}}},S2t:{type:"structure",members:{Id:{},Name:{},ContentType:{},Size:{type:"long"},Signature:{},Status:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},ContentCreatedTimestamp:{type:"timestamp"},ContentModifiedTimestamp:{type:"timestamp"},CreatorId:{},Thumbnail:{type:"map",key:{},value:{shape:"S2y"}},Source:{type:"map",key:{},value:{shape:"S2y"}}}},S2y:{type:"string",sensitive:!0},S36:{type:"list",member:{shape:"S1d"}},S38:{type:"structure",members:{Id:{},CreatorId:{},ParentFolderId:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},LatestVersionMetadata:{shape:"S2t"},ResourceState:{},Labels:{shape:"S1g"}}},S3a:{type:"string",sensitive:!0},S41:{type:"structure",members:{Components:{type:"list",member:{type:"structure",members:{Id:{},Name:{}}}}}}}}},{}],177:[function(e,t,r){t.exports={pagination:{DescribeDocumentVersions:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:"DocumentVersions"},DescribeFolderContents:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:["Folders","Documents"]},DescribeUsers:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:"Users"}}}},{}],178:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.acm={},a.ACM=i.defineService("acm",["2015-12-08"]),Object.defineProperty(s.services.acm,"2015-12-08",{get:function(){var t=e("../apis/acm-2015-12-08.min.json");return t.paginators=e("../apis/acm-2015-12-08.paginators.json").pagination,t.waiters=e("../apis/acm-2015-12-08.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ACM},{"../apis/acm-2015-12-08.min.json":1,"../apis/acm-2015-12-08.paginators.json":2,"../apis/acm-2015-12-08.waiters2.json":3,"../lib/core":258,"../lib/node_loader":255}],179:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.apigateway={},a.APIGateway=i.defineService("apigateway",["2015-07-09"]),e("../lib/services/apigateway"),Object.defineProperty(s.services.apigateway,"2015-07-09",{get:function(){var t=e("../apis/apigateway-2015-07-09.min.json");return t.paginators=e("../apis/apigateway-2015-07-09.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.APIGateway},{"../apis/apigateway-2015-07-09.min.json":4,"../apis/apigateway-2015-07-09.paginators.json":5,"../lib/core":258,"../lib/node_loader":255,"../lib/services/apigateway":306}],180:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.applicationautoscaling={},a.ApplicationAutoScaling=i.defineService("applicationautoscaling",["2016-02-06"]),Object.defineProperty(s.services.applicationautoscaling,"2016-02-06",{get:function(){var t=e("../apis/application-autoscaling-2016-02-06.min.json");return t.paginators=e("../apis/application-autoscaling-2016-02-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.ApplicationAutoScaling},{"../apis/application-autoscaling-2016-02-06.min.json":6,"../apis/application-autoscaling-2016-02-06.paginators.json":7,"../lib/core":258,"../lib/node_loader":255}],181:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.autoscaling={},a.AutoScaling=i.defineService("autoscaling",["2011-01-01"]),Object.defineProperty(s.services.autoscaling,"2011-01-01",{get:function(){var t=e("../apis/autoscaling-2011-01-01.min.json");return t.paginators=e("../apis/autoscaling-2011-01-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.AutoScaling},{"../apis/autoscaling-2011-01-01.min.json":8,"../apis/autoscaling-2011-01-01.paginators.json":9,"../lib/core":258,"../lib/node_loader":255}],182:[function(e,t,r){e("../lib/node_loader"),t.exports={ACM:e("./acm"),APIGateway:e("./apigateway"),ApplicationAutoScaling:e("./applicationautoscaling"),AutoScaling:e("./autoscaling"),CloudFormation:e("./cloudformation"),CloudFront:e("./cloudfront"),CloudHSM:e("./cloudhsm"),CloudTrail:e("./cloudtrail"),CloudWatch:e("./cloudwatch"),CloudWatchEvents:e("./cloudwatchevents"),CloudWatchLogs:e("./cloudwatchlogs"),CodeBuild:e("./codebuild"),CodeCommit:e("./codecommit"),CodeDeploy:e("./codedeploy"),CodePipeline:e("./codepipeline"),CognitoIdentity:e("./cognitoidentity"),CognitoIdentityServiceProvider:e("./cognitoidentityserviceprovider"),CognitoSync:e("./cognitosync"),ConfigService:e("./configservice"),CUR:e("./cur"),DeviceFarm:e("./devicefarm"),DirectConnect:e("./directconnect"),DynamoDB:e("./dynamodb"),DynamoDBStreams:e("./dynamodbstreams"),EC2:e("./ec2"),ECR:e("./ecr"),ECS:e("./ecs"),EFS:e("./efs"),ElastiCache:e("./elasticache"),ElasticBeanstalk:e("./elasticbeanstalk"),ELB:e("./elb"),ELBv2:e("./elbv2"),EMR:e("./emr"),ElasticTranscoder:e("./elastictranscoder"),Firehose:e("./firehose"),GameLift:e("./gamelift"),Inspector:e("./inspector"),Iot:e("./iot"),IotData:e("./iotdata"),Kinesis:e("./kinesis"),KMS:e("./kms"),Lambda:e("./lambda"),LexRuntime:e("./lexruntime"),MachineLearning:e("./machinelearning"),MarketplaceCommerceAnalytics:e("./marketplacecommerceanalytics"),MTurk:e("./mturk"),MobileAnalytics:e("./mobileanalytics"),OpsWorks:e("./opsworks"),Polly:e("./polly"),RDS:e("./rds"),Redshift:e("./redshift"),Rekognition:e("./rekognition"),Route53:e("./route53"),Route53Domains:e("./route53domains"),S3:e("./s3"),ServiceCatalog:e("./servicecatalog"),SES:e("./ses"),SNS:e("./sns"),SQS:e("./sqs"),SSM:e("./ssm"),StorageGateway:e("./storagegateway"),STS:e("./sts"),WAF:e("./waf"),WorkDocs:e("./workdocs"),LexModelBuildingService:e("./lexmodelbuildingservice"),KinesisVideoArchivedMedia:e("./kinesisvideoarchivedmedia"),KinesisVideo:e("./kinesisvideo"),Translate:e("./translate"),SecretsManager:e("./secretsmanager")}},{"../lib/node_loader":255,"./acm":178,"./apigateway":179,"./applicationautoscaling":180,"./autoscaling":181,"./cloudformation":183,"./cloudfront":184,"./cloudhsm":185,"./cloudtrail":186,"./cloudwatch":187,"./cloudwatchevents":188,"./cloudwatchlogs":189,"./codebuild":190,"./codecommit":191,"./codedeploy":192,"./codepipeline":193,"./cognitoidentity":194,"./cognitoidentityserviceprovider":195,"./cognitosync":196,"./configservice":197,"./cur":198,"./devicefarm":199,"./directconnect":200,"./dynamodb":201,"./dynamodbstreams":202,"./ec2":203,"./ecr":204,"./ecs":205,"./efs":206,"./elasticache":207,"./elasticbeanstalk":208,"./elastictranscoder":209,"./elb":210,"./elbv2":211,"./emr":212,"./firehose":213,"./gamelift":214,"./inspector":215,"./iot":216,"./iotdata":217,"./kinesis":218,"./kinesisvideo":219,"./kinesisvideoarchivedmedia":220,"./kms":221,"./lambda":222,"./lexmodelbuildingservice":223,"./lexruntime":224,"./machinelearning":225,"./marketplacecommerceanalytics":226,"./mobileanalytics":227,"./mturk":228,"./opsworks":229,"./polly":230,"./rds":231,"./redshift":232,"./rekognition":233,"./route53":234,"./route53domains":235,"./s3":236,"./secretsmanager":237,"./servicecatalog":238,"./ses":239,"./sns":240,"./sqs":241,"./ssm":242,"./storagegateway":243,"./sts":244,"./translate":245,"./waf":246,"./workdocs":247}],183:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudformation={},a.CloudFormation=i.defineService("cloudformation",["2010-05-15"]),Object.defineProperty(s.services.cloudformation,"2010-05-15",{get:function(){var t=e("../apis/cloudformation-2010-05-15.min.json");return t.paginators=e("../apis/cloudformation-2010-05-15.paginators.json").pagination,t.waiters=e("../apis/cloudformation-2010-05-15.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.CloudFormation},{"../apis/cloudformation-2010-05-15.min.json":10,"../apis/cloudformation-2010-05-15.paginators.json":11,"../apis/cloudformation-2010-05-15.waiters2.json":12,"../lib/core":258,"../lib/node_loader":255}],184:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudfront={},a.CloudFront=i.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30"]),e("../lib/services/cloudfront"),Object.defineProperty(s.services.cloudfront,"2016-11-25",{get:function(){var t=e("../apis/cloudfront-2016-11-25.min.json");return t.paginators=e("../apis/cloudfront-2016-11-25.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2016-11-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2017-03-25",{get:function(){var t=e("../apis/cloudfront-2017-03-25.min.json");return t.paginators=e("../apis/cloudfront-2017-03-25.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2017-03-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2017-10-30",{get:function(){var t=e("../apis/cloudfront-2017-10-30.min.json");return t.paginators=e("../apis/cloudfront-2017-10-30.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2017-10-30.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.CloudFront},{"../apis/cloudfront-2016-11-25.min.json":13,"../apis/cloudfront-2016-11-25.paginators.json":14,"../apis/cloudfront-2016-11-25.waiters2.json":15,"../apis/cloudfront-2017-03-25.min.json":16,"../apis/cloudfront-2017-03-25.paginators.json":17,"../apis/cloudfront-2017-03-25.waiters2.json":18,"../apis/cloudfront-2017-10-30.min.json":19,"../apis/cloudfront-2017-10-30.paginators.json":20,"../apis/cloudfront-2017-10-30.waiters2.json":21,"../lib/core":258,"../lib/node_loader":255,"../lib/services/cloudfront":307}],185:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudhsm={},a.CloudHSM=i.defineService("cloudhsm",["2014-05-30"]),Object.defineProperty(s.services.cloudhsm,"2014-05-30",{get:function(){var t=e("../apis/cloudhsm-2014-05-30.min.json");return t.paginators=e("../apis/cloudhsm-2014-05-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CloudHSM},{"../apis/cloudhsm-2014-05-30.min.json":22,"../apis/cloudhsm-2014-05-30.paginators.json":23,"../lib/core":258,"../lib/node_loader":255}],186:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudtrail={},a.CloudTrail=i.defineService("cloudtrail",["2013-11-01"]),Object.defineProperty(s.services.cloudtrail,"2013-11-01",{get:function(){var t=e("../apis/cloudtrail-2013-11-01.min.json");return t.paginators=e("../apis/cloudtrail-2013-11-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CloudTrail},{"../apis/cloudtrail-2013-11-01.min.json":24,"../apis/cloudtrail-2013-11-01.paginators.json":25,"../lib/core":258,"../lib/node_loader":255}],187:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudwatch={},a.CloudWatch=i.defineService("cloudwatch",["2010-08-01"]),Object.defineProperty(s.services.cloudwatch,"2010-08-01",{get:function(){var t=e("../apis/monitoring-2010-08-01.min.json");return t.paginators=e("../apis/monitoring-2010-08-01.paginators.json").pagination,t.waiters=e("../apis/monitoring-2010-08-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.CloudWatch},{"../apis/monitoring-2010-08-01.min.json":119,"../apis/monitoring-2010-08-01.paginators.json":120,"../apis/monitoring-2010-08-01.waiters2.json":121,"../lib/core":258,"../lib/node_loader":255}],188:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudwatchevents={},a.CloudWatchEvents=i.defineService("cloudwatchevents",["2014-02-03*","2015-10-07"]),Object.defineProperty(s.services.cloudwatchevents,"2015-10-07",{get:function(){var t=e("../apis/events-2015-10-07.min.json");return t.paginators=e("../apis/events-2015-10-07.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CloudWatchEvents},{"../apis/events-2015-10-07.min.json":84,"../apis/events-2015-10-07.paginators.json":85,"../lib/core":258,"../lib/node_loader":255}],189:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cloudwatchlogs={},a.CloudWatchLogs=i.defineService("cloudwatchlogs",["2014-03-28"]),Object.defineProperty(s.services.cloudwatchlogs,"2014-03-28",{get:function(){var t=e("../apis/logs-2014-03-28.min.json");return t.paginators=e("../apis/logs-2014-03-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CloudWatchLogs},{"../apis/logs-2014-03-28.min.json":110,"../apis/logs-2014-03-28.paginators.json":111,"../lib/core":258,"../lib/node_loader":255}],190:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.codebuild={},a.CodeBuild=i.defineService("codebuild",["2016-10-06"]),Object.defineProperty(s.services.codebuild,"2016-10-06",{get:function(){var t=e("../apis/codebuild-2016-10-06.min.json");return t.paginators=e("../apis/codebuild-2016-10-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CodeBuild},{"../apis/codebuild-2016-10-06.min.json":26,"../apis/codebuild-2016-10-06.paginators.json":27,"../lib/core":258,"../lib/node_loader":255}],191:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.codecommit={},a.CodeCommit=i.defineService("codecommit",["2015-04-13"]),Object.defineProperty(s.services.codecommit,"2015-04-13",{get:function(){var t=e("../apis/codecommit-2015-04-13.min.json");return t.paginators=e("../apis/codecommit-2015-04-13.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CodeCommit},{"../apis/codecommit-2015-04-13.min.json":28,"../apis/codecommit-2015-04-13.paginators.json":29,"../lib/core":258,"../lib/node_loader":255}],192:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.codedeploy={},a.CodeDeploy=i.defineService("codedeploy",["2014-10-06"]),Object.defineProperty(s.services.codedeploy,"2014-10-06",{get:function(){var t=e("../apis/codedeploy-2014-10-06.min.json");return t.paginators=e("../apis/codedeploy-2014-10-06.paginators.json").pagination,t.waiters=e("../apis/codedeploy-2014-10-06.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.CodeDeploy},{"../apis/codedeploy-2014-10-06.min.json":30,"../apis/codedeploy-2014-10-06.paginators.json":31,"../apis/codedeploy-2014-10-06.waiters2.json":32,"../lib/core":258,"../lib/node_loader":255}],193:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.codepipeline={},a.CodePipeline=i.defineService("codepipeline",["2015-07-09"]),Object.defineProperty(s.services.codepipeline,"2015-07-09",{get:function(){var t=e("../apis/codepipeline-2015-07-09.min.json");return t.paginators=e("../apis/codepipeline-2015-07-09.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CodePipeline},{"../apis/codepipeline-2015-07-09.min.json":33,"../apis/codepipeline-2015-07-09.paginators.json":34,"../lib/core":258,"../lib/node_loader":255}],194:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cognitoidentity={},a.CognitoIdentity=i.defineService("cognitoidentity",["2014-06-30"]),e("../lib/services/cognitoidentity"),Object.defineProperty(s.services.cognitoidentity,"2014-06-30",{get:function(){var t=e("../apis/cognito-identity-2014-06-30.min.json");return t.paginators=e("../apis/cognito-identity-2014-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CognitoIdentity},{"../apis/cognito-identity-2014-06-30.min.json":35,"../apis/cognito-identity-2014-06-30.paginators.json":36,"../lib/core":258,"../lib/node_loader":255,"../lib/services/cognitoidentity":308}],195:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cognitoidentityserviceprovider={},a.CognitoIdentityServiceProvider=i.defineService("cognitoidentityserviceprovider",["2016-04-18"]),Object.defineProperty(s.services.cognitoidentityserviceprovider,"2016-04-18",{get:function(){var t=e("../apis/cognito-idp-2016-04-18.min.json");return t.paginators=e("../apis/cognito-idp-2016-04-18.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CognitoIdentityServiceProvider},{"../apis/cognito-idp-2016-04-18.min.json":37,"../apis/cognito-idp-2016-04-18.paginators.json":38,"../lib/core":258,"../lib/node_loader":255}],196:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cognitosync={},a.CognitoSync=i.defineService("cognitosync",["2014-06-30"]),Object.defineProperty(s.services.cognitosync,"2014-06-30",{get:function(){return e("../apis/cognito-sync-2014-06-30.min.json")},enumerable:!0,configurable:!0}),t.exports=a.CognitoSync},{"../apis/cognito-sync-2014-06-30.min.json":39,"../lib/core":258,"../lib/node_loader":255}],197:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.configservice={},a.ConfigService=i.defineService("configservice",["2014-11-12"]),Object.defineProperty(s.services.configservice,"2014-11-12",{get:function(){var t=e("../apis/config-2014-11-12.min.json");return t.paginators=e("../apis/config-2014-11-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.ConfigService},{"../apis/config-2014-11-12.min.json":40,"../apis/config-2014-11-12.paginators.json":41,"../lib/core":258,"../lib/node_loader":255}],198:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.cur={},a.CUR=i.defineService("cur",["2017-01-06"]),Object.defineProperty(s.services.cur,"2017-01-06",{get:function(){var t=e("../apis/cur-2017-01-06.min.json");return t.paginators=e("../apis/cur-2017-01-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.CUR},{"../apis/cur-2017-01-06.min.json":42,"../apis/cur-2017-01-06.paginators.json":43,"../lib/core":258,"../lib/node_loader":255}],199:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.devicefarm={},a.DeviceFarm=i.defineService("devicefarm",["2015-06-23"]),Object.defineProperty(s.services.devicefarm,"2015-06-23",{get:function(){var t=e("../apis/devicefarm-2015-06-23.min.json");return t.paginators=e("../apis/devicefarm-2015-06-23.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.DeviceFarm},{"../apis/devicefarm-2015-06-23.min.json":44,"../apis/devicefarm-2015-06-23.paginators.json":45,"../lib/core":258,"../lib/node_loader":255}],200:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.directconnect={},a.DirectConnect=i.defineService("directconnect",["2012-10-25"]),Object.defineProperty(s.services.directconnect,"2012-10-25",{get:function(){var t=e("../apis/directconnect-2012-10-25.min.json");return t.paginators=e("../apis/directconnect-2012-10-25.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.DirectConnect},{"../apis/directconnect-2012-10-25.min.json":46,"../apis/directconnect-2012-10-25.paginators.json":47,"../lib/core":258,"../lib/node_loader":255}],201:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.dynamodb={},a.DynamoDB=i.defineService("dynamodb",["2011-12-05","2012-08-10"]),e("../lib/services/dynamodb"),Object.defineProperty(s.services.dynamodb,"2011-12-05",{get:function(){var t=e("../apis/dynamodb-2011-12-05.min.json");return t.paginators=e("../apis/dynamodb-2011-12-05.paginators.json").pagination,t.waiters=e("../apis/dynamodb-2011-12-05.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.dynamodb,"2012-08-10",{get:function(){var t=e("../apis/dynamodb-2012-08-10.min.json");return t.paginators=e("../apis/dynamodb-2012-08-10.paginators.json").pagination,t.waiters=e("../apis/dynamodb-2012-08-10.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.DynamoDB},{"../apis/dynamodb-2011-12-05.min.json":48,"../apis/dynamodb-2011-12-05.paginators.json":49,"../apis/dynamodb-2011-12-05.waiters2.json":50,"../apis/dynamodb-2012-08-10.min.json":51,"../apis/dynamodb-2012-08-10.paginators.json":52,"../apis/dynamodb-2012-08-10.waiters2.json":53,"../lib/core":258,"../lib/node_loader":255,"../lib/services/dynamodb":309}],202:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.dynamodbstreams={},a.DynamoDBStreams=i.defineService("dynamodbstreams",["2012-08-10"]),Object.defineProperty(s.services.dynamodbstreams,"2012-08-10",{get:function(){var t=e("../apis/streams.dynamodb-2012-08-10.min.json");return t.paginators=e("../apis/streams.dynamodb-2012-08-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.DynamoDBStreams},{"../apis/streams.dynamodb-2012-08-10.min.json":168,"../apis/streams.dynamodb-2012-08-10.paginators.json":169,"../lib/core":258,"../lib/node_loader":255}],203:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ec2={},a.EC2=i.defineService("ec2",["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*","2016-11-15"]),e("../lib/services/ec2"),Object.defineProperty(s.services.ec2,"2016-11-15",{get:function(){var t=e("../apis/ec2-2016-11-15.min.json");return t.paginators=e("../apis/ec2-2016-11-15.paginators.json").pagination,t.waiters=e("../apis/ec2-2016-11-15.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.EC2},{"../apis/ec2-2016-11-15.min.json":54,"../apis/ec2-2016-11-15.paginators.json":55,"../apis/ec2-2016-11-15.waiters2.json":56,"../lib/core":258,"../lib/node_loader":255,"../lib/services/ec2":310}],204:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ecr={},a.ECR=i.defineService("ecr",["2015-09-21"]),Object.defineProperty(s.services.ecr,"2015-09-21",{get:function(){var t=e("../apis/ecr-2015-09-21.min.json");return t.paginators=e("../apis/ecr-2015-09-21.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.ECR},{"../apis/ecr-2015-09-21.min.json":57,"../apis/ecr-2015-09-21.paginators.json":58,"../lib/core":258,"../lib/node_loader":255}],205:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ecs={},a.ECS=i.defineService("ecs",["2014-11-13"]),Object.defineProperty(s.services.ecs,"2014-11-13",{get:function(){var t=e("../apis/ecs-2014-11-13.min.json");return t.paginators=e("../apis/ecs-2014-11-13.paginators.json").pagination,t.waiters=e("../apis/ecs-2014-11-13.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ECS},{"../apis/ecs-2014-11-13.min.json":59,"../apis/ecs-2014-11-13.paginators.json":60,"../apis/ecs-2014-11-13.waiters2.json":61,"../lib/core":258,"../lib/node_loader":255}],206:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.efs={},a.EFS=i.defineService("efs",["2015-02-01"]),Object.defineProperty(s.services.efs,"2015-02-01",{get:function(){var t=e("../apis/elasticfilesystem-2015-02-01.min.json");return t.paginators=e("../apis/elasticfilesystem-2015-02-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.EFS},{"../apis/elasticfilesystem-2015-02-01.min.json":67,"../apis/elasticfilesystem-2015-02-01.paginators.json":68,"../lib/core":258,"../lib/node_loader":255}],207:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.elasticache={},a.ElastiCache=i.defineService("elasticache",["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*","2015-02-02"]),Object.defineProperty(s.services.elasticache,"2015-02-02",{get:function(){var t=e("../apis/elasticache-2015-02-02.min.json");return t.paginators=e("../apis/elasticache-2015-02-02.paginators.json").pagination,t.waiters=e("../apis/elasticache-2015-02-02.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ElastiCache},{"../apis/elasticache-2015-02-02.min.json":62,"../apis/elasticache-2015-02-02.paginators.json":63,"../apis/elasticache-2015-02-02.waiters2.json":64,"../lib/core":258,"../lib/node_loader":255}],208:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.elasticbeanstalk={},a.ElasticBeanstalk=i.defineService("elasticbeanstalk",["2010-12-01"]),Object.defineProperty(s.services.elasticbeanstalk,"2010-12-01",{get:function(){var t=e("../apis/elasticbeanstalk-2010-12-01.min.json");return t.paginators=e("../apis/elasticbeanstalk-2010-12-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.ElasticBeanstalk},{"../apis/elasticbeanstalk-2010-12-01.min.json":65,"../apis/elasticbeanstalk-2010-12-01.paginators.json":66,"../lib/core":258,"../lib/node_loader":255}],209:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.elastictranscoder={},a.ElasticTranscoder=i.defineService("elastictranscoder",["2012-09-25"]),Object.defineProperty(s.services.elastictranscoder,"2012-09-25",{get:function(){var t=e("../apis/elastictranscoder-2012-09-25.min.json");return t.paginators=e("../apis/elastictranscoder-2012-09-25.paginators.json").pagination,t.waiters=e("../apis/elastictranscoder-2012-09-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ElasticTranscoder},{"../apis/elastictranscoder-2012-09-25.min.json":78,"../apis/elastictranscoder-2012-09-25.paginators.json":79,"../apis/elastictranscoder-2012-09-25.waiters2.json":80,"../lib/core":258,"../lib/node_loader":255}],210:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.elb={},a.ELB=i.defineService("elb",["2012-06-01"]),Object.defineProperty(s.services.elb,"2012-06-01",{get:function(){var t=e("../apis/elasticloadbalancing-2012-06-01.min.json");return t.paginators=e("../apis/elasticloadbalancing-2012-06-01.paginators.json").pagination,t.waiters=e("../apis/elasticloadbalancing-2012-06-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ELB},{"../apis/elasticloadbalancing-2012-06-01.min.json":69,"../apis/elasticloadbalancing-2012-06-01.paginators.json":70,"../apis/elasticloadbalancing-2012-06-01.waiters2.json":71,"../lib/core":258,"../lib/node_loader":255}],211:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.elbv2={},a.ELBv2=i.defineService("elbv2",["2015-12-01"]),Object.defineProperty(s.services.elbv2,"2015-12-01",{get:function(){var t=e("../apis/elasticloadbalancingv2-2015-12-01.min.json");return t.paginators=e("../apis/elasticloadbalancingv2-2015-12-01.paginators.json").pagination,t.waiters=e("../apis/elasticloadbalancingv2-2015-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.ELBv2},{"../apis/elasticloadbalancingv2-2015-12-01.min.json":72,"../apis/elasticloadbalancingv2-2015-12-01.paginators.json":73,"../apis/elasticloadbalancingv2-2015-12-01.waiters2.json":74,"../lib/core":258,"../lib/node_loader":255}],212:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.emr={},a.EMR=i.defineService("emr",["2009-03-31"]),Object.defineProperty(s.services.emr,"2009-03-31",{get:function(){var t=e("../apis/elasticmapreduce-2009-03-31.min.json");return t.paginators=e("../apis/elasticmapreduce-2009-03-31.paginators.json").pagination,t.waiters=e("../apis/elasticmapreduce-2009-03-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.EMR},{"../apis/elasticmapreduce-2009-03-31.min.json":75,"../apis/elasticmapreduce-2009-03-31.paginators.json":76,"../apis/elasticmapreduce-2009-03-31.waiters2.json":77,"../lib/core":258,"../lib/node_loader":255}],213:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.firehose={},a.Firehose=i.defineService("firehose",["2015-08-04"]),Object.defineProperty(s.services.firehose,"2015-08-04",{get:function(){var t=e("../apis/firehose-2015-08-04.min.json");return t.paginators=e("../apis/firehose-2015-08-04.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Firehose},{"../apis/firehose-2015-08-04.min.json":86,"../apis/firehose-2015-08-04.paginators.json":87,"../lib/core":258,"../lib/node_loader":255}],214:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.gamelift={},a.GameLift=i.defineService("gamelift",["2015-10-01"]),Object.defineProperty(s.services.gamelift,"2015-10-01",{get:function(){var t=e("../apis/gamelift-2015-10-01.min.json");return t.paginators=e("../apis/gamelift-2015-10-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.GameLift},{"../apis/gamelift-2015-10-01.min.json":88,"../apis/gamelift-2015-10-01.paginators.json":89,"../lib/core":258,"../lib/node_loader":255}],215:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.inspector={},a.Inspector=i.defineService("inspector",["2015-08-18*","2016-02-16"]),Object.defineProperty(s.services.inspector,"2016-02-16",{get:function(){var t=e("../apis/inspector-2016-02-16.min.json");return t.paginators=e("../apis/inspector-2016-02-16.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Inspector},{"../apis/inspector-2016-02-16.min.json":90,"../apis/inspector-2016-02-16.paginators.json":91,"../lib/core":258,"../lib/node_loader":255}],216:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.iot={},a.Iot=i.defineService("iot",["2015-05-28"]),Object.defineProperty(s.services.iot,"2015-05-28",{get:function(){var t=e("../apis/iot-2015-05-28.min.json");return t.paginators=e("../apis/iot-2015-05-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Iot},{"../apis/iot-2015-05-28.min.json":92,"../apis/iot-2015-05-28.paginators.json":93,"../lib/core":258,"../lib/node_loader":255}],217:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.iotdata={},a.IotData=i.defineService("iotdata",["2015-05-28"]),e("../lib/services/iotdata"),Object.defineProperty(s.services.iotdata,"2015-05-28",{get:function(){return e("../apis/iot-data-2015-05-28.min.json")},enumerable:!0,configurable:!0}),t.exports=a.IotData},{"../apis/iot-data-2015-05-28.min.json":94,"../lib/core":258,"../lib/node_loader":255,"../lib/services/iotdata":311}],218:[function(e,t,r){
49
49
  e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.kinesis={},a.Kinesis=i.defineService("kinesis",["2013-12-02"]),Object.defineProperty(s.services.kinesis,"2013-12-02",{get:function(){var t=e("../apis/kinesis-2013-12-02.min.json");return t.paginators=e("../apis/kinesis-2013-12-02.paginators.json").pagination,t.waiters=e("../apis/kinesis-2013-12-02.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.Kinesis},{"../apis/kinesis-2013-12-02.min.json":95,"../apis/kinesis-2013-12-02.paginators.json":96,"../apis/kinesis-2013-12-02.waiters2.json":97,"../lib/core":258,"../lib/node_loader":255}],219:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.kinesisvideo={},a.KinesisVideo=i.defineService("kinesisvideo",["2017-09-30"]),Object.defineProperty(s.services.kinesisvideo,"2017-09-30",{get:function(){var t=e("../apis/kinesisvideo-2017-09-30.min.json");return t.paginators=e("../apis/kinesisvideo-2017-09-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.KinesisVideo},{"../apis/kinesisvideo-2017-09-30.min.json":100,"../apis/kinesisvideo-2017-09-30.paginators.json":101,"../lib/core":258,"../lib/node_loader":255}],220:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.kinesisvideoarchivedmedia={},a.KinesisVideoArchivedMedia=i.defineService("kinesisvideoarchivedmedia",["2017-09-30"]),Object.defineProperty(s.services.kinesisvideoarchivedmedia,"2017-09-30",{get:function(){var t=e("../apis/kinesis-video-archived-media-2017-09-30.min.json");return t.paginators=e("../apis/kinesis-video-archived-media-2017-09-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.KinesisVideoArchivedMedia},{"../apis/kinesis-video-archived-media-2017-09-30.min.json":98,"../apis/kinesis-video-archived-media-2017-09-30.paginators.json":99,"../lib/core":258,"../lib/node_loader":255}],221:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.kms={},a.KMS=i.defineService("kms",["2014-11-01"]),Object.defineProperty(s.services.kms,"2014-11-01",{get:function(){var t=e("../apis/kms-2014-11-01.min.json");return t.paginators=e("../apis/kms-2014-11-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.KMS},{"../apis/kms-2014-11-01.min.json":102,"../apis/kms-2014-11-01.paginators.json":103,"../lib/core":258,"../lib/node_loader":255}],222:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.lambda={},a.Lambda=i.defineService("lambda",["2014-11-11","2015-03-31"]),e("../lib/services/lambda"),Object.defineProperty(s.services.lambda,"2014-11-11",{get:function(){var t=e("../apis/lambda-2014-11-11.min.json");return t.paginators=e("../apis/lambda-2014-11-11.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.lambda,"2015-03-31",{get:function(){var t=e("../apis/lambda-2015-03-31.min.json");return t.paginators=e("../apis/lambda-2015-03-31.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Lambda},{"../apis/lambda-2014-11-11.min.json":104,"../apis/lambda-2014-11-11.paginators.json":105,"../apis/lambda-2015-03-31.min.json":106,"../apis/lambda-2015-03-31.paginators.json":107,"../lib/core":258,"../lib/node_loader":255,"../lib/services/lambda":312}],223:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.lexmodelbuildingservice={},a.LexModelBuildingService=i.defineService("lexmodelbuildingservice",["2017-04-19"]),Object.defineProperty(s.services.lexmodelbuildingservice,"2017-04-19",{get:function(){var t=e("../apis/lex-models-2017-04-19.min.json");return t.paginators=e("../apis/lex-models-2017-04-19.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.LexModelBuildingService},{"../apis/lex-models-2017-04-19.min.json":108,"../apis/lex-models-2017-04-19.paginators.json":109,"../lib/core":258,"../lib/node_loader":255}],224:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.lexruntime={},a.LexRuntime=i.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(s.services.lexruntime,"2016-11-28",{get:function(){var t=e("../apis/runtime.lex-2016-11-28.min.json");return t.paginators=e("../apis/runtime.lex-2016-11-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.LexRuntime},{"../apis/runtime.lex-2016-11-28.min.json":151,"../apis/runtime.lex-2016-11-28.paginators.json":152,"../lib/core":258,"../lib/node_loader":255}],225:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.machinelearning={},a.MachineLearning=i.defineService("machinelearning",["2014-12-12"]),e("../lib/services/machinelearning"),Object.defineProperty(s.services.machinelearning,"2014-12-12",{get:function(){var t=e("../apis/machinelearning-2014-12-12.min.json");return t.paginators=e("../apis/machinelearning-2014-12-12.paginators.json").pagination,t.waiters=e("../apis/machinelearning-2014-12-12.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.MachineLearning},{"../apis/machinelearning-2014-12-12.min.json":112,"../apis/machinelearning-2014-12-12.paginators.json":113,"../apis/machinelearning-2014-12-12.waiters2.json":114,"../lib/core":258,"../lib/node_loader":255,"../lib/services/machinelearning":313}],226:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.marketplacecommerceanalytics={},a.MarketplaceCommerceAnalytics=i.defineService("marketplacecommerceanalytics",["2015-07-01"]),Object.defineProperty(s.services.marketplacecommerceanalytics,"2015-07-01",{get:function(){var t=e("../apis/marketplacecommerceanalytics-2015-07-01.min.json");return t.paginators=e("../apis/marketplacecommerceanalytics-2015-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.MarketplaceCommerceAnalytics},{"../apis/marketplacecommerceanalytics-2015-07-01.min.json":115,"../apis/marketplacecommerceanalytics-2015-07-01.paginators.json":116,"../lib/core":258,"../lib/node_loader":255}],227:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.mobileanalytics={},a.MobileAnalytics=i.defineService("mobileanalytics",["2014-06-05"]),Object.defineProperty(s.services.mobileanalytics,"2014-06-05",{get:function(){return e("../apis/mobileanalytics-2014-06-05.min.json")},enumerable:!0,configurable:!0}),t.exports=a.MobileAnalytics},{"../apis/mobileanalytics-2014-06-05.min.json":118,"../lib/core":258,"../lib/node_loader":255}],228:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.mturk={},a.MTurk=i.defineService("mturk",["2017-01-17"]),Object.defineProperty(s.services.mturk,"2017-01-17",{get:function(){var t=e("../apis/mturk-requester-2017-01-17.min.json");return t.paginators=e("../apis/mturk-requester-2017-01-17.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.MTurk},{"../apis/mturk-requester-2017-01-17.min.json":122,"../apis/mturk-requester-2017-01-17.paginators.json":123,"../lib/core":258,"../lib/node_loader":255}],229:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.opsworks={},a.OpsWorks=i.defineService("opsworks",["2013-02-18"]),Object.defineProperty(s.services.opsworks,"2013-02-18",{get:function(){var t=e("../apis/opsworks-2013-02-18.min.json");return t.paginators=e("../apis/opsworks-2013-02-18.paginators.json").pagination,t.waiters=e("../apis/opsworks-2013-02-18.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.OpsWorks},{"../apis/opsworks-2013-02-18.min.json":124,"../apis/opsworks-2013-02-18.paginators.json":125,"../apis/opsworks-2013-02-18.waiters2.json":126,"../lib/core":258,"../lib/node_loader":255}],230:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.polly={},a.Polly=i.defineService("polly",["2016-06-10"]),e("../lib/services/polly"),Object.defineProperty(s.services.polly,"2016-06-10",{get:function(){var t=e("../apis/polly-2016-06-10.min.json");return t.paginators=e("../apis/polly-2016-06-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Polly},{"../apis/polly-2016-06-10.min.json":127,"../apis/polly-2016-06-10.paginators.json":128,"../lib/core":258,"../lib/node_loader":255,"../lib/services/polly":314}],231:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.rds={},a.RDS=i.defineService("rds",["2013-01-10","2013-02-12","2013-09-09","2014-09-01","2014-09-01*","2014-10-31"]),e("../lib/services/rds"),Object.defineProperty(s.services.rds,"2013-01-10",{get:function(){var t=e("../apis/rds-2013-01-10.min.json");return t.paginators=e("../apis/rds-2013-01-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2013-02-12",{get:function(){var t=e("../apis/rds-2013-02-12.min.json");return t.paginators=e("../apis/rds-2013-02-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2013-09-09",{get:function(){var t=e("../apis/rds-2013-09-09.min.json");return t.paginators=e("../apis/rds-2013-09-09.paginators.json").pagination,t.waiters=e("../apis/rds-2013-09-09.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2014-09-01",{get:function(){var t=e("../apis/rds-2014-09-01.min.json");return t.paginators=e("../apis/rds-2014-09-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2014-10-31",{get:function(){var t=e("../apis/rds-2014-10-31.min.json");return t.paginators=e("../apis/rds-2014-10-31.paginators.json").pagination,t.waiters=e("../apis/rds-2014-10-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.RDS},{"../apis/rds-2013-01-10.min.json":129,"../apis/rds-2013-01-10.paginators.json":130,"../apis/rds-2013-02-12.min.json":131,"../apis/rds-2013-02-12.paginators.json":132,"../apis/rds-2013-09-09.min.json":133,"../apis/rds-2013-09-09.paginators.json":134,"../apis/rds-2013-09-09.waiters2.json":135,"../apis/rds-2014-09-01.min.json":136,"../apis/rds-2014-09-01.paginators.json":137,"../apis/rds-2014-10-31.min.json":138,"../apis/rds-2014-10-31.paginators.json":139,"../apis/rds-2014-10-31.waiters2.json":140,"../lib/core":258,"../lib/node_loader":255,"../lib/services/rds":315}],232:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.redshift={},a.Redshift=i.defineService("redshift",["2012-12-01"]),Object.defineProperty(s.services.redshift,"2012-12-01",{get:function(){var t=e("../apis/redshift-2012-12-01.min.json");return t.paginators=e("../apis/redshift-2012-12-01.paginators.json").pagination,t.waiters=e("../apis/redshift-2012-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.Redshift},{"../apis/redshift-2012-12-01.min.json":141,"../apis/redshift-2012-12-01.paginators.json":142,"../apis/redshift-2012-12-01.waiters2.json":143,"../lib/core":258,"../lib/node_loader":255}],233:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.rekognition={},a.Rekognition=i.defineService("rekognition",["2016-06-27"]),Object.defineProperty(s.services.rekognition,"2016-06-27",{get:function(){var t=e("../apis/rekognition-2016-06-27.min.json");return t.paginators=e("../apis/rekognition-2016-06-27.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Rekognition},{"../apis/rekognition-2016-06-27.min.json":144,"../apis/rekognition-2016-06-27.paginators.json":145,"../lib/core":258,"../lib/node_loader":255}],234:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.route53={},a.Route53=i.defineService("route53",["2013-04-01"]),e("../lib/services/route53"),Object.defineProperty(s.services.route53,"2013-04-01",{get:function(){var t=e("../apis/route53-2013-04-01.min.json");return t.paginators=e("../apis/route53-2013-04-01.paginators.json").pagination,t.waiters=e("../apis/route53-2013-04-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.Route53},{"../apis/route53-2013-04-01.min.json":146,"../apis/route53-2013-04-01.paginators.json":147,"../apis/route53-2013-04-01.waiters2.json":148,"../lib/core":258,"../lib/node_loader":255,"../lib/services/route53":316}],235:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.route53domains={},a.Route53Domains=i.defineService("route53domains",["2014-05-15"]),Object.defineProperty(s.services.route53domains,"2014-05-15",{get:function(){var t=e("../apis/route53domains-2014-05-15.min.json");return t.paginators=e("../apis/route53domains-2014-05-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Route53Domains},{"../apis/route53domains-2014-05-15.min.json":149,"../apis/route53domains-2014-05-15.paginators.json":150,"../lib/core":258,"../lib/node_loader":255}],236:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.s3={},a.S3=i.defineService("s3",["2006-03-01"]),e("../lib/services/s3"),Object.defineProperty(s.services.s3,"2006-03-01",{get:function(){var t=e("../apis/s3-2006-03-01.min.json");return t.paginators=e("../apis/s3-2006-03-01.paginators.json").pagination,t.waiters=e("../apis/s3-2006-03-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.S3},{"../apis/s3-2006-03-01.min.json":153,"../apis/s3-2006-03-01.paginators.json":154,"../apis/s3-2006-03-01.waiters2.json":155,"../lib/core":258,"../lib/node_loader":255,"../lib/services/s3":317}],237:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.secretsmanager={},a.SecretsManager=i.defineService("secretsmanager",["2017-10-17"]),Object.defineProperty(s.services.secretsmanager,"2017-10-17",{get:function(){var t=e("../apis/secretsmanager-2017-10-17.min.json");return t.paginators=e("../apis/secretsmanager-2017-10-17.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.SecretsManager},{"../apis/secretsmanager-2017-10-17.min.json":156,"../apis/secretsmanager-2017-10-17.paginators.json":157,"../lib/core":258,"../lib/node_loader":255}],238:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.servicecatalog={},a.ServiceCatalog=i.defineService("servicecatalog",["2015-12-10"]),Object.defineProperty(s.services.servicecatalog,"2015-12-10",{get:function(){var t=e("../apis/servicecatalog-2015-12-10.min.json");return t.paginators=e("../apis/servicecatalog-2015-12-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.ServiceCatalog},{"../apis/servicecatalog-2015-12-10.min.json":158,"../apis/servicecatalog-2015-12-10.paginators.json":159,"../lib/core":258,"../lib/node_loader":255}],239:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ses={},a.SES=i.defineService("ses",["2010-12-01"]),Object.defineProperty(s.services.ses,"2010-12-01",{get:function(){var t=e("../apis/email-2010-12-01.min.json");return t.paginators=e("../apis/email-2010-12-01.paginators.json").pagination,t.waiters=e("../apis/email-2010-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.SES},{"../apis/email-2010-12-01.min.json":81,"../apis/email-2010-12-01.paginators.json":82,"../apis/email-2010-12-01.waiters2.json":83,"../lib/core":258,"../lib/node_loader":255}],240:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.sns={},a.SNS=i.defineService("sns",["2010-03-31"]),Object.defineProperty(s.services.sns,"2010-03-31",{get:function(){var t=e("../apis/sns-2010-03-31.min.json");return t.paginators=e("../apis/sns-2010-03-31.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.SNS},{"../apis/sns-2010-03-31.min.json":160,"../apis/sns-2010-03-31.paginators.json":161,"../lib/core":258,"../lib/node_loader":255}],241:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.sqs={},a.SQS=i.defineService("sqs",["2012-11-05"]),e("../lib/services/sqs"),Object.defineProperty(s.services.sqs,"2012-11-05",{get:function(){var t=e("../apis/sqs-2012-11-05.min.json");return t.paginators=e("../apis/sqs-2012-11-05.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.SQS},{"../apis/sqs-2012-11-05.min.json":162,"../apis/sqs-2012-11-05.paginators.json":163,"../lib/core":258,"../lib/node_loader":255,"../lib/services/sqs":318}],242:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ssm={},a.SSM=i.defineService("ssm",["2014-11-06"]),Object.defineProperty(s.services.ssm,"2014-11-06",{get:function(){var t=e("../apis/ssm-2014-11-06.min.json");return t.paginators=e("../apis/ssm-2014-11-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.SSM},{"../apis/ssm-2014-11-06.min.json":164,"../apis/ssm-2014-11-06.paginators.json":165,"../lib/core":258,"../lib/node_loader":255}],243:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.storagegateway={},a.StorageGateway=i.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(s.services.storagegateway,"2013-06-30",{get:function(){var t=e("../apis/storagegateway-2013-06-30.min.json");return t.paginators=e("../apis/storagegateway-2013-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.StorageGateway},{"../apis/storagegateway-2013-06-30.min.json":166,"../apis/storagegateway-2013-06-30.paginators.json":167,"../lib/core":258,"../lib/node_loader":255}],244:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.sts={},a.STS=i.defineService("sts",["2011-06-15"]),e("../lib/services/sts"),Object.defineProperty(s.services.sts,"2011-06-15",{get:function(){var t=e("../apis/sts-2011-06-15.min.json");return t.paginators=e("../apis/sts-2011-06-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.STS},{"../apis/sts-2011-06-15.min.json":170,"../apis/sts-2011-06-15.paginators.json":171,"../lib/core":258,"../lib/node_loader":255,"../lib/services/sts":319}],245:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.translate={},a.Translate=i.defineService("translate",["2017-07-01"]),Object.defineProperty(s.services.translate,"2017-07-01",{get:function(){var t=e("../apis/translate-2017-07-01.min.json");return t.paginators=e("../apis/translate-2017-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Translate},{"../apis/translate-2017-07-01.min.json":172,"../apis/translate-2017-07-01.paginators.json":173,"../lib/core":258,"../lib/node_loader":255}],246:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.waf={},a.WAF=i.defineService("waf",["2015-08-24"]),Object.defineProperty(s.services.waf,"2015-08-24",{get:function(){var t=e("../apis/waf-2015-08-24.min.json");return t.paginators=e("../apis/waf-2015-08-24.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.WAF},{"../apis/waf-2015-08-24.min.json":174,"../apis/waf-2015-08-24.paginators.json":175,"../lib/core":258,"../lib/node_loader":255}],247:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.workdocs={},a.WorkDocs=i.defineService("workdocs",["2016-05-01"]),Object.defineProperty(s.services.workdocs,"2016-05-01",{get:function(){var t=e("../apis/workdocs-2016-05-01.min.json");return t.paginators=e("../apis/workdocs-2016-05-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.WorkDocs},{"../apis/workdocs-2016-05-01.min.json":176,"../apis/workdocs-2016-05-01.paginators.json":177,"../lib/core":258,"../lib/node_loader":255}],248:[function(e,t,r){function a(e,t){if(!a.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return a.services[e][t]}a.services={},t.exports=a},{}],249:[function(e,t,r){var a=e("./browserHmac"),i=e("./browserMd5"),s=e("./browserSha1"),o=e("./browserSha256");t.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new i;if("sha256"===e)return new o;if("sha1"===e)return new s;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new a(i,t);if("sha256"===e)return new a(o,t);if("sha1"===e)return new a(s,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},{"./browserHmac":251,"./browserMd5":252,"./browserSha1":253,"./browserSha256":254}],250:[function(e,t,r){function a(e){return"string"==typeof e?0===e.length:0===e.byteLength}function i(e){return"string"==typeof e&&(e=new s(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var s=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:a,convertToBuffer:i}},{"buffer/":338}],251:[function(e,t,r){function a(e,t){this.hash=new e,this.outer=new e;var r=i(e,t),a=new Uint8Array(e.BLOCK_SIZE);a.set(r);for(var s=0;s<e.BLOCK_SIZE;s++)r[s]^=54,a[s]^=92;this.hash.update(r),this.outer.update(a);for(var s=0;s<r.byteLength;s++)r[s]=0}function i(e,t){var r=s.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var a=new e;a.update(r),r=a.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}var s=e("./browserHashUtils");t.exports=a,a.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},a.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":250}],252:[function(e,t,r){function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(c)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function i(e,t,r,a,i,s){return((t=(t+e&4294967295)+(a+s&4294967295)&4294967295)<<i|t>>>32-i)+r&4294967295}function s(e,t,r,a,s,o,n){return i(t&r|~t&a,e,t,s,o,n)}function o(e,t,r,a,s,o,n){return i(t&a|r&~a,e,t,s,o,n)}function n(e,t,r,a,s,o,n){return i(t^r^a,e,t,s,o,n)}function u(e,t,r,a,s,o,n){return i(r^(t|~a),e,t,s,o,n)}var p=e("./browserHashUtils"),m=e("buffer/").Buffer,c=64;t.exports=a,a.BLOCK_SIZE=c,a.prototype.update=function(e){if(p.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=p.convertToBuffer(e),r=0,a=t.byteLength;for(this.bytesHashed+=a;a>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),a--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,a=t.bufferLength,i=t.bytesHashed,s=8*i;if(r.setUint8(this.bufferLength++,128),a%c>=c-8){for(var o=this.bufferLength;o<c;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<c-8;o++)r.setUint8(o,0);r.setUint32(c-8,s>>>0,!0),r.setUint32(c-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var n=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)n.setUint32(4*o,this.state[o],!0);var u=new m(n.buffer,n.byteOffset,n.byteLength);return e?u.toString(e):u},a.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],p=r[2],m=r[3];a=s(a,i,p,m,t.getUint32(0,!0),7,3614090360),m=s(m,a,i,p,t.getUint32(4,!0),12,3905402710),p=s(p,m,a,i,t.getUint32(8,!0),17,606105819),i=s(i,p,m,a,t.getUint32(12,!0),22,3250441966),a=s(a,i,p,m,t.getUint32(16,!0),7,4118548399),m=s(m,a,i,p,t.getUint32(20,!0),12,1200080426),p=s(p,m,a,i,t.getUint32(24,!0),17,2821735955),i=s(i,p,m,a,t.getUint32(28,!0),22,4249261313),a=s(a,i,p,m,t.getUint32(32,!0),7,1770035416),m=s(m,a,i,p,t.getUint32(36,!0),12,2336552879),p=s(p,m,a,i,t.getUint32(40,!0),17,4294925233),i=s(i,p,m,a,t.getUint32(44,!0),22,2304563134),a=s(a,i,p,m,t.getUint32(48,!0),7,1804603682),m=s(m,a,i,p,t.getUint32(52,!0),12,4254626195),p=s(p,m,a,i,t.getUint32(56,!0),17,2792965006),i=s(i,p,m,a,t.getUint32(60,!0),22,1236535329),a=o(a,i,p,m,t.getUint32(4,!0),5,4129170786),m=o(m,a,i,p,t.getUint32(24,!0),9,3225465664),p=o(p,m,a,i,t.getUint32(44,!0),14,643717713),i=o(i,p,m,a,t.getUint32(0,!0),20,3921069994),a=o(a,i,p,m,t.getUint32(20,!0),5,3593408605),m=o(m,a,i,p,t.getUint32(40,!0),9,38016083),p=o(p,m,a,i,t.getUint32(60,!0),14,3634488961),i=o(i,p,m,a,t.getUint32(16,!0),20,3889429448),a=o(a,i,p,m,t.getUint32(36,!0),5,568446438),m=o(m,a,i,p,t.getUint32(56,!0),9,3275163606),p=o(p,m,a,i,t.getUint32(12,!0),14,4107603335),i=o(i,p,m,a,t.getUint32(32,!0),20,1163531501),a=o(a,i,p,m,t.getUint32(52,!0),5,2850285829),m=o(m,a,i,p,t.getUint32(8,!0),9,4243563512),p=o(p,m,a,i,t.getUint32(28,!0),14,1735328473),i=o(i,p,m,a,t.getUint32(48,!0),20,2368359562),a=n(a,i,p,m,t.getUint32(20,!0),4,4294588738),m=n(m,a,i,p,t.getUint32(32,!0),11,2272392833),p=n(p,m,a,i,t.getUint32(44,!0),16,1839030562),i=n(i,p,m,a,t.getUint32(56,!0),23,4259657740),a=n(a,i,p,m,t.getUint32(4,!0),4,2763975236),m=n(m,a,i,p,t.getUint32(16,!0),11,1272893353),p=n(p,m,a,i,t.getUint32(28,!0),16,4139469664),i=n(i,p,m,a,t.getUint32(40,!0),23,3200236656),a=n(a,i,p,m,t.getUint32(52,!0),4,681279174),m=n(m,a,i,p,t.getUint32(0,!0),11,3936430074),p=n(p,m,a,i,t.getUint32(12,!0),16,3572445317),i=n(i,p,m,a,t.getUint32(24,!0),23,76029189),a=n(a,i,p,m,t.getUint32(36,!0),4,3654602809),m=n(m,a,i,p,t.getUint32(48,!0),11,3873151461),p=n(p,m,a,i,t.getUint32(60,!0),16,530742520),i=n(i,p,m,a,t.getUint32(8,!0),23,3299628645),a=u(a,i,p,m,t.getUint32(0,!0),6,4096336452),m=u(m,a,i,p,t.getUint32(28,!0),10,1126891415),p=u(p,m,a,i,t.getUint32(56,!0),15,2878612391),i=u(i,p,m,a,t.getUint32(20,!0),21,4237533241),a=u(a,i,p,m,t.getUint32(48,!0),6,1700485571),m=u(m,a,i,p,t.getUint32(12,!0),10,2399980690),p=u(p,m,a,i,t.getUint32(40,!0),15,4293915773),i=u(i,p,m,a,t.getUint32(4,!0),21,2240044497),a=u(a,i,p,m,t.getUint32(32,!0),6,1873313359),m=u(m,a,i,p,t.getUint32(60,!0),10,4264355552),p=u(p,m,a,i,t.getUint32(24,!0),15,2734768916),i=u(i,p,m,a,t.getUint32(52,!0),21,1309151649),a=u(a,i,p,m,t.getUint32(16,!0),6,4149444226),m=u(m,a,i,p,t.getUint32(44,!0),10,3174756917),p=u(p,m,a,i,t.getUint32(8,!0),15,718787259),i=u(i,p,m,a,t.getUint32(36,!0),21,3951481745),r[0]=a+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=p+r[2]&4294967295,r[3]=m+r[3]&4294967295}},{"./browserHashUtils":250,"buffer/":338}],253:[function(e,t,r){function a(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var i=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},a.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},a.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new i(20),a=new DataView(r.buffer);return a.setUint32(0,this.h0,!1),a.setUint32(4,this.h1,!1),a.setUint32(8,this.h2,!1),a.setUint32(12,this.h3,!1),a.setUint32(16,this.h4,!1),e?r.toString(e):r},a.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,a,i=this.h0,s=this.h1,o=this.h2,n=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=n^s&(o^n),a=1518500249):e<40?(r=s^o^n,a=1859775393):e<60?(r=s&o|n&(s|o),a=2400959708):(r=s^o^n,a=3395469782);var p=(i<<5|i>>>27)+r+u+a+(0|this.block[e]);u=n,n=o,o=s<<30|s>>>2,s=i,i=p}for(this.h0=this.h0+i|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+n|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":250,"buffer/":338}],254:[function(e,t,r){function a(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var i=e("buffer/").Buffer,s=e("./browserHashUtils"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=Math.pow(2,53)-1;t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(r.setUint8(this.bufferLength++,128),a%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new i(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},a.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],s=r[2],n=r[3],u=r[4],p=r[5],m=r[6],c=r[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&t[4*l])<<24|(255&t[4*l+1])<<16|(255&t[4*l+2])<<8|255&t[4*l+3];else{var d=this.temp[l-2],y=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10;d=this.temp[l-15];var b=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(y+this.temp[l-7]|0)+(b+this.temp[l-16]|0)}var h=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&m)|0)+(c+(o[l]+this.temp[l]|0)|0)|0,S=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&i^a&s^i&s)|0;c=m,m=p,p=u,
50
- u=n+h|0,n=s,s=i,i=a,a=h+S|0}r[0]+=a,r[1]+=i,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":250,"buffer/":338}],255:[function(e,t,r){(function(r){var a=e("./util");a.crypto.lib=e("./browserCryptoLib"),a.Buffer=e("buffer/").Buffer,a.url=e("url/"),a.querystring=e("querystring/"),a.environment="js",a.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream;var i=e("./core");t.exports=i,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),i.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===r&&(r={browser:!0})}).call(this,e("_process"))},{"./browserCryptoLib":249,"./core":258,"./credentials":259,"./credentials/cognito_identity_credentials":260,"./credentials/credential_provider_chain":261,"./credentials/saml_credentials":262,"./credentials/temporary_credentials":263,"./credentials/web_identity_credentials":264,"./event-stream/buffered-create-event-stream":271,"./http/xhr":280,"./util":329,"./xml/browser_parser":330,_process:344,"buffer/":338,"querystring/":351,"url/":353}],256:[function(e,t,r){var a=e("../core"),i=a.util.url,s=a.util.crypto.lib,o=a.util.base64.encode,n=a.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,a){var i=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(i.toString(),a)}},c=function(e,t,r){return e=e.replace(/\s/gm,e),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=i.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},h=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};a.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a["CloudFront-"+i]=r[i]);return h(a,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var a=i.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);a.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(i.format(a)):i.format(a)}catch(e){return b(e,t)}return h(n,t)}}),t.exports=a.CloudFront.Signer},{"../core":258}],257:[function(e,t,r){var a=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;a.Config=a.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),a.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new a.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,a){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=a,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),a.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||a.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(a.util.readFileSync(e)),r=new a.FileSystemCredentials(e),i=new a.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){a.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=a.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=a.util.copy(e),e.credentials=new a.Credentials(e)),e},setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&a.S3.ManagedUpload&&t.push(a.S3.ManagedUpload),a.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),a.config=new a.Config},{"./core":258,"./credentials":259,"./credentials/credential_provider_chain":261}],258:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.291.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader")}),e("./service"),e("./config"),e("./http"),e("./sequential_executor"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),a.events=new a.SequentialExecutor},{"./api_loader":248,"./config":257,"./event_listeners":278,"./http":279,"./json/builder":281,"./json/parser":282,"./model/api":283,"./model/operation":285,"./model/paginator":286,"./model/resource_waiter":287,"./model/shape":288,"./param_validator":289,"./protocol/json":291,"./protocol/query":292,"./protocol/rest":293,"./protocol/rest_json":294,"./protocol/rest_xml":295,"./request":300,"./resource_waiter":301,"./response":302,"./sequential_executor":304,"./service":305,"./signers/request_signer":321,"./util":329,"./xml/builder":331}],259:[function(e,t,r){var a=e("./core");a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),a.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=a.util.promisifyMethod("get",e),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",e)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},{"./core":258}],260:[function(e,t,r){var a=e("../core"),i=e("../../clients/cognitoidentity"),s=e("../../clients/sts");a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,a){r?t.clearIdOnNotAuthorized(r):(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,a){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,e),!this.cognito){var t=a.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":194,"../../clients/sts":244,"../core":258}],261:[function(e,t,r){var a=e("../core");a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(e){this.providers=e||a.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){function t(i,s){if(!i&&s||r===a.length)return void e(i,s);var o=a[r++];s="function"==typeof o?o.call():o,s.get?s.get(function(e){t(e,e?null:s)}):t(null,s)}if(0===this.providers.length)return e(new Error("No providers")),this;var r=0,a=this.providers.slice(0);return t(),this}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",e)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},{"../core":258}],262:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithSAML(function(r,a){r||t.service.credentialsFrom(a,t),e(r)})},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":244,"../core":258}],263:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":244,"../core":258}],264:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(t||{})},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithWebIdentity(function(r,a){t.data=null,r||(t.data=a,t.service.credentialsFrom(a,t)),e(r)})},createClients:function(){if(!this.service){var e=a.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},{"../../clients/sts":244,"../core":258}],265:[function(e,t,r){function a(e,t){for(var r={L:[]},a=0;a<e.length;a++)r.L.push(u.DynamoDB.Converter.input(e[a],t));return r}function i(e,t){return t?new l(e):Number(e)}function s(e,t){var r={M:{}};for(var a in e){var i=u.DynamoDB.Converter.input(e[a],t);void 0!==i&&(r.M[a]=i)}return r}function o(e,t){t=t||{};var r=e.values;if(t.convertEmptyValues&&(r=n(e),0===r.length))return u.DynamoDB.Converter.input(null);var a={};switch(e.type){case"String":a.SS=r;break;case"Binary":a.BS=r;break;case"Number":a.NS=r.map(function(e){return e.toString()})}return a}function n(e){var t=[];if({String:!0,Binary:!0,Number:!1}[e.type]){for(var r=0;r<e.values.length;r++)0!==e.values[r].length&&t.push(e.values[r]);return t}return e.values}var u=e("../core"),p=u.util,m=e("./types").typeOf,c=e("./set"),l=e("./numberValue");u.DynamoDB.Converter={input:function e(t,r){r=r||{};var i=m(t);return"Object"===i?s(t,r):"Array"===i?a(t,r):"Set"===i?o(t,r):"String"===i?0===t.length&&r.convertEmptyValues?e(null):{S:t}:"Number"===i||"NumberValue"===i?{N:t.toString()}:"Binary"===i?0===t.length&&r.convertEmptyValues?e(null):{B:t}:"Boolean"===i?{BOOL:t}:"null"===i?{NULL:!0}:"undefined"!==i&&"Function"!==i?s(t,r):void 0},marshall:function(e,t){return u.DynamoDB.Converter.input(e,t).M},output:function e(t,r){r=r||{};var a,s,o;for(var n in t){var u=t[n];if("M"===n){s={};for(var m in u)s[m]=e(u[m],r);return s}if("L"===n){for(a=[],o=0;o<u.length;o++)a.push(e(u[o],r));return a}if("SS"===n){for(a=[],o=0;o<u.length;o++)a.push(u[o]+"");return new c(a)}if("NS"===n){for(a=[],o=0;o<u.length;o++)a.push(i(u[o],r.wrapNumbers));return new c(a)}if("BS"===n){for(a=[],o=0;o<u.length;o++)a.push(new p.Buffer(u[o]));return new c(a)}if("S"===n)return u+"";if("N"===n)return i(u,r.wrapNumbers);if("B"===n)return new p.Buffer(u);if("BOOL"===n)return"true"===u||"TRUE"===u||!0===u;if("NULL"===n)return null}},unmarshall:function(e,t){return u.DynamoDB.Converter.output({M:e},t)}},t.exports=u.DynamoDB.Converter},{"../core":258,"./numberValue":267,"./set":268,"./types":270}],266:[function(e,t,r){var a=e("../core"),i=e("./translator"),s=e("./set");a.DynamoDB.DocumentClient=a.util.inherit({operations:{batchGetItem:"batchGet",batchWriteItem:"batchWrite",putItem:"put",getItem:"get",deleteItem:"delete",updateItem:"update",scan:"scan",query:"query"},constructor:function(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=e.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function(e){var t=this;if(e=e||{},t.service){var r=a.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=a.util.merge(t.service.config.params||{},e.params)}else t.service=new a.DynamoDB(e)},batchGet:function(e,t){var r=this,a=r.service.batchGetItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},batchWrite:function(e,t){var r=this,a=r.service.batchWriteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},delete:function(e,t){var r=this,a=r.service.deleteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},get:function(e,t){var r=this,a=r.service.getItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},put:function(e,t){var r=this,a=r.service.putItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},update:function(e,t){var r=this,a=r.service.updateItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},scan:function(e,t){var r=this,a=r.service.scan(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},query:function(e,t){var r=this,a=r.service.query(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},createSet:function(e,t){return t=t||{},new s(e,t)},getTranslator:function(){return new i(this.options)},setupRequest:function(e){var t=this,r=t.getTranslator(),i=e.operation,s=e.service.api.operations[i].input;e._events.validate.unshift(function(e){e.rawParams=a.util.copy(e.params),e.params=r.translateInput(e.rawParams,s)})},setupResponse:function(e){var t=this,r=t.getTranslator(),i=t.service.api.operations[e.operation].output;e.on("extractData",function(e){e.data=r.translateOutput(e.data,i)}),e.response.nextPage=function(e){var r,i=this,s=i.request,o=s.service,n=s.operation;try{r=o.paginationConfig(n,!0)}catch(e){i.error=e}if(!i.hasNextPage()){if(e)e(i.error,null);else if(i.error)throw i.error;return null}var u=a.util.copy(s.rawParams);if(i.nextPageTokens){var p=r.inputToken;"string"==typeof p&&(p=[p]);for(var m=0;m<p.length;m++)u[p[m]]=i.nextPageTokens[m];return t[n](u,e)}return e?e(null,null):null}}}),t.exports=a.DynamoDB.DocumentClient},{"../core":258,"./set":268,"./translator":269}],267:[function(e,t,r){var a=e("../core").util,i=a.inherit({constructor:function(e){this.wrapperName="NumberValue",this.value=e.toString()},toJSON:function(){return this.toNumber()},toNumber:function(){return Number(this.value)},toString:function(){return this.value}});t.exports=i},{"../core":258}],268:[function(e,t,r){var a=e("../core").util,i=e("./types").typeOf,s={String:"String",Number:"Number",NumberValue:"Number",Binary:"Binary"},o=a.inherit({constructor:function(e,t){t=t||{},this.wrapperName="Set",this.initialize(e,t.validate)},initialize:function(e,t){var r=this;r.values=[].concat(e),r.detectType(),t&&r.validate()},detectType:function(){if(this.type=s[i(this.values[0])],!this.type)throw a.error(new Error,{code:"InvalidSetType",message:"Sets can contain string, number, or binary values"})},validate:function(){for(var e=this,t=e.values.length,r=e.values,o=0;o<t;o++)if(s[i(r[o])]!==e.type)throw a.error(new Error,{code:"InvalidType",message:e.type+" Set contains "+i(r[o])+" value"})}});t.exports=o},{"../core":258,"./types":270}],269:[function(e,t,r){var a=e("../core").util,i=e("./converter"),s=function(e){e=e||{},this.attrValue=e.attrValue,this.convertEmptyValues=Boolean(e.convertEmptyValues),this.wrapNumbers=Boolean(e.wrapNumbers)};s.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},s.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},s.prototype.translate=function(e,t){var r=this;if(t&&void 0!==e){if(t.shape===r.attrValue)return i[r.mode](e,{convertEmptyValues:r.convertEmptyValues,wrapNumbers:r.wrapNumbers});switch(t.type){case"structure":return r.translateStructure(e,t);case"map":return r.translateMap(e,t);case"list":return r.translateList(e,t);default:return r.translateScalar(e,t)}}},s.prototype.translateStructure=function(e,t){var r=this;if(null!=e){var i={};return a.each(e,function(e,a){var s=t.members[e];if(s){var o=r.translate(a,s);void 0!==o&&(i[e]=o)}}),i}},s.prototype.translateList=function(e,t){var r=this;if(null!=e){var i=[];return a.arrayEach(e,function(e){var a=r.translate(e,t.member);void 0===a?i.push(null):i.push(a)}),i}},s.prototype.translateMap=function(e,t){var r=this;if(null!=e){var i={};return a.each(e,function(e,a){var s=r.translate(a,t.value);i[e]=void 0===s?null:s}),i}},s.prototype.translateScalar=function(e,t){return t.toType(e)},t.exports=s},{"../core":258,"./converter":265}],270:[function(e,t,r){function a(e){return null===e&&"object"==typeof e?"null":void 0!==e&&i(e)?"Binary":void 0!==e&&e.constructor?e.wrapperName||s.typeName(e.constructor):void 0!==e&&"object"==typeof e?"Object":"undefined"}function i(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(s.isNode()){var r=s.stream.Stream;if(s.Buffer.isBuffer(e)||e instanceof r)return!0}for(var a=0;a<t.length;a++)if(void 0!==e&&e.constructor){if(s.isType(e,t[a]))return!0;if(s.typeName(e.constructor)===t[a])return!0}return!1}var s=e("../core").util;t.exports={typeOf:a,isBinary:i}},{"../core":258}],271:[function(e,t,r){function a(e,t,r){for(var a=i(e),o=[],n=0;n<a.length;n++)o.push(s(t,a[n],r));return o}var i=e("../event-stream/event-message-chunker").eventMessageChunker,s=e("./parse-event").parseEvent;t.exports={createEventStream:a}},{"../event-stream/event-message-chunker":272,"./parse-event":274}],272:[function(e,t,r){function a(e){for(var t=[],r=0;r<e.length;){var a=e.readInt32BE(r),i=e.slice(r,a+r);r+=a,t.push(i)}return t}t.exports={eventMessageChunker:a}},{}],273:[function(e,t,r){function a(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");s.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function i(e){for(var t=0;t<8;t++)e[t]^=255;for(var t=7;t>-1&&0===++e[t];t--);}var s=e("../core").util,o=e("./to-buffer").toBuffer;a.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,s=Math.abs(Math.round(e));r>-1&&s>0;r--,s/=256)t[r]=s;return e<0&&i(t),new a(t)},a.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt(e.toString("hex"),16)*(t?-1:1)},a.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:a}},{"../core":258,"./to-buffer":277}],274:[function(e,t,r){function a(e,t,r){var a=s(t),o=a.headers[":message-type"];if(o){if("error"===o.value)throw i(a);if("event"!==o.value)return}var n=a.headers[":event-type"],u=r.members[n.value];if(u){var p={},m=u.eventPayloadMemberName;if(m){var c=u.members[m];"binary"===c.type?p[m]=a.body:p[m]=e.parse(a.body.toString(),c)}for(var l=u.eventHeaderMemberNames,d=0;d<l.length;d++){var y=l[d];a.headers[y]&&(p[y]=u.members[y].toType(a.headers[y].value))}var b={};return b[n.value]=p,b}}function i(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],a=new Error(r.value||r);return a.code=a.name=t.value||t,a}var s=e("./parse-message").parseMessage;t.exports={parseEvent:a}},{"./parse-message":275}],275:[function(e,t,r){function a(e){for(var t={},r=0;r<e.length;){var a=e.readUInt8(r++),i=e.slice(r,r+a).toString();switch(r+=a,e.readUInt8(r++)){case 0:t[i]={type:n,value:!0};break;case 1:t[i]={type:n,value:!1};break;case 2:t[i]={type:u,value:e.readInt8(r++)};break;case 3:t[i]={type:p,value:e.readInt16BE(r)},r+=2;break;case 4:t[i]={type:m,value:e.readInt32BE(r)},r+=4;break;case 5:t[i]={type:c,value:new s(e.slice(r,r+8))},r+=8;break;case 6:var o=e.readUInt16BE(r);r+=2,t[i]={type:l,value:e.slice(r,r+o)},r+=o;break;case 7:var h=e.readUInt16BE(r);r+=2,t[i]={type:d,value:e.slice(r,r+h).toString()},r+=h;break;case 8:t[i]={type:y,value:new Date(new s(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var S=e.slice(r,r+16).toString("hex");r+=16,t[i]={type:b,value:S.substr(0,8)+"-"+S.substr(8,4)+"-"+S.substr(12,4)+"-"+S.substr(16,4)+"-"+S.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}function i(e){var t=o(e);return{headers:a(t.headers),body:t.body}}var s=e("./int64").Int64,o=e("./split-message").splitMessage,n="boolean",u="byte",p="short",m="integer",c="long",l="binary",d="string",y="timestamp",b="uuid";t.exports={parseMessage:i}},{"./int64":273,"./split-message":276}],276:[function(e,t,r){function a(e){if(i.Buffer.isBuffer(e)||(e=s(e)),e.length<p)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(n);if(t!==i.crypto.crc32(e.slice(0,n)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-u);if(r!==i.crypto.crc32(e.slice(0,e.length-u)))throw new Error("The message checksum did not match the expected value of "+r);var a=n+u,m=a+e.readUInt32BE(o);return{headers:e.slice(a,m),body:e.slice(m,e.length-u)}}var i=e("../core").util,s=e("./to-buffer").toBuffer,o=4,n=2*o,u=4,p=n+2*u;t.exports={splitMessage:a}},{"../core":258,"./to-buffer":277}],277:[function(e,t,r){function a(e,t){return"function"==typeof i.from&&i.from!==Uint8Array.from?i.from(e,t):new i(e,t)}var i=e("../core").util.Buffer;t.exports={toBuffer:a}},{"../core":258}],278:[function(e,t,r){function a(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}var i=e("./core"),s=e("./sequential_executor");i.EventListeners={Core:{}},i.EventListeners={Core:(new s).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion)return t();e.service.config.getCredentials(function(r){r&&(e.response.error=i.util.error(r,{code:"CredentialsError",message:"Missing credentials in config"})),t()})}),e("VALIDATE_REGION","validate",function(e){e.service.config.region||e.service.isGlobalEndpoint||(e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"}))}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var a=i.util.copy(e.params),s=0,o=r.length;s<o;s++)a[r[s]]||(a[r[s]]=i.util.uuid.v4());e.params=a}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new i.ParamValidator(r).validate(t,e.params)}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],a=r?r.authtype:"";if(!e.service.api.signatureVersion&&!a)return t();if(e.service.getSignerClass(e)===i.Signers.V4){var s=e.httpRequest.body||"";if(a.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();i.util.computeSha256(s,function(r,a){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=a,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=a(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var r=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=r}catch(e){if(-1===t.indexOf("unsigned-body"))throw e;return}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),t("SIGN","sign",function(e,t){var r=e.service,a=e.service.api.operations||{},i=a[e.operation],s=i?i.authtype:"";if(!r.api.signatureVersion&&!s)return t();r.config.getCredentials(function(a,s){if(a)return e.response.error=a,t();try{var o=r.getSkewCorrectedDate(),n=r.getSignerClass(e),u=new n(e.httpRequest,r.api.signingName||r.api.endpointPrefix,{signatureCache:r.config.signatureCache,operation:i});u.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],u.addAuthorization(s,o),e.signedAt=o}catch(t){e.response.error=t}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=i.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var a=e.request.httpRequest.stream,s=e.request.service,o=s.api,n=e.request.operation,u=o.operations[n]||{};r.on("headers",function(a,o,n){if(e.request.emit("httpHeaders",[a,o,e,n]),!e.httpResponse.streaming)if(2===i.HttpClient.streamsApiVersion){if(u.hasEventOutput&&s.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!a||!a.didCallback){if(2===i.HttpClient.streamsApiVersion&&u.hasEventOutput&&s.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function a(t){t.on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}function s(r){if("RequestAbortedError"!==r.code){var a="TimeoutError"===r.code?r.code:"NetworkingError";r=i.util.error(r,{code:a,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function o(){var t=i.HttpClient.getInstance(),o=e.request.service.config.httpOptions||{};try{a(t.handleRequest(e.request.httpRequest,o,r,s))}catch(e){s(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),
50
+ u=n+h|0,n=s,s=i,i=a,a=h+S|0}r[0]+=a,r[1]+=i,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":250,"buffer/":338}],255:[function(e,t,r){(function(r){var a=e("./util");a.crypto.lib=e("./browserCryptoLib"),a.Buffer=e("buffer/").Buffer,a.url=e("url/"),a.querystring=e("querystring/"),a.environment="js",a.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream;var i=e("./core");t.exports=i,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),i.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===r&&(r={browser:!0})}).call(this,e("_process"))},{"./browserCryptoLib":249,"./core":258,"./credentials":259,"./credentials/cognito_identity_credentials":260,"./credentials/credential_provider_chain":261,"./credentials/saml_credentials":262,"./credentials/temporary_credentials":263,"./credentials/web_identity_credentials":264,"./event-stream/buffered-create-event-stream":271,"./http/xhr":280,"./util":329,"./xml/browser_parser":330,_process:344,"buffer/":338,"querystring/":351,"url/":353}],256:[function(e,t,r){var a=e("../core"),i=a.util.url,s=a.util.crypto.lib,o=a.util.base64.encode,n=a.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,a){var i=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(i.toString(),a)}},c=function(e,t,r){return e=e.replace(/\s/gm,e),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=i.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},h=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};a.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a["CloudFront-"+i]=r[i]);return h(a,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var a=i.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);a.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(i.format(a)):i.format(a)}catch(e){return b(e,t)}return h(n,t)}}),t.exports=a.CloudFront.Signer},{"../core":258}],257:[function(e,t,r){var a=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;a.Config=a.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),a.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new a.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,a){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=a,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),a.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||a.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(a.util.readFileSync(e)),r=new a.FileSystemCredentials(e),i=new a.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){a.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=a.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=a.util.copy(e),e.credentials=new a.Credentials(e)),e},setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&a.S3.ManagedUpload&&t.push(a.S3.ManagedUpload),a.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),a.config=new a.Config},{"./core":258,"./credentials":259,"./credentials/credential_provider_chain":261}],258:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.292.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader")}),e("./service"),e("./config"),e("./http"),e("./sequential_executor"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),a.events=new a.SequentialExecutor},{"./api_loader":248,"./config":257,"./event_listeners":278,"./http":279,"./json/builder":281,"./json/parser":282,"./model/api":283,"./model/operation":285,"./model/paginator":286,"./model/resource_waiter":287,"./model/shape":288,"./param_validator":289,"./protocol/json":291,"./protocol/query":292,"./protocol/rest":293,"./protocol/rest_json":294,"./protocol/rest_xml":295,"./request":300,"./resource_waiter":301,"./response":302,"./sequential_executor":304,"./service":305,"./signers/request_signer":321,"./util":329,"./xml/builder":331}],259:[function(e,t,r){var a=e("./core");a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),a.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=a.util.promisifyMethod("get",e),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",e)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},{"./core":258}],260:[function(e,t,r){var a=e("../core"),i=e("../../clients/cognitoidentity"),s=e("../../clients/sts");a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,a){r?t.clearIdOnNotAuthorized(r):(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,a){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,e),!this.cognito){var t=a.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":194,"../../clients/sts":244,"../core":258}],261:[function(e,t,r){var a=e("../core");a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(e){this.providers=e||a.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){function t(i,s){if(!i&&s||r===a.length)return void e(i,s);var o=a[r++];s="function"==typeof o?o.call():o,s.get?s.get(function(e){t(e,e?null:s)}):t(null,s)}if(0===this.providers.length)return e(new Error("No providers")),this;var r=0,a=this.providers.slice(0);return t(),this}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",e)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},{"../core":258}],262:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithSAML(function(r,a){r||t.service.credentialsFrom(a,t),e(r)})},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":244,"../core":258}],263:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":244,"../core":258}],264:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(t||{})},refresh:function(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithWebIdentity(function(r,a){t.data=null,r||(t.data=a,t.service.credentialsFrom(a,t)),e(r)})},createClients:function(){if(!this.service){var e=a.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},{"../../clients/sts":244,"../core":258}],265:[function(e,t,r){function a(e,t){for(var r={L:[]},a=0;a<e.length;a++)r.L.push(u.DynamoDB.Converter.input(e[a],t));return r}function i(e,t){return t?new l(e):Number(e)}function s(e,t){var r={M:{}};for(var a in e){var i=u.DynamoDB.Converter.input(e[a],t);void 0!==i&&(r.M[a]=i)}return r}function o(e,t){t=t||{};var r=e.values;if(t.convertEmptyValues&&(r=n(e),0===r.length))return u.DynamoDB.Converter.input(null);var a={};switch(e.type){case"String":a.SS=r;break;case"Binary":a.BS=r;break;case"Number":a.NS=r.map(function(e){return e.toString()})}return a}function n(e){var t=[];if({String:!0,Binary:!0,Number:!1}[e.type]){for(var r=0;r<e.values.length;r++)0!==e.values[r].length&&t.push(e.values[r]);return t}return e.values}var u=e("../core"),p=u.util,m=e("./types").typeOf,c=e("./set"),l=e("./numberValue");u.DynamoDB.Converter={input:function e(t,r){r=r||{};var i=m(t);return"Object"===i?s(t,r):"Array"===i?a(t,r):"Set"===i?o(t,r):"String"===i?0===t.length&&r.convertEmptyValues?e(null):{S:t}:"Number"===i||"NumberValue"===i?{N:t.toString()}:"Binary"===i?0===t.length&&r.convertEmptyValues?e(null):{B:t}:"Boolean"===i?{BOOL:t}:"null"===i?{NULL:!0}:"undefined"!==i&&"Function"!==i?s(t,r):void 0},marshall:function(e,t){return u.DynamoDB.Converter.input(e,t).M},output:function e(t,r){r=r||{};var a,s,o;for(var n in t){var u=t[n];if("M"===n){s={};for(var m in u)s[m]=e(u[m],r);return s}if("L"===n){for(a=[],o=0;o<u.length;o++)a.push(e(u[o],r));return a}if("SS"===n){for(a=[],o=0;o<u.length;o++)a.push(u[o]+"");return new c(a)}if("NS"===n){for(a=[],o=0;o<u.length;o++)a.push(i(u[o],r.wrapNumbers));return new c(a)}if("BS"===n){for(a=[],o=0;o<u.length;o++)a.push(new p.Buffer(u[o]));return new c(a)}if("S"===n)return u+"";if("N"===n)return i(u,r.wrapNumbers);if("B"===n)return new p.Buffer(u);if("BOOL"===n)return"true"===u||"TRUE"===u||!0===u;if("NULL"===n)return null}},unmarshall:function(e,t){return u.DynamoDB.Converter.output({M:e},t)}},t.exports=u.DynamoDB.Converter},{"../core":258,"./numberValue":267,"./set":268,"./types":270}],266:[function(e,t,r){var a=e("../core"),i=e("./translator"),s=e("./set");a.DynamoDB.DocumentClient=a.util.inherit({operations:{batchGetItem:"batchGet",batchWriteItem:"batchWrite",putItem:"put",getItem:"get",deleteItem:"delete",updateItem:"update",scan:"scan",query:"query"},constructor:function(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=e.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function(e){var t=this;if(e=e||{},t.service){var r=a.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=a.util.merge(t.service.config.params||{},e.params)}else t.service=new a.DynamoDB(e)},batchGet:function(e,t){var r=this,a=r.service.batchGetItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},batchWrite:function(e,t){var r=this,a=r.service.batchWriteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},delete:function(e,t){var r=this,a=r.service.deleteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},get:function(e,t){var r=this,a=r.service.getItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},put:function(e,t){var r=this,a=r.service.putItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},update:function(e,t){var r=this,a=r.service.updateItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},scan:function(e,t){var r=this,a=r.service.scan(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},query:function(e,t){var r=this,a=r.service.query(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},createSet:function(e,t){return t=t||{},new s(e,t)},getTranslator:function(){return new i(this.options)},setupRequest:function(e){var t=this,r=t.getTranslator(),i=e.operation,s=e.service.api.operations[i].input;e._events.validate.unshift(function(e){e.rawParams=a.util.copy(e.params),e.params=r.translateInput(e.rawParams,s)})},setupResponse:function(e){var t=this,r=t.getTranslator(),i=t.service.api.operations[e.operation].output;e.on("extractData",function(e){e.data=r.translateOutput(e.data,i)}),e.response.nextPage=function(e){var r,i=this,s=i.request,o=s.service,n=s.operation;try{r=o.paginationConfig(n,!0)}catch(e){i.error=e}if(!i.hasNextPage()){if(e)e(i.error,null);else if(i.error)throw i.error;return null}var u=a.util.copy(s.rawParams);if(i.nextPageTokens){var p=r.inputToken;"string"==typeof p&&(p=[p]);for(var m=0;m<p.length;m++)u[p[m]]=i.nextPageTokens[m];return t[n](u,e)}return e?e(null,null):null}}}),t.exports=a.DynamoDB.DocumentClient},{"../core":258,"./set":268,"./translator":269}],267:[function(e,t,r){var a=e("../core").util,i=a.inherit({constructor:function(e){this.wrapperName="NumberValue",this.value=e.toString()},toJSON:function(){return this.toNumber()},toNumber:function(){return Number(this.value)},toString:function(){return this.value}});t.exports=i},{"../core":258}],268:[function(e,t,r){var a=e("../core").util,i=e("./types").typeOf,s={String:"String",Number:"Number",NumberValue:"Number",Binary:"Binary"},o=a.inherit({constructor:function(e,t){t=t||{},this.wrapperName="Set",this.initialize(e,t.validate)},initialize:function(e,t){var r=this;r.values=[].concat(e),r.detectType(),t&&r.validate()},detectType:function(){if(this.type=s[i(this.values[0])],!this.type)throw a.error(new Error,{code:"InvalidSetType",message:"Sets can contain string, number, or binary values"})},validate:function(){for(var e=this,t=e.values.length,r=e.values,o=0;o<t;o++)if(s[i(r[o])]!==e.type)throw a.error(new Error,{code:"InvalidType",message:e.type+" Set contains "+i(r[o])+" value"})}});t.exports=o},{"../core":258,"./types":270}],269:[function(e,t,r){var a=e("../core").util,i=e("./converter"),s=function(e){e=e||{},this.attrValue=e.attrValue,this.convertEmptyValues=Boolean(e.convertEmptyValues),this.wrapNumbers=Boolean(e.wrapNumbers)};s.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},s.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},s.prototype.translate=function(e,t){var r=this;if(t&&void 0!==e){if(t.shape===r.attrValue)return i[r.mode](e,{convertEmptyValues:r.convertEmptyValues,wrapNumbers:r.wrapNumbers});switch(t.type){case"structure":return r.translateStructure(e,t);case"map":return r.translateMap(e,t);case"list":return r.translateList(e,t);default:return r.translateScalar(e,t)}}},s.prototype.translateStructure=function(e,t){var r=this;if(null!=e){var i={};return a.each(e,function(e,a){var s=t.members[e];if(s){var o=r.translate(a,s);void 0!==o&&(i[e]=o)}}),i}},s.prototype.translateList=function(e,t){var r=this;if(null!=e){var i=[];return a.arrayEach(e,function(e){var a=r.translate(e,t.member);void 0===a?i.push(null):i.push(a)}),i}},s.prototype.translateMap=function(e,t){var r=this;if(null!=e){var i={};return a.each(e,function(e,a){var s=r.translate(a,t.value);i[e]=void 0===s?null:s}),i}},s.prototype.translateScalar=function(e,t){return t.toType(e)},t.exports=s},{"../core":258,"./converter":265}],270:[function(e,t,r){function a(e){return null===e&&"object"==typeof e?"null":void 0!==e&&i(e)?"Binary":void 0!==e&&e.constructor?e.wrapperName||s.typeName(e.constructor):void 0!==e&&"object"==typeof e?"Object":"undefined"}function i(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(s.isNode()){var r=s.stream.Stream;if(s.Buffer.isBuffer(e)||e instanceof r)return!0}for(var a=0;a<t.length;a++)if(void 0!==e&&e.constructor){if(s.isType(e,t[a]))return!0;if(s.typeName(e.constructor)===t[a])return!0}return!1}var s=e("../core").util;t.exports={typeOf:a,isBinary:i}},{"../core":258}],271:[function(e,t,r){function a(e,t,r){for(var a=i(e),o=[],n=0;n<a.length;n++)o.push(s(t,a[n],r));return o}var i=e("../event-stream/event-message-chunker").eventMessageChunker,s=e("./parse-event").parseEvent;t.exports={createEventStream:a}},{"../event-stream/event-message-chunker":272,"./parse-event":274}],272:[function(e,t,r){function a(e){for(var t=[],r=0;r<e.length;){var a=e.readInt32BE(r),i=e.slice(r,a+r);r+=a,t.push(i)}return t}t.exports={eventMessageChunker:a}},{}],273:[function(e,t,r){function a(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");s.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function i(e){for(var t=0;t<8;t++)e[t]^=255;for(var t=7;t>-1&&0===++e[t];t--);}var s=e("../core").util,o=e("./to-buffer").toBuffer;a.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,s=Math.abs(Math.round(e));r>-1&&s>0;r--,s/=256)t[r]=s;return e<0&&i(t),new a(t)},a.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt(e.toString("hex"),16)*(t?-1:1)},a.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:a}},{"../core":258,"./to-buffer":277}],274:[function(e,t,r){function a(e,t,r){var a=s(t),o=a.headers[":message-type"];if(o){if("error"===o.value)throw i(a);if("event"!==o.value)return}var n=a.headers[":event-type"],u=r.members[n.value];if(u){var p={},m=u.eventPayloadMemberName;if(m){var c=u.members[m];"binary"===c.type?p[m]=a.body:p[m]=e.parse(a.body.toString(),c)}for(var l=u.eventHeaderMemberNames,d=0;d<l.length;d++){var y=l[d];a.headers[y]&&(p[y]=u.members[y].toType(a.headers[y].value))}var b={};return b[n.value]=p,b}}function i(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],a=new Error(r.value||r);return a.code=a.name=t.value||t,a}var s=e("./parse-message").parseMessage;t.exports={parseEvent:a}},{"./parse-message":275}],275:[function(e,t,r){function a(e){for(var t={},r=0;r<e.length;){var a=e.readUInt8(r++),i=e.slice(r,r+a).toString();switch(r+=a,e.readUInt8(r++)){case 0:t[i]={type:n,value:!0};break;case 1:t[i]={type:n,value:!1};break;case 2:t[i]={type:u,value:e.readInt8(r++)};break;case 3:t[i]={type:p,value:e.readInt16BE(r)},r+=2;break;case 4:t[i]={type:m,value:e.readInt32BE(r)},r+=4;break;case 5:t[i]={type:c,value:new s(e.slice(r,r+8))},r+=8;break;case 6:var o=e.readUInt16BE(r);r+=2,t[i]={type:l,value:e.slice(r,r+o)},r+=o;break;case 7:var h=e.readUInt16BE(r);r+=2,t[i]={type:d,value:e.slice(r,r+h).toString()},r+=h;break;case 8:t[i]={type:y,value:new Date(new s(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var S=e.slice(r,r+16).toString("hex");r+=16,t[i]={type:b,value:S.substr(0,8)+"-"+S.substr(8,4)+"-"+S.substr(12,4)+"-"+S.substr(16,4)+"-"+S.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}function i(e){var t=o(e);return{headers:a(t.headers),body:t.body}}var s=e("./int64").Int64,o=e("./split-message").splitMessage,n="boolean",u="byte",p="short",m="integer",c="long",l="binary",d="string",y="timestamp",b="uuid";t.exports={parseMessage:i}},{"./int64":273,"./split-message":276}],276:[function(e,t,r){function a(e){if(i.Buffer.isBuffer(e)||(e=s(e)),e.length<p)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(n);if(t!==i.crypto.crc32(e.slice(0,n)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-u);if(r!==i.crypto.crc32(e.slice(0,e.length-u)))throw new Error("The message checksum did not match the expected value of "+r);var a=n+u,m=a+e.readUInt32BE(o);return{headers:e.slice(a,m),body:e.slice(m,e.length-u)}}var i=e("../core").util,s=e("./to-buffer").toBuffer,o=4,n=2*o,u=4,p=n+2*u;t.exports={splitMessage:a}},{"../core":258,"./to-buffer":277}],277:[function(e,t,r){function a(e,t){return"function"==typeof i.from&&i.from!==Uint8Array.from?i.from(e,t):new i(e,t)}var i=e("../core").util.Buffer;t.exports={toBuffer:a}},{"../core":258}],278:[function(e,t,r){function a(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}var i=e("./core"),s=e("./sequential_executor");i.EventListeners={Core:{}},i.EventListeners={Core:(new s).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion)return t();e.service.config.getCredentials(function(r){r&&(e.response.error=i.util.error(r,{code:"CredentialsError",message:"Missing credentials in config"})),t()})}),e("VALIDATE_REGION","validate",function(e){e.service.config.region||e.service.isGlobalEndpoint||(e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"}))}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var a=i.util.copy(e.params),s=0,o=r.length;s<o;s++)a[r[s]]||(a[r[s]]=i.util.uuid.v4());e.params=a}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new i.ParamValidator(r).validate(t,e.params)}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],a=r?r.authtype:"";if(!e.service.api.signatureVersion&&!a)return t();if(e.service.getSignerClass(e)===i.Signers.V4){var s=e.httpRequest.body||"";if(a.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();i.util.computeSha256(s,function(r,a){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=a,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=a(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var r=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=r}catch(e){if(-1===t.indexOf("unsigned-body"))throw e;return}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),t("SIGN","sign",function(e,t){var r=e.service,a=e.service.api.operations||{},i=a[e.operation],s=i?i.authtype:"";if(!r.api.signatureVersion&&!s)return t();r.config.getCredentials(function(a,s){if(a)return e.response.error=a,t();try{var o=r.getSkewCorrectedDate(),n=r.getSignerClass(e),u=new n(e.httpRequest,r.api.signingName||r.api.endpointPrefix,{signatureCache:r.config.signatureCache,operation:i});u.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],u.addAuthorization(s,o),e.signedAt=o}catch(t){e.response.error=t}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=i.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var a=e.request.httpRequest.stream,s=e.request.service,o=s.api,n=e.request.operation,u=o.operations[n]||{};r.on("headers",function(a,o,n){if(e.request.emit("httpHeaders",[a,o,e,n]),!e.httpResponse.streaming)if(2===i.HttpClient.streamsApiVersion){if(u.hasEventOutput&&s.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!a||!a.didCallback){if(2===i.HttpClient.streamsApiVersion&&u.hasEventOutput&&s.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function a(t){t.on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}function s(r){if("RequestAbortedError"!==r.code){var a="TimeoutError"===r.code?r.code:"NetworkingError";r=i.util.error(r,{code:a,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function o(){var t=i.HttpClient.getInstance(),o=e.request.service.config.httpOptions||{};try{a(t.handleRequest(e.request.httpRequest,o,r,s))}catch(e){s(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),
51
51
  e("HTTP_HEADERS","httpHeaders",function(e,t,r,a){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=a,r.httpResponse.headers=t,r.httpResponse.body=new i.util.Buffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var s=t.date||t.Date,o=r.request.service;if(s){var n=Date.parse(s);o.config.correctClockSkew&&o.isClockSkewed(n)&&o.applyClockOffset(n)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],a={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[a,t])}t.httpResponse.buffers.push(new i.util.Buffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount)||0))}),t("RESET_RETRY_STATE","afterRetry",function(e,t){var r,a=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,a=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,a=!0)),a?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new s).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",i.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",i.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&"ENOTFOUND"===e.errno){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=i.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new s).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;switch(e.type){case"structure":var a={};return i.util.each(t,function(t,i){Object.prototype.hasOwnProperty.call(e.members,t)?a[t]=r(e.members[t],i):a[t]=i}),a;case"list":var s=[];return i.util.arrayEach(t,function(t,a){s.push(r(e.member,t))}),s;case"map":var o={};return i.util.each(t,function(t,a){o[t]=r(e.value,a)}),o;default:return e.isSensitive?"***SensitiveInformation***":t}}var a=t.request,s=a.service.config.logger;if(s){var o=function(){var o=t.request.service.getSkewCorrectedDate().getTime(),n=(o-a.startTime.getTime())/1e3,u=!!s.isTTY,p=t.httpResponse.statusCode,m=a.params;if(a.service.api.operations&&a.service.api.operations[a.operation]&&a.service.api.operations[a.operation].input){m=r(a.service.api.operations[a.operation].input,a.params)}var c=e("util").inspect(m,!0,null),l="";return u&&(l+=""),l+="[AWS "+a.service.serviceIdentifier+" "+p,l+=" "+n.toString()+"s "+t.retryCount+" retries]",u&&(l+=""),l+=" "+i.util.string.lowerFirst(a.operation),l+="("+c+")",u&&(l+=""),l}();"function"==typeof s.log?s.log(o):"function"==typeof s.write&&s.write(o+"\n")}})}),Json:(new s).addNamedListeners(function(t){var r=e("./protocol/json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Rest:(new s).addNamedListeners(function(t){var r=e("./protocol/rest");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestJson:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestXml:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_xml");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Query:(new s).addNamedListeners(function(t){var r=e("./protocol/query");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)})}},{"./core":258,"./protocol/json":291,"./protocol/query":292,"./protocol/rest":293,"./protocol/rest_json":294,"./protocol/rest_xml":295,"./sequential_executor":304,util:355}],279:[function(e,t,r){var a=e("./core"),i=a.util.inherit;a.Endpoint=i({constructor:function(e,t){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return a.util.copy(e);if(!e.match(/^http/)){e=((t&&void 0!==t.sslEnabled?t.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+e}a.util.update(this,a.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),a.HttpRequest=i({constructor:function(e,t){e=new a.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=a.util.userAgent()},getUserAgentHeaderName:function(){return(a.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=a.util.queryStringParse(e),a.util.queryParamsToString(e)):""}}),a.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),a.HttpClient=i({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},{"./core":258}],280:[function(e,t,r){var a=e("../core"),i=e("events").EventEmitter;e("../http"),a.XHRClient=a.util.inherit({handleRequest:function(e,t,r,s){var o=this,n=e.endpoint,u=new i,p=n.protocol+"//"+n.hostname;80!==n.port&&443!==n.port&&(p+=":"+n.port),p+=e.path;var m=new XMLHttpRequest,c=!1;e.stream=m,m.addEventListener("readystatechange",function(){try{if(0===m.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!c&&(u.statusCode=m.status,u.headers=o.parseHeaders(m.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,m.statusText),c=!0),this.readyState===this.DONE&&o.finishRequest(m,u)},!1),m.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),m.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),m.addEventListener("timeout",function(){s(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),m.addEventListener("error",function(){s(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),m.addEventListener("abort",function(){s(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),m.open(e.method,p,!1!==t.xhrAsync),a.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&m.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(m.timeout=t.timeout),t.xhrWithCredentials&&(m.withCredentials=!0);try{m.responseType="arraybuffer"}catch(e){}try{e.body?m.send(e.body):m.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;m.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return a.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],a=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=a)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new a.util.Buffer(i.byteLength);for(var s=new Uint8Array(i),o=0;o<r.length;++o)r[o]=s[o]}try{r||"string"!=typeof e.responseText||(r=new a.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),a.HttpClient.prototype=a.XHRClient.prototype,a.HttpClient.streamsApiVersion=1},{"../core":258,"../http":279,events:339}],281:[function(e,t,r){function a(){}function i(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){var r={};return p.each(e,function(e,a){var s=t.members[e];if(s){if("body"!==s.location)return;var o=s.isLocationName?s.name:e,n=i(a,s);void 0!==n&&(r[o]=n)}}),r}function o(e,t){var r=[];return p.arrayEach(e,function(e){var a=i(e,t.member);void 0!==a&&r.push(a)}),r}function n(e,t){var r={};return p.each(e,function(e,a){var s=i(a,t.value);void 0!==s&&(r[e]=s)}),r}function u(e,t){return t.toWireFormat(e)}var p=e("../util");a.prototype.build=function(e,t){return JSON.stringify(i(e,t))},t.exports=a},{"../util":329}],282:[function(e,t,r){function a(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(null!=e){var r={},a=t.members;return p.each(a,function(t,a){var s=a.isLocationName?a.name:t;if(Object.prototype.hasOwnProperty.call(e,s)){var o=e[s],n=i(o,a);void 0!==n&&(r[t]=n)}}),r}}function o(e,t){if(null!=e){var r=[];return p.arrayEach(e,function(e){var a=i(e,t.member);void 0===a?r.push(null):r.push(a)}),r}}function n(e,t){if(null!=e){var r={};return p.each(e,function(e,a){var s=i(a,t.value);r[e]=void 0===s?null:s}),r}}function u(e,t){return t.toType(e)}var p=e("../util");a.prototype.parse=function(e,t){return i(JSON.parse(e),t)},t.exports=a},{"../util":329}],283:[function(e,t,r){function a(e,t){e=e||{},t=t||{},t.api=this,e.metadata=e.metadata||{},m(this,"isApi",!0,!1),m(this,"apiVersion",e.metadata.apiVersion),m(this,"endpointPrefix",e.metadata.endpointPrefix),m(this,"signingName",e.metadata.signingName),m(this,"globalEndpoint",e.metadata.globalEndpoint),m(this,"signatureVersion",e.metadata.signatureVersion),m(this,"jsonVersion",e.metadata.jsonVersion),m(this,"targetPrefix",e.metadata.targetPrefix),m(this,"protocol",e.metadata.protocol),m(this,"timestampFormat",e.metadata.timestampFormat),m(this,"xmlNamespaceUri",e.metadata.xmlNamespace),m(this,"abbreviation",e.metadata.serviceAbbreviation),m(this,"fullName",e.metadata.serviceFullName),c(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),"ElasticLoadBalancing"===t&&(t="ELB"),t):null}),m(this,"operations",new i(e.operations,t,function(e,r){return new s(e,r,t)},p.string.lowerFirst)),m(this,"shapes",new i(e.shapes,t,function(e,r){return o.create(r,t)})),m(this,"paginators",new i(e.paginators,t,function(e,r){return new n(e,r,t)})),m(this,"waiters",new i(e.waiters,t,function(e,r){return new u(e,r,t)},p.string.lowerFirst)),t.documentation&&(m(this,"documentation",e.documentation),m(this,"documentationUrl",e.documentationUrl))}var i=e("./collection"),s=e("./operation"),o=e("./shape"),n=e("./paginator"),u=e("./resource_waiter"),p=e("../util"),m=p.property,c=p.memoizedProperty;t.exports=a},{"../util":329,"./collection":284,"./operation":285,"./paginator":286,"./resource_waiter":287,"./shape":288}],284:[function(e,t,r){function a(e,t,r,a){s(this,a(e),function(){return r(e,t)})}function i(e,t,r,i){i=i||String;var s=this;for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.call(s,o,e[o],r,i)}var s=e("../util").memoizedProperty;t.exports=i},{"../util":329}],285:[function(e,t,r){function a(e,t,r){var a=this;r=r||{},n(this,"name",t.name||e),n(this,"api",r.api,!1),t.http=t.http||{},n(this,"httpMethod",t.http.method||"POST"),n(this,"httpPath",t.http.requestUri||"/"),n(this,"authtype",t.authtype||""),u(this,"input",function(){return t.input?s.create(t.input,r):new s.create({type:"structure"},r)}),u(this,"output",function(){return t.output?s.create(t.output,r):new s.create({type:"structure"},r)}),u(this,"errors",function(){var e=[];if(!t.errors)return null;for(var a=0;a<t.errors.length;a++)e.push(s.create(t.errors[a],r));return e}),u(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(n(this,"documentation",t.documentation),n(this,"documentationUrl",t.documentationUrl)),u(this,"idempotentMembers",function(){var e=[],t=a.input,r=t.members;if(!t.members)return e;for(var i in r)r.hasOwnProperty(i)&&!0===r[i].isIdempotent&&e.push(i);return e}),u(this,"hasEventOutput",function(){return i(a.output)})}function i(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var a in t)if(!t.hasOwnProperty(a)&&!0===t[a].isEventStream)return!0;return!1}var s=e("./shape"),o=e("../util"),n=o.property,u=o.memoizedProperty;t.exports=a},{"../util":329,"./shape":288}],286:[function(e,t,r){function a(e,t){i(this,"inputToken",t.input_token),i(this,"limitKey",t.limit_key),i(this,"moreResults",t.more_results),i(this,"outputToken",t.output_token),i(this,"resultKey",t.result_key)}var i=e("../util").property;t.exports=a},{"../util":329}],287:[function(e,t,r){function a(e,t,r){r=r||{},s(this,"name",e),s(this,"api",r.api,!1),t.operation&&s(this,"operation",i.string.lowerFirst(t.operation));var a=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&s(a,e,r)})}var i=e("../util"),s=i.property;t.exports=a},{"../util":329}],288:[function(e,t,r){function a(e,t,r){null!==r&&void 0!==r&&g.property.apply(this,arguments)}function i(e,t){e.constructor.prototype[t]||g.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},a(this,"shape",e.shape),a(this,"api",t.api,!1),a(this,"type",e.type),a(this,"enum",e.enum),a(this,"min",e.min),a(this,"max",e.max),a(this,"pattern",e.pattern),a(this,"location",e.location||this.location||"body"),a(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),a(this,"isStreaming",e.streaming||this.isStreaming||!1),a(this,"isComposite",e.isComposite||!1),a(this,"isShape",!0,!1),a(this,"isQueryName",Boolean(e.queryName),!1),a(this,"isLocationName",Boolean(e.locationName),!1),a(this,"isIdempotent",!0===e.idempotencyToken),a(this,"isJsonValue",!0===e.jsonvalue),a(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),a(this,"isEventStream",Boolean(e.eventstream),!1),a(this,"isEvent",Boolean(e.event),!1),a(this,"isEventPayload",Boolean(e.eventpayload),!1),a(this,"isEventHeader",Boolean(e.eventheader),!1),a(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),t.documentation&&(a(this,"documentation",e.documentation),a(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&a(this,"isXmlAttribute",e.xmlAttribute||!1),a(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function o(e){s.apply(this,arguments),a(this,"isComposite",!0),e.flattened&&a(this,"flattened",e.flattened||!1)}function n(e,t){var r=this,n=null,u=!this.isShape;o.apply(this,arguments),u&&(a(this,"defaultValue",function(){return{}}),a(this,"members",{}),a(this,"memberNames",[]),a(this,"required",[]),a(this,"isRequired",function(){return!1})),e.members&&(a(this,"members",new S(e.members,t,function(e,r){return s.create(r,t,e)})),i(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(i(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,a=0,i=t.length;a<i;a++)if(e[t[a]].isEventPayload)return t[a]}),i(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,a=[],i=0,s=t.length;i<s;i++)e[t[i]].isEventHeader&&a.push(t[i]);return a}))),e.required&&(a(this,"required",e.required),a(this,"isRequired",function(t){if(!n){n={};for(var r=0;r<e.required.length;r++)n[e.required[r]]=!0}return n[t]},!1,!0)),a(this,"resultWrapper",e.resultWrapper||null),e.payload&&a(this,"payload",e.payload),"string"==typeof e.xmlNamespace?a(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(a(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),a(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function u(e,t){var r=this,n=!this.isShape;if(o.apply(this,arguments),n&&a(this,"defaultValue",function(){return[]}),e.member&&i(this,"member",function(){return s.create(e.member,t)}),this.flattened){var u=this.name;i(this,"name",function(){return r.member.name||u})}}function p(e,t){var r=!this.isShape;o.apply(this,arguments),r&&(a(this,"defaultValue",function(){return{}}),a(this,"key",s.create({type:"string"},t)),a(this,"value",s.create({type:"string"},t))),e.key&&i(this,"key",function(){return s.create(e.key,t)}),e.value&&i(this,"value",function(){return s.create(e.value,t)})}function m(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)a(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)a(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)a(this,"timestampFormat","rfc822");else if("querystring"===this.location)a(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":a(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":a(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?g.date.parseTimestamp(e):null},this.toWireFormat=function(e){return g.date.format(e,t.timestampFormat)}}function c(){s.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function l(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function d(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function y(){s.apply(this,arguments),this.toType=g.base64.decode,this.toWireFormat=g.base64.encode}function b(){y.apply(this,arguments)}function h(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var S=e("./collection"),g=e("../util");s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:n,list:u,map:p,boolean:h,timestamp:m,float:l,integer:d,string:c,base64:b,binary:y},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var a=s.resolve(e,t);if(a){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){a.constructor.call(this,e,t,r)};return o.prototype=a,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var n=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+n)},s.shapes={StructureShape:n,ListShape:u,MapShape:p,StringShape:c,BooleanShape:h,Base64Shape:b},t.exports=s},{"../util":329,"./collection":284}],289:[function(e,t,r){var a=e("./core");a.ParamValidator=a.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,a.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(a.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var a,i=0;e.required&&i<e.required.length;i++){a=e.required[i];var s=t[a];void 0!==s&&null!==s||this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+r)}for(a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=t[a],n=e.members[a];if(void 0!==n){var u=[r,a].join(".");this.validateMember(n,o,u)}else this.fail("UnexpectedParameter","Unexpected key '"+a+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var a=0;a<t.length;a++)this.validateMember(e.member,t[a],r+"["+a+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var a=0;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(this.validateMember(e.key,i,r+"[key='"+i+"']"),this.validateMember(e.value,t[i],r+"['"+i+"']"),a++);this.validateRange(e,a,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var a=["string"];e.isJsonValue&&(a=a.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,a)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r))},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,a){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+a+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+a+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var s=!1,o=0;o<r.length;o++){if("string"==typeof r[o]){if(typeof e===r[o])return!0}else if(r[o]instanceof RegExp){if((e||"").toString().match(r[o]))return!0}else{if(e instanceof r[o])return!0;if(a.util.isType(e,r[o]))return!0;i||s||(r=r.slice()),r[o]=a.util.typeName(r[o])}s=!0}var n=i;n||(n=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=n.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+n),!1},validateNumber:function(e,t,r){if(null!==t&&void 0!==t){if("string"==typeof t){var a=parseFloat(t);a.toString()===t&&(t=a)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!==e&&void 0!==e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(a.util.isNode()){var r=a.util.stream.Stream;if(a.util.Buffer.isBuffer(e)||e instanceof r)return}var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var s=0;s<i.length;s++){if(a.util.isType(e,i[s]))return;if(a.util.typeName(e.constructor)===i[s])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},{"./core":258}],290:[function(e,t,r){var a=e("../core"),i=a.Protocol.Rest;a.Polly.Presigner=a.util.inherit({constructor:function(e){e=e||{},this.options=e,this.service=e.service,this.bindServiceObject(e),this._operations={}},bindServiceObject:function(e){if(e=e||{},this.service){var t=a.util.copy(this.service.config);this.service=new this.service.constructor.__super__(t),this.service.config.params=a.util.merge(this.service.config.params||{},e.params)}else this.service=new a.Polly(e)},modifyInputMembers:function(e){var t=a.util.copy(e);return t.members=a.util.copy(e.members),a.util.each(e.members,function(e,r){t.members[e]=a.util.copy(r),r.location&&"body"!==r.location||(t.members[e].location="querystring",t.members[e].locationName=e)}),t},convertPostToGet:function(e){e.httpRequest.method="GET";var t=e.service.api.operations[e.operation],r=this._operations[e.operation];r||(this._operations[e.operation]=r=this.modifyInputMembers(t.input));var a=i.generateURI(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=a,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},getSynthesizeSpeechUrl:function(e,t,r){var a=this,i=this.service.makeRequest("synthesizeSpeech",e);return i.removeAllListeners("build"),i.on("build",function(e){a.convertPostToGet(e)}),i.presign(t,r)}})},{"../core":258}],291:[function(e,t,r){function a(e){var t=e.httpRequest,r=e.service.api,a=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new n;1===i&&(i="1.0"),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=a}function i(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var a=JSON.parse(r.body.toString());(a.__type||a.code)&&(t.code=(a.__type||a.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=a.message||a.Message||null}catch(a){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=o.error(new Error,t)}function s(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],a=r.output||{},i=new u;e.data=i.parse(t,a)}}var o=e("../util"),n=e("../json/builder"),u=e("../json/parser");t.exports={buildRequest:a,extractError:i,extractData:s}},{"../json/builder":281,"../json/parser":282,"../util":329}],292:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new u).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=n.queryParamsToString(r.params)}function i(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new o.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=n.error(new Error,{code:t.Code,message:t.Message}):e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}function s(e){var t=e.request,r=t.service.api.operations[t.operation],a=r.output||{},i=a;if(i.resultWrapper){var s=p.create({type:"structure"});s.members[i.resultWrapper]=a,s.memberNames=[i.resultWrapper],n.property(a,"name",a.resultWrapper),a=s}var u=new o.XML.Parser;if(a&&a.members&&!a.members._XAMZRequestId){var m=p.create({type:"string"},{api:{protocol:"query"}},"requestId");a.members._XAMZRequestId=m}var c=u.parse(e.httpResponse.body.toString(),a);e.requestId=c._XAMZRequestId||c.requestId,c._XAMZRequestId&&delete c._XAMZRequestId,i.resultWrapper&&c[i.resultWrapper]&&(n.update(c,c[i.resultWrapper]),delete c[i.resultWrapper]),e.data=c}var o=e("../core"),n=e("../util"),u=e("../query/query_param_serializer"),p=e("../model/shape");t.exports={buildRequest:a,extractError:i,extractData:s}},{"../core":258,"../model/shape":288,"../query/query_param_serializer":296,"../util":329}],293:[function(e,t,r){function a(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function i(e,t,r,a){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var s={},o=!1;if(m.each(r.members,function(e,t){var r=a[e];if(null!==r&&void 0!==r)if("uri"===t.location){var n=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(n,function(e,t){return(t?m.uriEscapePath:m.uriEscape)(String(r))})}else"querystring"===t.location&&(o=!0,"list"===t.type?s[t.name]=r.map(function(e){return m.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?m.each(r,function(e,t){Array.isArray(t)?s[e]=t.map(function(e){return m.uriEscape(String(e))}):s[e]=m.uriEscape(String(t))}):s[t.name]=m.uriEscape(t.toWireFormat(r).toString()))}),o){i+=i.indexOf("?")>=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)n.push(m.uriEscape(String(e))+"="+s[e][t])}),i+=n.join("&")}return i}function s(e){var t=e.service.api.operations[e.operation],r=t.input,a=i(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=a}function o(e){var t=e.service.api.operations[e.operation];m.each(t.input.members,function(t,r){var a=e.params[t];null!==a&&void 0!==a&&("headers"===r.location&&"map"===r.type?m.each(a,function(t,a){e.httpRequest.headers[r.name+t]=a}):"header"===r.location&&(a=r.toWireFormat(a).toString(),r.isJsonValue&&(a=m.base64.encode(a)),e.httpRequest.headers[r.name]=a))})}function n(e){a(e),s(e),o(e)}function u(){}function p(e){var t=e.request,r={},a=e.httpResponse,i=t.service.api.operations[t.operation],s=i.output,o={};m.each(a.headers,function(e,t){o[e.toLowerCase()]=t}),m.each(s.members,function(e,t){var i=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var s=t.isLocationName?t.name:"",n=new RegExp("^"+s+"(.+)","i");m.each(a.headers,function(t,a){var i=t.match(n);null!==i&&(r[e][i[1]]=a)})}else if("header"===t.location){if(void 0!==o[i]){var u=t.isJsonValue?m.base64.decode(o[i]):o[i];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(a.statusCode,10))}),e.data=r}var m=e("../util");t.exports={buildRequest:n,extractError:u,extractData:p,generateURI:i}},{"../util":329}],294:[function(e,t,r){function a(e){var t=new c,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},s=r.members[r.payload];if(void 0===(a=e.params[r.payload]))return;"structure"===s.type?(e.httpRequest.body=t.build(a,s),i(e)):(e.httpRequest.body=a,("binary"===s.type||s.isStreaming)&&i(e,!0))}else e.httpRequest.body=t.build(e.params,r),i(e)}function i(e,t){var r=e.service.api.operations[e.operation];r.input;if(!e.httpRequest.headers["Content-Type"]){
52
52
  var a=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=a}}function s(e){p.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&a(e)}function o(e){m.extractError(e)}function n(e){p.extractData(e);var t,r=e.request,a=r.service.api.operations[r.operation],i=r.service.api.operations[r.operation].output||{};a.hasEventOutput;if(i.payload){var s=i.members[i.payload],o=e.httpResponse.body;if(s.isEventStream)t=new l,e.data[payload]=u.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new l;e.data[i.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[i.payload]=o:e.data[i.payload]=s.toType(o)}else{var n=e.data;m.extractData(e),e.data=u.merge(n,e.data)}}var u=e("../util"),p=e("./rest"),m=e("./json"),c=e("../json/builder"),l=e("../json/parser");t.exports={buildRequest:s,extractError:o,extractData:n}},{"../json/builder":281,"../json/parser":282,"../util":329,"./json":291,"./rest":293}],295:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,a=e.params,i=t.payload;if(i){var s=t.members[i];if(void 0===(a=a[i]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(a,s,o,!0)}else e.httpRequest.body=a}else e.httpRequest.body=r.toXML(a,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function i(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&a(e)}function s(e){p.extractError(e);var t;try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){p.extractData(e);var t,r=e.request,a=e.httpResponse.body,i=r.service.api.operations[r.operation],s=i.output,o=(i.hasEventOutput,s.payload);if(o){var m=s.members[o];m.isEventStream?(t=new n.XML.Parser,e.data[o]=u.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,m)):"structure"===m.type?(t=new n.XML.Parser,e.data[o]=t.parse(a.toString(),m)):"binary"===m.type||m.isStreaming?e.data[o]=a:e.data[o]=m.toType(a)}else if(a.length>0){t=new n.XML.Parser;var c=t.parse(a.toString(),s);u.update(e.data,c)}}var n=e("../core"),u=e("../util"),p=e("./rest");t.exports={buildRequest:i,extractError:s,extractData:o}},{"../core":258,"../util":329,"./rest":293}],296:[function(e,t,r){function a(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,a){p.each(r.members,function(r,s){var o=t[r];if(null!==o&&void 0!==o){var n=i(s);n=e?e+"."+n:n,u(n,o,s,a)}})}function o(e,t,r,a){var i=1;p.each(t,function(t,s){var o=r.flattened?".":".entry.",n=o+i+++".",p=n+(r.key.name||"key"),m=n+(r.value.name||"value");u(e+p,t,r.key,a),u(e+m,s,r.value,a)})}function n(e,t,r,a){var s=r.member||{};if(0===t.length)return void a.call(this,e,null);p.arrayEach(t,function(t,o){var n="."+(o+1);if("ec2"===r.api.protocol)n+="";else if(r.flattened){if(s.name){var p=e.split(".");p.pop(),p.push(i(s)),e=p.join(".")}}else n="."+(s.name?s.name:"member")+n;u(e+n,t,s,a)})}function u(e,t,r,a){null!==t&&void 0!==t&&("structure"===r.type?s(e,t,r,a):"list"===r.type?n(e,t,r,a):"map"===r.type?o(e,t,r,a):a(e,r.toWireFormat(t).toString()))}var p=e("../util");a.prototype.serialize=function(e,t,r){s("",e,t,r)},t.exports=a},{"../util":329}],297:[function(e,t,r){var a=e("../core"),i=null,s={signatureVersion:"v4",signingName:"rds-db"},o={region:"string",hostname:"string",port:"number",username:"string"};a.RDS.Signer=a.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){if(0===e.indexOf("https://"))return e.substring("https://".length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=a.util.merge(this.options,e);var n=this.validateAuthTokenOptions(e);if(!0!==n){if(o)return t(n,null);throw n}var u={region:e.region,endpoint:new a.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),i=new a.Service(u),i.api=s;var p=i.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var m=p.presign(900);return this.convertUrlToAuthToken(m)}p.presign(900,function(e,a){a&&(a=r.convertUrlToAuthToken(a)),t(e,a)})},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=a.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";e=e||{};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||a.util.error(new Error,{code:"InvalidParameter",message:t})}})},{"../core":258}],298:[function(e,t,r){function a(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function i(e){var t=e.config.region,r=a(t),i=e.api.endpointPrefix;return[[t,i],[r,i],[t,"*"],[r,"*"],["*",i],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function s(e,t){n.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}function o(e){for(var t=i(e),r=0;r<t.length;r++){var a=t[r];if(a&&Object.prototype.hasOwnProperty.call(u.rules,a)){var o=u.rules[a];return"string"==typeof o&&(o=u.patterns[o]),e.config.useDualstack&&n.isDualstackAvailable(e)&&(o=n.copy(o),o.endpoint="{service}.dualstack.{region}.amazonaws.com"),e.isGlobalEndpoint=!!o.globalEndpoint,o.signatureVersion||(o.signatureVersion="v4"),void s(e,o)}}}var n=e("./util"),u=e("./region_config_data.json");t.exports=o},{"./region_config_data.json":299,"./util":329}],299:[function(e,t,r){t.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:!0},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},{}],300:[function(e,t,r){(function(t){function r(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var a=e("./core"),i=e("./state_machine"),s=a.util.inherit,o=a.util.domain,n=e("jmespath"),u={success:1,error:1,complete:1},p=new i;p.setupStates=function(){var e=function(e,t){var a=this;a._haltHandlersOnError=!1,a.emit(a._asm.currentState,function(e){if(e)if(r(a)){if(!(o&&a.domain instanceof o.Domain))throw e;e.domainEmitter=a,e.domain=a.domain,e.domainThrown=!1,a.domain.emit("error",e)}else a.response.error=e,t(e);else t(a.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},p.setupStates(),a.Request=s({constructor:function(e,t,r){var s=e.endpoint,n=e.config.region,u=e.config.customUserAgent;e.isGlobalEndpoint&&(n="us-east-1"),this.domain=o&&o.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new a.HttpRequest(s,n),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new a.Response(this),this._asm=new i(p.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.error=a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){function t(r){e.call(r,r.error,r.data,function(i){!1!==i&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,a.util.fn.noop))})}e=a.util.fn.makeAsync(e,3),this.on("complete",t).send()},eachItem:function(e){function t(t,i){if(t)return e(t,null);if(null===i)return e(null,null);var s=r.service.paginationConfig(r.operation),o=s.resultKey;Array.isArray(o)&&(o=o[0]);var u=n.search(i,o),p=!0;return a.util.arrayEach(u,function(t){if(!1===(p=e(null,t)))return a.util.abort}),p}var r=this;this.eachPage(t)},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=a.util.stream,r=this,i=null;return 2===a.HttpClient.streamsApiVersion?(i=new e.PassThrough,t.nextTick(function(){r.send()})):(i=new e.Stream,i.readable=!0,i.sent=!1,i.on("newListener",function(e){i.sent||"data"!==e||(i.sent=!0,t.nextTick(function(){r.send()}))})),this.on("error",function(e){i.emit("error",e)}),this.on("httpHeaders",function(t,s,o){if(t<300){r.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),r.on("httpError",function(e){o.error=e,o.error.retryable=!1});var n,u=!1;if("HEAD"!==r.httpRequest.method&&(n=parseInt(s["content-length"],10)),void 0!==n&&!isNaN(n)&&n>=0){u=!0;var p=0}var m=function(){u&&p!==n?i.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+p+" of "+n+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?i.end():i.emit("end")},c=o.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(u){var l=new e.PassThrough;l._write=function(t){return t&&t.length&&(p+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},l.on("end",m),i.on("error",function(e){u=!1,c.unpipe(l),l.emit("end"),l.end()}),c.pipe(l).pipe(i,{end:!1})}else c.pipe(i);else u&&c.on("data",function(e){e&&e.length&&(p+=e.length)}),c.on("data",function(e){i.emit("data",e)}),c.on("end",m);c.on("error",function(e){u=!1,i.emit("error",e)})}}),i},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),a.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new a.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)}).call(this,e("_process"))},{"./core":258,"./state_machine":328,_process:344,jmespath:343}],301:[function(e,t,r){function a(e){var t=e.request._waiter,r=t.config.acceptors,a=!1,i="retry";r.forEach(function(r){if(!a){var s=t.matchers[r.matcher];s&&s(e,r.expected,r.argument)&&(a=!0,i=r.state)}}),!a&&e.error&&(i="failure"),"success"===i?t.setSuccess(e):t.setError(e,"retry"===i)}var i=e("./core"),s=i.util.inherit,o=e("jmespath");i.ResourceWaiter=s({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var a=o.search(e.data,r)}catch(e){return!1}return o.strictDeepEqual(a,t)},pathAll:function(e,t,r){try{var a=o.search(e.data,r)}catch(e){return!1}Array.isArray(a)||(a=[a]);var i=a.length;if(!i)return!1;for(var s=0;s<i;s++)if(!o.strictDeepEqual(a[s],t))return!1;return!0},pathAny:function(e,t,r){try{var a=o.search(e.data,r)}catch(e){return!1}Array.isArray(a)||(a=[a]);for(var i=a.length,s=0;s<i;s++)if(o.strictDeepEqual(a[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new i.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))}),e("CHECK_OUTPUT","extractData",a),e("CHECK_ERROR","extractError",a)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&(e=i.util.copy(e),"number"==typeof e.$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=i.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new i.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=i.util.copy(this.service.api.waiters[e])}})},{"./core":258,jmespath:343}],302:[function(e,t,r){var a=e("./core"),i=a.util.inherit,s=e("jmespath");a.Response=i({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,i=this.request.operation;try{t=r.paginationConfig(i,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var s=a.util.copy(this.request.params);if(this.nextPageTokens){var o=t.inputToken;"string"==typeof o&&(o=[o]);for(var n=0;n<o.length;n++)s[o[n]]=this.nextPageTokens[n];return r.makeRequest(this.request.operation,s,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!s.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),a.util.arrayEach.call(this,t,function(e){var t=s.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},{"./core":258,jmespath:343}],303:[function(e,t,r){var a=e("../core"),i=a.util.string.byteLength,s=a.util.Buffer;a.S3.ManagedUpload=a.util.inherit({constructor:function(e){var t=this;a.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize<this.minPartSize)throw new Error("partSize must be greater than "+this.minPartSize);this.service=e.service,this.bindServiceObject(e.params),this.validateBody(),this.adjustTotalBytes()},leavePartsOnError:!1,queueSize:4,partSize:null,minPartSize:5242880,maxTotalParts:1e4,send:function(e){var t=this;t.failed=!1,t.callback=e||function(e){if(e)throw e};var r=!0;if(t.sliceFn)t.fillQueue=t.fillBuffer;else if(a.util.isNode()){var i=a.util.stream.Stream;t.body instanceof i&&(r=!1,t.fillQueue=t.fillStream,t.partBuffers=[],t.body.on("error",function(e){t.cleanup(e)}).on("readable",function(){t.fillQueue()}).on("end",function(){t.isDoneChunking=!0,t.numParts=t.totalPartNumbers,t.fillQueue.call(t),t.isDoneChunking&&t.totalPartNumbers>=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){this.cleanup(a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"==typeof e.body)e.body=new a.util.Buffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=a.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,i=a.util.copy(r.config);i.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(i),t.service.config.params=a.util.merge(t.service.config.params||{},e)}else t.service=new a.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=i(e.body)}catch(e){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=i(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts<e.queueSize&&e.partPos<t;){var r=Math.min(e.partPos+e.partSize,t),a=e.sliceFn.call(e.body,e.partPos,r);e.partPos+=e.partSize,(i(a)<e.partSize||e.partPos===t)&&(e.isDoneChunking=!0,e.numParts=e.totalPartNumbers+1),e.nextChunk(a)}},fillStream:function(){var e=this;if(!(e.activeParts>=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var a=r.slice(e.partSize);e.partBuffers.push(a),e.partBufferLength+=a.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var i={Body:e};this.tags&&(i.Tagging=this.getTaggingHeader());var s=t.service.putObject(i);return s._managedUpload=t,s.on("httpUploadProgress",t.progress).send(t.finishSinglePart),null}if(t.service.config.params.ContentMD5){var o=a.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null}),t.queueChunks(e,r),t.multipartReq.on("error",function(e){t.cleanup(e)}),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t<this.tags.length;t++)e.push(a.util.uriEscape(this.tags[t].Key)+"="+a.util.uriEscape(this.tags[t].Value));return e.join("&")},uploadPart:function(e,t){var r=this,i={Body:e,ContentLength:a.util.string.byteLength(e),PartNumber:t},s={ETag:null,PartNumber:t};r.completeInfo[t]=s;var o=r.service.uploadPart(i);r.parts[t]=o,o._lastUploadedBytes=0,o._managedUpload=r,o.on("httpUploadProgress",r.progress),o.send(function(e,t){if(delete r.parts[i.PartNumber],r.activeParts--,!(e||t&&t.ETag)){var o="No access to ETag property on response.";a.util.isBrowser()&&(o+=" Check CORS configuration to expose ETag header."),e=a.util.error(new Error(o),{code:"ETagMissing",retryable:!1})}if(e)return r.cleanup(e);s.ETag=t.ETag,r.doneParts++,r.isDoneChunking&&r.doneParts===r.numParts?r.finishMultiPart():r.fillQueue.call(r)})},queueChunks:function(e,t){var r=this;r.multipartReq.on("success",function(){r.uploadPart(e,t)})},cleanup:function(e){var t=this;t.failed||("function"==typeof t.body.removeAllListeners&&"function"==typeof t.body.resume&&(t.body.removeAllListeners("readable"),t.body.removeAllListeners("end"),t.body.resume()),t.multipartReq&&(t.multipartReq.removeAllListeners("success"),t.multipartReq.removeAllListeners("error"),t.multipartReq.removeAllListeners("complete"),delete t.multipartReq),t.service.config.params.UploadId&&!t.leavePartsOnError?t.service.abortMultipartUpload().send():t.leavePartsOnError&&(t.isDoneChunking=!1),a.util.each(t.parts,function(e,t){t.removeAllListeners("complete"),t.abort()}),t.activeParts=0,t.partPos=0,t.numParts=0,t.totalPartNumbers=0,t.parts={},t.failed=!0,t.callback(e))},finishMultiPart:function(){var e=this,t={MultipartUpload:{Parts:e.completeInfo.slice(1)}};e.service.completeMultipartUpload(t,function(t,r){if(t)return e.cleanup(t);r&&"string"==typeof r.Location&&(r.Location=r.Location.replace(/%2F/g,"/")),Array.isArray(e.tags)?e.service.putObjectTagging({Tagging:{TagSet:e.tags}},function(t,a){t?e.callback(t):e.callback(t,r)}):e.callback(t,r)})},finishSinglePart:function(e,t){var r=this.request._managedUpload,a=this.request.httpRequest,i=a.endpoint;if(e)return r.callback(e);t.Location=[i.protocol,"//",i.host,a.path].join(""),t.key=this.request.params.Key,t.Key=this.request.params.Key,t.Bucket=this.request.params.Bucket,r.callback(e,t)},progress:function(e){var t=this._managedUpload;"putObject"===this.operation?(e.part=1,e.key=this.params.Key):(t.totalUploadedBytes+=e.loaded-this._lastUploadedBytes,this._lastUploadedBytes=e.loaded,e={loaded:t.totalUploadedBytes,total:t.totalBytes,part:this.params.PartNumber,key:this.params.Key}),t.emit("httpUploadProgress",[e])}}),a.util.mixin(a.S3.ManagedUpload,a.SequentialExecutor),a.S3.ManagedUpload.addPromisesToClass=function(e){this.prototype.promise=a.util.promisifyMethod("send",e)},a.S3.ManagedUpload.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.S3.ManagedUpload),t.exports=a.S3.ManagedUpload},{"../core":258}],304:[function(e,t,r){var a=e("./core");a.SequentialExecutor=a.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var a=r.length,i=-1,s=0;s<a;++s)r[s]===t&&(i=s);i>-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var a=this.listeners(e),i=a.length;return this.callListeners(a,t,r),i>0},callListeners:function(e,t,r,i){function s(i){if(i&&(n=a.util.error(n||new Error,i),o._haltHandlersOnError))return r.call(o,n);o.callListeners(e,t,r,n)}for(var o=this,n=i||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){n=a.util.error(n||new Error,e)}if(n&&o._haltHandlersOnError)return void r.call(o,n)}r.call(o,n)},addListeners:function(e){var t=this;return e._events&&(e=e._events),a.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),a.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,t.exports=a.SequentialExecutor},{"./core":258}],305:[function(e,t,r){var a=e("./core"),i=e("./model/api"),s=e("./region_config"),o=a.util.inherit,n=0;a.Service=o({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=a.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++n,i}this.initialize(e)},initialize:function(e){var t=a.config[this.serviceIdentifier];this.config=new a.Config(a.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||s(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint)},validateService:function(){},loadServiceClass:function(e){var t=e;if(a.util.isEmpty(this.api)){if(t.apiConfig)return a.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new a.Config(a.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&a.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?a.util.isType(e,Date)&&(e=a.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=a.util.copy(t),a.util.each(this.config.params,function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var s=new a.Request(this,e,t);return this.addAllRequestListeners(s),r&&s.send(r),s},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var a=this.makeRequest(e,t).toUnauthenticated();return r?a.send(r):a},waitFor:function(e,t,r){return new a.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(a.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},setupRequestListeners:function(){},getSignerClass:function(e){var t,r=null,i="";if(e){r=(e.service.api.operations||{})[e.operation]||null,i=r?r.authtype:""}return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":this.api.signatureVersion,a.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return a.EventListeners.Query;case"json":return a.EventListeners.Json;case"rest-json":return a.EventListeners.RestJson;case"rest-xml":return a.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e4},throttledError:function(e){switch(e.code){
53
53
  case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,this.config.region),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new a.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw a.util.error(i,"No pagination configuration for "+e)}return null}return r}}),a.util.update(a.Service,{defineMethods:function(e){a.util.each(e.prototype.api.operations,function(t){if(!e.prototype[t]){"none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function(e,t,r){a.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=o(a.Service,r||{});if("string"==typeof e){a.Service.addVersions(i,t);var s=i.serviceIdentifier||e;i.serviceIdentifier=s}else i.prototype.api=e,a.Service.defineMethods(i);return i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){function s(e){e.isApi?n.prototype.api=e:n.prototype.api=new i(e)}var n=o(e,{serviceIdentifier:e.serviceIdentifier});if("string"==typeof t){if(r)s(r);else try{s(a.apiLoader(e.serviceIdentifier,t))}catch(r){throw a.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=n}else s(t);return a.Service.defineMethods(n),n},hasService:function(e){return Object.prototype.hasOwnProperty.call(a.Service._serviceMap,e)},_serviceMap:{}}),t.exports=a.Service},{"./core":258,"./model/api":283,"./region_config":298}],306:[function(e,t,r){var a=e("../core");a.util.update(a.APIGateway.prototype,{setAcceptHeader:function(e){var t=e.httpRequest;t.headers.Accept||(t.headers.Accept="application/json")},setupRequestListeners:function(e){if(e.addListener("build",this.setAcceptHeader),"getExport"===e.operation){"swagger"===(e.params||{}).exportType&&e.addListener("extractData",a.util.convertPayloadToString)}}})},{"../core":258}],307:[function(e,t,r){var a=e("../core");e("../cloudfront/signer"),a.util.update(a.CloudFront.prototype,{setupRequestListeners:function(e){e.addListener("extractData",a.util.hoistPayloadMember)}})},{"../cloudfront/signer":256,"../core":258}],308:[function(e,t,r){var a=e("../core");a.util.update(a.CognitoIdentity.prototype,{getOpenIdToken:function(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},{"../core":258}],309:[function(e,t,r){var a=e("../core");e("../dynamodb/document_client"),a.util.update(a.DynamoDB.prototype,{setupRequestListeners:function(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",a.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",a.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.data=null,e.error=a.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function(e){var t=e.httpResponse.headers["x-amz-crc32"];return!t||parseInt(t,10)===a.util.crypto.crc32(e.httpResponse.body)},defaultRetryCount:10,retryDelays:function(e){var t=a.util.copy(this.config.retryDelayOptions);return"number"!=typeof t.base&&(t.base=50),a.util.calculateRetryDelay(e,t)}})},{"../core":258,"../dynamodb/document_client":266}],310:[function(e,t,r){var a=e("../core");a.util.update(a.EC2.prototype,{setupRequestListeners:function(e){e.removeListener("extractError",a.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=a.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var r=a.util.copy(e.service.config);delete r.endpoint,r.region=e.params.SourceRegion;var i=new e.service.constructor(r),s=i[e.operation](e.params);s._subRequest=!0,s.presign(function(r,a){r?t(r):(e.params.PresignedUrl=a,t())})},extractError:function(e){var t=e.httpResponse,r=(new a.XML.Parser).parse(t.body.toString()||"");r.Errors?e.error=a.util.error(new Error,{code:r.Errors.Error.Code,message:r.Errors.Error.Message}):e.error=a.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=r.RequestID||null}})},{"../core":258}],311:[function(e,t,r){var a=e("../core"),i=["deleteThingShadow","getThingShadow","updateThingShadow"];a.util.update(a.IotData.prototype,{validateService:function(){if(!this.config.endpoint||this.config.endpoint.indexOf("{")>=0){throw a.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})}},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),i.indexOf(e.operation)>-1&&e.addListener("extractData",a.util.convertPayloadToString)},validateResponseBody:function(e){var t=e.httpResponse.body.toString()||"{}",r=t.trim();r&&"{"===r.charAt(0)||(e.httpResponse.body="")}})},{"../core":258}],312:[function(e,t,r){var a=e("../core");a.util.update(a.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",a.util.convertPayloadToString)}})},{"../core":258}],313:[function(e,t,r){var a=e("../core");a.util.update(a.MachineLearning.prototype,{setupRequestListeners:function(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new a.Endpoint(t))}})},{"../core":258}],314:[function(e,t,r){e("../polly/presigner")},{"../polly/presigner":290}],315:[function(e,t,r){var a=e("../core");e("../rds/signer");var i=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot"];a.util.update(a.RDS.prototype,{setupRequestListeners:function(e){if(-1!==i.indexOf(e.operation)&&e.params.SourceRegion)if(e.params=a.util.copy(e.params),e.params.PreSignedUrl||e.params.SourceRegion===this.config.region)delete e.params.SourceRegion;else{var t=!!this.config.paramValidation;t&&e.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),e.onAsync("validate",this.buildCrossRegionPresignedUrl),t&&e.addListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var r=a.util.copy(e.service.config);r.region=e.params.SourceRegion,delete e.params.SourceRegion,delete r.endpoint,delete r.params,r.signatureVersion="v4";var i=e.service.config.region,s=new e.service.constructor(r),o=s[e.operation](a.util.copy(e.params));o.on("build",function(e){var t=e.httpRequest;t.params.DestinationRegion=i,t.body=a.util.queryParamsToString(t.params)}),o.presign(function(r,a){r?t(r):(e.params.PreSignedUrl=a,t())})}})},{"../core":258,"../rds/signer":297}],316:[function(e,t,r){var a=e("../core");a.util.update(a.Route53.prototype,{setupRequestListeners:function(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")},retryableError:function(e){return"PriorRequestNotComplete"===e.code&&400===e.statusCode||a.Service.prototype.retryableError.call(this,e)}})},{"../core":258}],317:[function(e,t,r){var a=e("../core"),i=e("../signers/v4_credentials");e("../s3/managed_upload");var s={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},o=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301];a.util.update(a.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,r=this._originalConfig?this._originalConfig.signatureVersion:null,a=this.config.signatureVersion,i=!!e&&e.isPresigned();return r?r="v2"===r?"s3":r:(!0!==i?t="v4":a&&(t=a),t)},getSignerClass:function(e){var t=this.getSignatureVersion(e);return a.Signers.RequestSigner.getVersion(t)},validateService:function(){var e,t=[];if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint&&t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."),1===t.length?e=t[0]:t.length>1&&(e="Multiple configuration errors:\n"+t.join("\n")),e)throw a.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===a.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.addListener("validate",this.validateBucketName),e.addListener("build",this.addContentType),e.addListener("build",this.populateURI),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("afterBuild",this.addExpect100Continue),e.removeListener("validate",a.EventListeners.Core.VALIDATE_REGION),e.addListener("extractError",this.extractError),e.onAsync("extractError",this.requestBucketRegion),e.addListener("extractData",this.extractData),e.addListener("extractData",a.util.hoistPayloadMember),e.addListener("beforePresign",this.prepareSignedUrl),a.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning))},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==r)throw a.util.error(new Error,{code:"ConfigError",message:"Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration"})},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint){throw a.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})}},validateBucketName:function(e){if("v4"===e.service.getSignatureVersion(e)){var t=e.params&&e.params.Bucket,r=e.params&&e.params.Key,i=t&&t.indexOf("/");if(t&&i>=0){if("string"!=typeof r){var s="Bucket names cannot contain forward slashes. Bucket: "+t;throw a.util.error(new Error,{code:"InvalidBucket",message:s})}e.params=a.util.copy(e.params);var o=t.substr(i+1)||"";e.params.Key=o+"/"+r,e.params.Bucket=t.substr(0,i)}}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},populateURI:function(e){var t=e.httpRequest,r=e.params.Bucket,a=e.service,i=t.endpoint;if(r&&!a.pathStyleBucketName(r)){a.config.useAccelerateEndpoint&&a.isValidAccelerateOperation(e.operation)?a.config.useDualstack?i.hostname=r+".s3-accelerate.dualstack.amazonaws.com":i.hostname=r+".s3-accelerate.amazonaws.com":a.config.s3BucketEndpoint||(i.hostname=r+"."+i.hostname);var s=i.port;i.host=80!==s&&443!==s?i.hostname+":"+i.port:i.hostname,t.virtualHostedBucket=r,a.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,r=t.virtualHostedBucket;r&&t.path&&(t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path))},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];a.util.isNode()&&t>=1048576&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function(e){var t=e.httpRequest;if("GET"===t.method||"HEAD"===t.method)return void delete t.headers["Content-Type"];t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];if(a.util.isBrowser())if("string"!=typeof t.body||r.match(/;\s*charset=/)){var i=function(e,t,r){return t+r.toUpperCase()};t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,i)}else{t.headers["Content-Type"]+="; charset=UTF-8"}},computableChecksumOperations:{putBucketCors:!0,putBucketLifecycle:!0,putBucketLifecycleConfiguration:!0,putBucketTagging:!0,deleteObjects:!0,putBucketReplication:!0},willComputeChecksums:function(e){if(this.computableChecksumOperations[e.operation])return!0;if(!this.config.computeChecksums)return!1;if(!a.util.Buffer.isBuffer(e.httpRequest.body)&&"string"!=typeof e.httpRequest.body)return!1;var t=e.service.api.operations[e.operation].input.members;return!(!e.service.shouldDisableBodySigning(e)||Object.prototype.hasOwnProperty.call(e.httpRequest.headers,"presigned-expires")||!t.ContentMD5||e.params.ContentMD5)||!(e.service.getSignerClass(e)===a.Signers.V4&&t.ContentMD5&&!t.ContentMD5.required)&&(!(!t.ContentMD5||e.params.ContentMD5)||void 0)},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=a.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){var t={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};a.util.each(t,function(t,r){if(e.params[t]){var i=a.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=i}})},pathStyleBucketName:function(e){return!!this.config.s3ForcePathStyle||!this.config.s3BucketEndpoint&&(!this.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},dnsCompatibleBucketName:function(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),a=new RegExp(/(\d+\.){3}\d+/),i=new RegExp(/\.\./);return!(!t.match(r)||t.match(a)||t.match(i))},successfulResponse:function(e){var t=e.request,r=e.httpResponse;return(!s[t.operation]||!r.body.toString().match("<Error>"))&&r.statusCode<300},retryableError:function(e,t){return!(!s[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=o.indexOf(e.code)&&e.region&&e.region!=t.httpRequest.region?(t.httpRequest.region=e.region,301===e.statusCode&&t.service.updateReqBucketRegion(t),!0):a.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var r=e.httpRequest;if("string"==typeof t&&t.length&&(r.region=t),r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var i=e.service,s=i.config,o=s.s3BucketEndpoint;o&&delete s.s3BucketEndpoint;var n=a.util.copy(s);delete n.endpoint,n.region=r.region,r.endpoint=new a.S3(n).endpoint,i.populateURI(e),s.s3BucketEndpoint=o,r.headers.Host=r.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",i.populateURI),e.addListener("build",i.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=r?r[1]:""}var a=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!=typeof a||e.error){var i=e.httpResponse.headers||{},s=i["x-amz-bucket-region"]||null;if(!s&&"createBucket"===t.operation&&!e.error){var o=t.params.CreateBucketConfiguration;s=o?"EU"===o.LocationConstraint?"eu-west-1":o.LocationConstraint:"us-east-1"}s&&a&&s!==t.service.bucketRegionCache[a]&&(t.service.bucketRegionCache[a]=s)}else t.service.clearBucketRegionCache(a);t.service.extractRequestIds(e)},extractError:function(e){var t={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},r=e.request,i=e.httpResponse.statusCode,s=e.httpResponse.body||"",o=e.httpResponse.headers||{},n=o["x-amz-bucket-region"]||null,u=r.params.Bucket||null,p=r.service.bucketRegionCache;n&&u&&n!==p[u]&&(p[u]=n);var m;if(t[i]&&0===s.length)u&&!n&&(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=a.util.error(new Error,{code:t[i],message:null,region:n});else{var c=(new a.XML.Parser).parse(s.toString());c.Region&&!n?(n=c.Region,u&&n!==p[u]&&(p[u]=n)):!u||n||c.Region||(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=a.util.error(new Error,{code:c.Code||i,message:c.Message||null,region:n})}r.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var r=e.error,i=e.request,s=i.params.Bucket||null;if(!r||!s||r.region||"listObjects"===i.operation||a.util.isNode()&&"headBucket"===i.operation||400===r.statusCode&&"headObject"!==i.operation||-1===o.indexOf(r.code))return t();var n=a.util.isNode()?"headBucket":"listObjects",u={Bucket:s};"listObjects"===n&&(u.MaxKeys=0);var p=i.service[n](u);p._requestRegionForBucket=s,p.send(function(){var e=i.service.bucketRegionCache[s]||null;r.region=e,t()})},reqRegionForNetworkingError:function(e,t){if(!a.util.isBrowser())return t();var r=e.error,i=e.request,s=i.params.Bucket;if(!r||"NetworkingError"!==r.code||!s||"us-east-1"===i.httpRequest.region)return t();var o=i.service,n=o.bucketRegionCache,u=n[s]||null;if(u&&u!==i.httpRequest.region)o.updateReqBucketRegion(i,u),t();else if(o.dnsCompatibleBucketName(s))if(i.httpRequest.virtualHostedBucket){var p=o.listObjects({Bucket:s,MaxKeys:0});o.updateReqBucketRegion(p,"us-east-1"),p._requestRegionForBucket=s,p.send(function(){var e=o.bucketRegionCache[s]||null;e&&e!==i.httpRequest.region&&o.updateReqBucketRegion(i,e),t()})}else t();else o.updateReqBucketRegion(i,"us-east-1"),"us-east-1"!==n[s]&&(n[s]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"==typeof e&&(e=[e]):e=Object.keys(t);for(var r=0;r<e.length;r++)delete t[e[r]];return t},correctBucketRegionFromCache:function(e){var t=e.params.Bucket||null;if(t){var r=e.service,a=e.httpRequest.region,i=r.bucketRegionCache[t];i&&i!==a&&r.updateReqBucketRegion(e,i)}},extractRequestIds:function(e){var t=e.httpResponse.headers?e.httpResponse.headers["x-amz-id-2"]:null,r=e.httpResponse.headers?e.httpResponse.headers["x-amz-cf-id"]:null;e.extendedRequestId=t,e.cfId=r,e.error&&(e.error.requestId=e.requestId||null,e.error.extendedRequestId=t,e.error.cfId=r)},getSignedUrl:function(e,t,r){t=a.util.copy(t||{});var i=t.Expires||900;delete t.Expires;var s=this.makeRequest(e,t);if(!r)return s.presign(i,r);a.util.defer(function(){s.presign(i,r)})},createPresignedPost:function(e,t){function r(){return{url:a.util.urlFormat(u),fields:o.preparePostFields(n.credentials,n.region,s,e.Fields,e.Conditions,e.Expires)}}"function"==typeof e&&void 0===t&&(t=e,e=null),e=a.util.copy(e||{});var i=this.config.params||{},s=e.Bucket||i.Bucket,o=this,n=this.config,u=a.util.copy(this.endpoint);if(n.s3BucketEndpoint||(u.pathname="/"+s),!t)return r();n.getCredentials(function(e){e&&t(e),t(null,r())})},preparePostFields:function(e,t,r,s,o,n){var u=this.getSkewCorrectedDate();if(!e||!t||!r)throw new Error("Unable to create a POST object policy without a bucket, region, and credentials");s=a.util.copy(s||{}),o=(o||[]).slice(0),n=n||3600;var p=a.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g,""),m=p.substr(0,8),c=i.createScope(m,t,"s3"),l=e.accessKeyId+"/"+c;s.bucket=r,s["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",s["X-Amz-Credential"]=l,s["X-Amz-Date"]=p,e.sessionToken&&(s["X-Amz-Security-Token"]=e.sessionToken);for(var d in s)if(s.hasOwnProperty(d)){var y={};y[d]=s[d],o.push(y)}return s.Policy=this.preparePostPolicy(new Date(u.valueOf()+1e3*n),o),s["X-Amz-Signature"]=a.util.crypto.hmac(i.getSigningKey(e,m,t,"s3",!0),s.Policy,"hex"),s},preparePostPolicy:function(e,t){return a.util.base64.encode(JSON.stringify({expiration:a.util.date.iso8601(e),conditions:t}))},prepareSignedUrl:function(e){e.addListener("validate",e.service.noPresignedContentLength),e.removeListener("build",e.service.addContentType),e.params.Body?e.addListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256):e.removeListener("build",e.service.computeContentMd5)},disableBodySigning:function(e){var t=e.httpRequest.headers;Object.prototype.hasOwnProperty.call(t,"presigned-expires")||(t["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD")},noPresignedContentLength:function(e){if(void 0!==e.params.ContentLength)throw a.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})},createBucket:function(e,t){return"function"!=typeof e&&e||(t=t||e,e={}),this.endpoint.hostname===this.api.globalEndpoint||e.CreateBucketConfiguration||(e.CreateBucketConfiguration={LocationConstraint:this.config.region}),this.makeRequest("createBucket",e,t)},upload:function(e,t,r){"function"==typeof t&&void 0===r&&(r=t,t=null),t=t||{},t=a.util.merge(t||{},{service:this,params:e});var i=new a.S3.ManagedUpload(t);return"function"==typeof r&&i.send(r),i}})},{"../core":258,"../s3/managed_upload":303,"../signers/v4_credentials":327}],318:[function(e,t,r){var a=e("../core");a.util.update(a.SQS.prototype,{setupRequestListeners:function(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,a=this.service.calculateChecksum(r);if(a!==t){var i='Got "'+e.data.MD5OfMessageBody+'", expecting "'+a+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],i)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,r={},i=[],s=[];a.util.arrayEach(e.data.Successful,function(e){r[e.Id]=e}),a.util.arrayEach(this.params.Entries,function(e){if(r[e.Id]){var a=r[e.Id].MD5OfMessageBody,o=e.MessageBody;t.isChecksumValid(a,o)||(i.push(e.Id),s.push(r[e.Id].MessageId))}}),i.length>0&&t.throwInvalidChecksumError(e,s,"Invalid messages: "+i.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,r=[];a.util.arrayEach(e.data.Messages,function(e){var a=e.MD5OfBody,i=e.Body;t.isChecksumValid(a,i)||r.push(e.MessageId)}),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function(e,t,r){e.error=a.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return a.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new a.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},{"../core":258}],319:[function(e,t,r){var a=e("../core");a.util.update(a.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new a.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)}})},{"../core":258}],320:[function(e,t,r){function a(e){var t=e.httpRequest.headers[n],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===s.Signers.V4){if(t>604800){throw s.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[n]=t}else{if(r!==s.Signers.S3)throw s.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var a=e.service?e.service.getSkewCorrectedDate():s.util.date.getDate();e.httpRequest.headers[n]=parseInt(s.util.date.unixTimestamp(a)+t,10).toString()}}function i(e){var t=e.httpRequest.endpoint,r=s.util.urlParse(e.httpRequest.path),a={};r.search&&(a=s.util.queryStringParse(r.search.substr(1)));var i=e.httpRequest.headers.Authorization.split(" ");if("AWS"===i[0])i=i[1].split(":"),a.AWSAccessKeyId=i[0],a.Signature=i[1],s.util.each(e.httpRequest.headers,function(e,t){e===n&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete a[e],e=e.toLowerCase()),a[e]=t}),delete e.httpRequest.headers[n],delete a.Authorization,delete a.Host;else if("AWS4-HMAC-SHA256"===i[0]){i.shift();var o=i.join(" "),u=o.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];a["X-Amz-Signature"]=u,delete a.Expires}t.pathname=r.pathname,t.search=s.util.queryParamsToString(a)}var s=e("../core"),o=s.util.inherit,n="presigned-expires";s.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[n]=t||3600,e.on("build",a),e.on("sign",i),e.removeListener("afterBuild",s.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",s.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return s.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,s.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=s.Signers.Presign},{"../core":258}],321:[function(e,t,r){var a=e("../core"),i=a.util.inherit;a.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),a.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return a.Signers.V2;case"v3":return a.Signers.V3;case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":258,"./presign":320,"./s3":322,"./v2":323,"./v3":324,"./v3https":325,"./v4":326}],322:[function(e,t,r){var a=e("../core"),i=a.util.inherit;a.Signers.S3=i(a.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),i="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=i},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];a.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return a.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],i=t[1],s="";if(e.virtualHostedBucket&&(s+="/"+e.virtualHostedBucket),s+=r,i){var o=[];a.util.arrayEach.call(this,i.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var a={name:t};void 0!==r&&(this.subResources[t]?a.value=r:a.value=decodeURIComponent(r)),o.push(a)}}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(i=[],a.util.arrayEach(o,function(e){void 0===e.value?i.push(e.name):i.push(e.name+"="+e.value)}),s+="?"+i.join("&"))}return s},sign:function(e,t){return a.util.crypto.hmac(e,t,"base64","sha1")}}),t.exports=a.Signers.S3},{"../core":258}],323:[function(e,t,r){var a=e("../core"),i=a.util.inherit;a.Signers.V2=i(a.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=a.util.date.getDate());var r=this.request;r.params.Timestamp=a.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=a.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(a.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=a.Signers.V2},{"../core":258}],324:[function(e,t,r){var a=e("../core"),i=a.util.inherit;a.Signers.V3=i(a.Signers.RequestSigner,{addAuthorization:function(e,t){var r=a.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return a.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return a.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return a.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),a.util.crypto.sha256(e.join("\n"))}}),t.exports=a.Signers.V3},{"../core":258}],325:[function(e,t,r){var a=e("../core"),i=a.util.inherit;e("./v3"),a.Signers.V3Https=i(a.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),t.exports=a.Signers.V3Https},{"../core":258,"./v3":324}],326:[function(e,t,r){var a=e("../core"),i=e("./v4_credentials"),s=a.util.inherit;a.Signers.V4=s(a.Signers.RequestSigner,{constructor:function(e,t,r){a.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=a.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.291.0',
23
+ VERSION: '2.292.0',
24
24
 
25
25
  /**
26
26
  * @api private
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.291.0",
4
+ "version": "2.292.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",