From 71ab76570252dc7c8e758ecb4e7bd489da3dccfb Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 20 Oct 2022 18:58:37 +0000 Subject: [PATCH] Updates SDK to v2.1237.0 --- .changes/2.1237.0.json | 27 + .../feature-AwsQueryCompatible-8c86192b.json | 5 - CHANGELOG.md | 9 +- README.md | 2 +- apis/devops-guru-2020-12-01.min.json | 265 +++--- apis/devops-guru-2020-12-01.normal.json | 59 +- apis/globalaccelerator-2018-08-08.min.json | 272 +++--- apis/globalaccelerator-2018-08-08.normal.json | 140 +++- apis/resiliencehub-2020-04-30.min.json | 3 +- apis/resiliencehub-2020-04-30.normal.json | 13 +- apis/rum-2018-05-10.min.json | 372 ++++++++- apis/rum-2018-05-10.normal.json | 779 +++++++++++++++++- apis/rum-2018-05-10.paginators.json | 12 + clients/devopsguru.d.ts | 30 +- clients/globalaccelerator.d.ts | 63 +- clients/resiliencehub.d.ts | 10 +- clients/rum.d.ts | 345 +++++++- dist/aws-sdk-core-react-native.js | 14 +- dist/aws-sdk-react-native.js | 24 +- dist/aws-sdk.js | 18 +- dist/aws-sdk.min.js | 20 +- lib/core.js | 2 +- package.json | 2 +- 23 files changed, 2160 insertions(+), 326 deletions(-) create mode 100644 .changes/2.1237.0.json delete mode 100644 .changes/next-release/feature-AwsQueryCompatible-8c86192b.json diff --git a/.changes/2.1237.0.json b/.changes/2.1237.0.json new file mode 100644 index 0000000000..d46e12c7ce --- /dev/null +++ b/.changes/2.1237.0.json @@ -0,0 +1,27 @@ +[ + { + "type": "feature", + "category": "AwsQueryCompatible", + "description": "Make AwsQueryCompatible translation only if trait is found" + }, + { + "type": "feature", + "category": "DevOpsGuru", + "description": "This release adds information about the resources DevOps Guru is analyzing." + }, + { + "type": "feature", + "category": "GlobalAccelerator", + "description": "Global Accelerator now supports AddEndpoints and RemoveEndpoints operations for standard endpoint groups." + }, + { + "type": "feature", + "category": "RUM", + "description": "CloudWatch RUM now supports Extended CloudWatch Metrics with Additional Dimensions" + }, + { + "type": "feature", + "category": "Resiliencehub", + "description": "In this release, we are introducing support for regional optimization for AWS Resilience Hub applications. It also includes a few documentation updates to improve clarity." + } +] \ No newline at end of file diff --git a/.changes/next-release/feature-AwsQueryCompatible-8c86192b.json b/.changes/next-release/feature-AwsQueryCompatible-8c86192b.json deleted file mode 100644 index ef23a4fc81..0000000000 --- a/.changes/next-release/feature-AwsQueryCompatible-8c86192b.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "type": "feature", - "category": "AwsQueryCompatible", - "description": "Make AwsQueryCompatible translation only if trait is found" -} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 794bb69010..23f1f90bc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Changelog for AWS SDK for JavaScript - + +## 2.1237.0 +* feature: AwsQueryCompatible: Make AwsQueryCompatible translation only if trait is found +* feature: DevOpsGuru: This release adds information about the resources DevOps Guru is analyzing. +* feature: GlobalAccelerator: Global Accelerator now supports AddEndpoints and RemoveEndpoints operations for standard endpoint groups. +* feature: RUM: CloudWatch RUM now supports Extended CloudWatch Metrics with Additional Dimensions +* feature: Resiliencehub: In this release, we are introducing support for regional optimization for AWS Resilience Hub applications. It also includes a few documentation updates to improve clarity. + ## 2.1236.0 * feature: CloudTrail: This release includes support for exporting CloudTrail Lake query results to an Amazon S3 bucket. * feature: ConfigService: This release adds resourceType enums for AppConfig, AppSync, DataSync, EC2, EKS, Glue, GuardDuty, SageMaker, ServiceDiscovery, SES, Route53 types. diff --git a/README.md b/README.md index b52cb75bb8..0a44a6167d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ For release notes, see the [CHANGELOG](https://github.com/aws/aws-sdk-js/blob/ma To use the SDK in the browser, simply add the following script tag to your HTML pages: - + You can also build a custom browser SDK with your specified set of AWS services. This can allow you to reduce the SDK's size, specify different API versions of diff --git a/apis/devops-guru-2020-12-01.min.json b/apis/devops-guru-2020-12-01.min.json index c67c348bb1..209a7a3ef9 100644 --- a/apis/devops-guru-2020-12-01.min.json +++ b/apis/devops-guru-2020-12-01.min.json @@ -92,6 +92,9 @@ }, "ResourceHours": { "type": "long" + }, + "AnalyzedResourceCount": { + "type": "long" } } } @@ -170,29 +173,29 @@ "type": "timestamp" }, "AnomalyTimeRange": { - "shape": "Sy" + "shape": "Sz" }, "AnomalyReportedTimeRange": { - "shape": "Sz" + "shape": "S10" }, "PredictionTimeRange": { - "shape": "S10" + "shape": "S11" }, "SourceDetails": { - "shape": "S11" + "shape": "S12" }, "AssociatedInsightId": {}, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "Limit": { "type": "double" }, "SourceMetadata": { - "shape": "S2g" + "shape": "S2h" }, "AnomalyResources": { - "shape": "S2k" + "shape": "S2l" } } }, @@ -203,24 +206,24 @@ "Severity": {}, "Status": {}, "AnomalyTimeRange": { - "shape": "Sy" + "shape": "Sz" }, "AnomalyReportedTimeRange": { - "shape": "Sz" + "shape": "S10" }, "SourceDetails": { - "shape": "S11" + "shape": "S12" }, "AssociatedInsightId": {}, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "Type": {}, "Name": {}, "Description": {}, "CausalAnomalyId": {}, "AnomalyResources": { - "shape": "S2k" + "shape": "S2l" } } } @@ -240,7 +243,7 @@ "type": "structure", "members": { "EventSources": { - "shape": "S2s" + "shape": "S2t" } } } @@ -260,7 +263,7 @@ "type": "structure", "members": { "InsightFeedback": { - "shape": "S2x" + "shape": "S2y" } } } @@ -298,13 +301,13 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "PredictionTimeRange": { - "shape": "S10" + "shape": "S11" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "SsmOpsItemId": {}, "Description": {} @@ -318,10 +321,10 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "SsmOpsItemId": {}, "Description": {} @@ -339,10 +342,10 @@ "type": "structure", "members": { "AccountIds": { - "shape": "S39" + "shape": "S3a" }, "OrganizationalUnitIds": { - "shape": "S3a" + "shape": "S3b" } } }, @@ -388,10 +391,10 @@ "type": "timestamp" }, "AccountIds": { - "shape": "S39" + "shape": "S3a" }, "OrganizationalUnitIds": { - "shape": "S3a" + "shape": "S3b" } } }, @@ -424,10 +427,10 @@ "members": { "OrganizationResourceCollectionType": {}, "AccountIds": { - "shape": "S39" + "shape": "S3a" }, "OrganizationalUnitIds": { - "shape": "S3a" + "shape": "S3b" }, "NextToken": {}, "MaxResults": { @@ -439,10 +442,10 @@ "type": "structure", "members": { "CloudFormation": { - "shape": "S3k" + "shape": "S3l" }, "Service": { - "shape": "S3n" + "shape": "S3o" }, "Account": { "type": "list", @@ -466,7 +469,7 @@ }, "NextToken": {}, "Tags": { - "shape": "S3u" + "shape": "S3v" } } } @@ -497,14 +500,14 @@ "type": "structure", "members": { "CloudFormation": { - "shape": "S3k" + "shape": "S3l" }, "Service": { - "shape": "S3n" + "shape": "S3o" }, "NextToken": {}, "Tags": { - "shape": "S3u" + "shape": "S3v" } } } @@ -561,7 +564,7 @@ "type": "structure", "members": { "ResourceCollection": { - "shape": "S47" + "shape": "S48" }, "Status": {}, "Costs": { @@ -633,7 +636,7 @@ "type": "structure", "members": { "StackNames": { - "shape": "S28" + "shape": "S29" } } }, @@ -648,7 +651,7 @@ "members": { "AppBoundaryKey": {}, "TagValues": { - "shape": "S2d" + "shape": "S2e" } } } @@ -675,7 +678,7 @@ "locationName": "InsightId" }, "StartTimeRange": { - "shape": "S4r" + "shape": "S4s" }, "MaxResults": { "type": "integer" @@ -699,29 +702,29 @@ "type": "timestamp" }, "AnomalyTimeRange": { - "shape": "Sy" + "shape": "Sz" }, "AnomalyReportedTimeRange": { - "shape": "Sz" + "shape": "S10" }, "PredictionTimeRange": { - "shape": "S10" + "shape": "S11" }, "SourceDetails": { - "shape": "S11" + "shape": "S12" }, "AssociatedInsightId": {}, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "Limit": { "type": "double" }, "SourceMetadata": { - "shape": "S2g" + "shape": "S2h" }, "AnomalyResources": { - "shape": "S2k" + "shape": "S2l" } } } @@ -735,24 +738,24 @@ "Severity": {}, "Status": {}, "AnomalyTimeRange": { - "shape": "Sy" + "shape": "Sz" }, "AnomalyReportedTimeRange": { - "shape": "Sz" + "shape": "S10" }, "SourceDetails": { - "shape": "S11" + "shape": "S12" }, "AssociatedInsightId": {}, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "Type": {}, "Name": {}, "Description": {}, "CausalAnomalyId": {}, "AnomalyResources": { - "shape": "S2k" + "shape": "S2l" } } } @@ -870,7 +873,7 @@ "EventSource": {}, "DataSource": {}, "ResourceCollection": { - "shape": "S26" + "shape": "S27" } } }, @@ -893,7 +896,7 @@ "type": "structure", "members": { "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "Id": {}, "Time": { @@ -933,7 +936,7 @@ ], "members": { "StatusFilter": { - "shape": "S5x" + "shape": "S5y" }, "MaxResults": { "type": "integer" @@ -945,10 +948,10 @@ "type": "structure", "members": { "ProactiveInsights": { - "shape": "S65" + "shape": "S66" }, "ReactiveInsights": { - "shape": "S6b" + "shape": "S6c" }, "NextToken": {} } @@ -961,9 +964,6 @@ }, "input": { "type": "structure", - "required": [ - "Filters" - ], "members": { "Filters": { "type": "structure", @@ -998,7 +998,13 @@ "members": { "MonitoredResourceName": {}, "Type": {}, - "ResourcePermission": {} + "ResourcePermission": {}, + "LastUpdated": { + "type": "timestamp" + }, + "ResourceCollection": { + "shape": "S27" + } } } }, @@ -1048,7 +1054,7 @@ ], "members": { "StatusFilter": { - "shape": "S5x" + "shape": "S5y" }, "MaxResults": { "type": "integer" @@ -1079,16 +1085,16 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "PredictionTimeRange": { - "shape": "S10" + "shape": "S11" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" } } } @@ -1105,13 +1111,13 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" } } } @@ -1223,7 +1229,7 @@ "type": "structure", "members": { "InsightFeedback": { - "shape": "S2x" + "shape": "S2y" } } }, @@ -1268,7 +1274,7 @@ ], "members": { "StartTimeRange": { - "shape": "S4r" + "shape": "S4s" }, "Filters": { "type": "structure", @@ -1277,13 +1283,13 @@ "shape": "S6" }, "Statuses": { - "shape": "S7y" + "shape": "S7z" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" } } }, @@ -1298,10 +1304,10 @@ "type": "structure", "members": { "ProactiveInsights": { - "shape": "S65" + "shape": "S66" }, "ReactiveInsights": { - "shape": "S6b" + "shape": "S6c" }, "NextToken": {} } @@ -1325,7 +1331,7 @@ "member": {} }, "StartTimeRange": { - "shape": "S4r" + "shape": "S4s" }, "Filters": { "type": "structure", @@ -1334,13 +1340,13 @@ "shape": "S6" }, "Statuses": { - "shape": "S7y" + "shape": "S7z" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" } } }, @@ -1355,10 +1361,10 @@ "type": "structure", "members": { "ProactiveInsights": { - "shape": "S65" + "shape": "S66" }, "ReactiveInsights": { - "shape": "S6b" + "shape": "S6c" }, "NextToken": {} } @@ -1377,7 +1383,7 @@ ], "members": { "ResourceCollection": { - "shape": "S47" + "shape": "S48" }, "ClientToken": { "idempotencyToken": true @@ -1399,7 +1405,7 @@ "type": "structure", "members": { "EventSources": { - "shape": "S2s" + "shape": "S2t" } } }, @@ -1528,7 +1534,7 @@ "type": "list", "member": {} }, - "Sy": { + "Sz": { "type": "structure", "required": [ "StartTime" @@ -1542,7 +1548,7 @@ } } }, - "Sz": { + "S10": { "type": "structure", "required": [ "OpenTime" @@ -1556,7 +1562,7 @@ } } }, - "S10": { + "S11": { "type": "structure", "required": [ "StartTime" @@ -1570,7 +1576,7 @@ } } }, - "S11": { + "S12": { "type": "structure", "members": { "CloudWatchMetrics": { @@ -1626,7 +1632,7 @@ "MetricDisplayName": {}, "Unit": {}, "MetricQuery": { - "shape": "S1m" + "shape": "S1n" }, "ReferenceData": { "type": "list", @@ -1649,7 +1655,7 @@ "type": "structure", "members": { "MetricQuery": { - "shape": "S1m" + "shape": "S1n" } } } @@ -1659,17 +1665,17 @@ } }, "StatsAtAnomaly": { - "shape": "S23" + "shape": "S24" }, "StatsAtBaseline": { - "shape": "S23" + "shape": "S24" } } } } } }, - "S1m": { + "S1n": { "type": "structure", "members": { "Metric": {}, @@ -1693,7 +1699,7 @@ } } }, - "S23": { + "S24": { "type": "list", "member": { "type": "structure", @@ -1705,14 +1711,14 @@ } } }, - "S26": { + "S27": { "type": "structure", "members": { "CloudFormation": { "type": "structure", "members": { "StackNames": { - "shape": "S28" + "shape": "S29" } } }, @@ -1727,22 +1733,22 @@ "members": { "AppBoundaryKey": {}, "TagValues": { - "shape": "S2d" + "shape": "S2e" } } } } } }, - "S28": { + "S29": { "type": "list", "member": {} }, - "S2d": { + "S2e": { "type": "list", "member": {} }, - "S2g": { + "S2h": { "type": "structure", "members": { "Source": {}, @@ -1750,7 +1756,7 @@ "SourceResourceType": {} } }, - "S2k": { + "S2l": { "type": "list", "member": { "type": "structure", @@ -1760,7 +1766,7 @@ } } }, - "S2s": { + "S2t": { "type": "structure", "members": { "AmazonCodeGuruProfiler": { @@ -1771,14 +1777,14 @@ } } }, - "S2x": { + "S2y": { "type": "structure", "members": { "Id": {}, "Feedback": {} } }, - "S34": { + "S35": { "type": "structure", "required": [ "StartTime" @@ -1792,27 +1798,30 @@ } } }, - "S39": { + "S3a": { "type": "list", "member": {} }, - "S3a": { + "S3b": { "type": "list", "member": {} }, - "S3k": { + "S3l": { "type": "list", "member": { "type": "structure", "members": { "StackName": {}, "Insight": { - "shape": "S3m" + "shape": "S3n" + }, + "AnalyzedResourceCount": { + "type": "long" } } } }, - "S3m": { + "S3n": { "type": "structure", "members": { "OpenProactiveInsights": { @@ -1826,7 +1835,7 @@ } } }, - "S3n": { + "S3o": { "type": "list", "member": { "type": "structure", @@ -1842,11 +1851,14 @@ "type": "integer" } } + }, + "AnalyzedResourceCount": { + "type": "long" } } } }, - "S3u": { + "S3v": { "type": "list", "member": { "type": "structure", @@ -1854,12 +1866,15 @@ "AppBoundaryKey": {}, "TagValue": {}, "Insight": { - "shape": "S3m" + "shape": "S3n" + }, + "AnalyzedResourceCount": { + "type": "long" } } } }, - "S47": { + "S48": { "type": "structure", "members": { "CloudFormation": { @@ -1890,7 +1905,7 @@ } } }, - "S4r": { + "S4s": { "type": "structure", "members": { "FromTime": { @@ -1901,7 +1916,7 @@ } } }, - "S5x": { + "S5y": { "type": "structure", "members": { "Ongoing": { @@ -1943,13 +1958,13 @@ "members": { "Type": {}, "StartTimeRange": { - "shape": "S4r" + "shape": "S4s" } } } } }, - "S65": { + "S66": { "type": "list", "member": { "type": "structure", @@ -1959,24 +1974,24 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "PredictionTimeRange": { - "shape": "S10" + "shape": "S11" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" }, "AssociatedResourceArns": { - "shape": "S69" + "shape": "S6a" } } } }, - "S67": { + "S68": { "type": "structure", "members": { "ServiceNames": { @@ -1985,11 +2000,11 @@ } } }, - "S69": { + "S6a": { "type": "list", "member": {} }, - "S6b": { + "S6c": { "type": "list", "member": { "type": "structure", @@ -1999,21 +2014,21 @@ "Severity": {}, "Status": {}, "InsightTimeRange": { - "shape": "S34" + "shape": "S35" }, "ResourceCollection": { - "shape": "S26" + "shape": "S27" }, "ServiceCollection": { - "shape": "S67" + "shape": "S68" }, "AssociatedResourceArns": { - "shape": "S69" + "shape": "S6a" } } } }, - "S7y": { + "S7z": { "type": "list", "member": {} } diff --git a/apis/devops-guru-2020-12-01.normal.json b/apis/devops-guru-2020-12-01.normal.json index 14712d684c..38e422ce06 100644 --- a/apis/devops-guru-2020-12-01.normal.json +++ b/apis/devops-guru-2020-12-01.normal.json @@ -821,7 +821,7 @@ "shape": "ValidationException" } ], - "documentation": "

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).

Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

" + "documentation": "

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).

Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

" }, "SearchOrganizationInsights": { "name": "SearchOrganizationInsights", @@ -1058,6 +1058,9 @@ }, "documentation": "

Information about your account's integration with Amazon CodeGuru Profiler. This returns whether DevOps Guru is configured to consume recommendations generated from Amazon CodeGuru Profiler.

" }, + "AnalyzedResourceCount": { + "type": "long" + }, "AnomalousLogGroup": { "type": "structure", "members": { @@ -1287,6 +1290,10 @@ "Insight": { "shape": "InsightHealth", "documentation": "

Information about the health of the Amazon Web Services resources in your account that are specified by an Amazon Web Services CloudFormation stack, including the number of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) of closed insights.

" + }, + "AnalyzedResourceCount": { + "shape": "AnalyzedResourceCount", + "documentation": "

Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services CloudFormation stack.

" } }, "documentation": "

Information about the health of Amazon Web Services resources in your account that are specified by an Amazon Web Services CloudFormation stack.

" @@ -1520,6 +1527,10 @@ "ResourceHours": { "shape": "ResourceHours", "documentation": "

The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the last hour.

" + }, + "AnalyzedResourceCount": { + "shape": "AnalyzedResourceCount", + "documentation": "

Number of resources that DevOps Guru is monitoring in your Amazon Web Services account.

" } } }, @@ -2521,9 +2532,6 @@ }, "ListMonitoredResourcesRequest": { "type": "structure", - "required": [ - "Filters" - ], "members": { "Filters": { "shape": "ListMonitoredResourcesFilters", @@ -2807,6 +2815,13 @@ "ResourcePermission": { "shape": "ResourcePermission", "documentation": "

The permission status of a resource.

" + }, + "LastUpdated": { + "shape": "Timestamp", + "documentation": "

The time at which DevOps Guru last updated this resource.

" + }, + "ResourceCollection": { + "shape": "ResourceCollection" } }, "documentation": "

Information about the resource that is being monitored, including the name of the resource, the type of resource, and whether or not permission is given to DevOps Guru to access that resource.

" @@ -3964,7 +3979,33 @@ "ResourceTypeFilter": { "type": "string", "enum": [ - "LOG_GROUPS" + "LOG_GROUPS", + "CLOUDFRONT_DISTRIBUTION", + "DYNAMODB_TABLE", + "EC2_NAT_GATEWAY", + "ECS_CLUSTER", + "ECS_SERVICE", + "EKS_CLUSTER", + "ELASTIC_BEANSTALK_ENVIRONMENT", + "ELASTIC_LOAD_BALANCER_LOAD_BALANCER", + "ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER", + "ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP", + "ELASTICACHE_CACHE_CLUSTER", + "ELASTICSEARCH_DOMAIN", + "KINESIS_STREAM", + "LAMBDA_FUNCTION", + "OPEN_SEARCH_SERVICE_DOMAIN", + "RDS_DB_INSTANCE", + "RDS_DB_CLUSTER", + "REDSHIFT_CLUSTER", + "ROUTE53_HOSTED_ZONE", + "ROUTE53_HEALTH_CHECK", + "S3_BUCKET", + "SAGEMAKER_ENDPOINT", + "SNS_TOPIC", + "SQS_QUEUE", + "STEP_FUNCTIONS_ACTIVITY", + "STEP_FUNCTIONS_STATE_MACHINE" ] }, "ResourceTypeFilters": { @@ -4148,6 +4189,10 @@ "Insight": { "shape": "ServiceInsightHealth", "documentation": "

Represents the health of an Amazon Web Services service. This is a ServiceInsightHealth that contains the number of open proactive and reactive insights for this service.

" + }, + "AnalyzedResourceCount": { + "shape": "AnalyzedResourceCount", + "documentation": "

Number of resources that DevOps Guru is monitoring in an analyzed Amazon Web Services service.

" } }, "documentation": "

Represents the health of an Amazon Web Services service.

" @@ -4403,6 +4448,10 @@ "Insight": { "shape": "InsightHealth", "documentation": "

Information about the health of the Amazon Web Services resources in your account that are specified by an Amazon Web Services tag, including the number of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) of closed insights.

" + }, + "AnalyzedResourceCount": { + "shape": "AnalyzedResourceCount", + "documentation": "

Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services tag.

" } }, "documentation": "

Information about the health of Amazon Web Services resources in your account that are specified by an Amazon Web Services tag key.

" diff --git a/apis/globalaccelerator-2018-08-08.min.json b/apis/globalaccelerator-2018-08-08.min.json index ac4716c2d3..dc86bbd84c 100644 --- a/apis/globalaccelerator-2018-08-08.min.json +++ b/apis/globalaccelerator-2018-08-08.min.json @@ -43,6 +43,30 @@ } } }, + "AddEndpoints": { + "input": { + "type": "structure", + "required": [ + "EndpointConfigurations", + "EndpointGroupArn" + ], + "members": { + "EndpointConfigurations": { + "shape": "S9" + }, + "EndpointGroupArn": {} + } + }, + "output": { + "type": "structure", + "members": { + "EndpointDescriptions": { + "shape": "Se" + }, + "EndpointGroupArn": {} + } + } + }, "AdvertiseByoipCidr": { "input": { "type": "structure", @@ -57,7 +81,7 @@ "type": "structure", "members": { "ByoipCidr": { - "shape": "Sa" + "shape": "Sj" } } } @@ -73,10 +97,10 @@ "EndpointGroupArn": {}, "EndpointId": {}, "DestinationAddresses": { - "shape": "Sg" + "shape": "Sp" }, "DestinationPorts": { - "shape": "Si" + "shape": "Sr" }, "AllowAllTrafficToEndpoint": { "type": "boolean" @@ -95,7 +119,7 @@ "Name": {}, "IpAddressType": {}, "IpAddresses": { - "shape": "Sn" + "shape": "Sv" }, "Enabled": { "type": "boolean" @@ -104,7 +128,7 @@ "idempotencyToken": true }, "Tags": { - "shape": "Sp" + "shape": "Sx" } } }, @@ -112,7 +136,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "Su" + "shape": "S12" } } } @@ -128,7 +152,7 @@ "Name": {}, "IpAddressType": {}, "IpAddresses": { - "shape": "Sn" + "shape": "Sv" }, "Enabled": { "type": "boolean" @@ -137,7 +161,7 @@ "idempotencyToken": true }, "Tags": { - "shape": "Sp" + "shape": "Sx" } } }, @@ -145,7 +169,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "S13" + "shape": "S1b" } } } @@ -179,7 +203,7 @@ "type": "integer" }, "Protocols": { - "shape": "S18" + "shape": "S1g" } } } @@ -193,7 +217,7 @@ "type": "structure", "members": { "EndpointGroup": { - "shape": "S1b" + "shape": "S1j" } } } @@ -209,7 +233,7 @@ "members": { "AcceleratorArn": {}, "PortRanges": { - "shape": "S1h" + "shape": "S1p" }, "IdempotencyToken": { "idempotencyToken": true @@ -220,7 +244,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S1k" + "shape": "S1s" } } } @@ -237,7 +261,7 @@ "ListenerArn": {}, "EndpointGroupRegion": {}, "EndpointConfigurations": { - "shape": "S1m" + "shape": "S9" }, "TrafficDialPercentage": { "type": "float" @@ -257,7 +281,7 @@ "idempotencyToken": true }, "PortOverrides": { - "shape": "S1v" + "shape": "S20" } } }, @@ -265,7 +289,7 @@ "type": "structure", "members": { "EndpointGroup": { - "shape": "S1y" + "shape": "S23" } } } @@ -282,7 +306,7 @@ "members": { "AcceleratorArn": {}, "PortRanges": { - "shape": "S1h" + "shape": "S1p" }, "Protocol": {}, "ClientAffinity": {}, @@ -295,7 +319,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S25" + "shape": "S27" } } } @@ -377,10 +401,10 @@ "EndpointGroupArn": {}, "EndpointId": {}, "DestinationAddresses": { - "shape": "Sg" + "shape": "Sp" }, "DestinationPorts": { - "shape": "Si" + "shape": "Sr" }, "DenyAllTrafficToEndpoint": { "type": "boolean" @@ -402,7 +426,7 @@ "type": "structure", "members": { "ByoipCidr": { - "shape": "Sa" + "shape": "Sj" } } } @@ -421,7 +445,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "Su" + "shape": "S12" } } } @@ -440,7 +464,7 @@ "type": "structure", "members": { "AcceleratorAttributes": { - "shape": "S2j" + "shape": "S2l" } } } @@ -459,7 +483,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "S13" + "shape": "S1b" } } } @@ -478,7 +502,7 @@ "type": "structure", "members": { "AcceleratorAttributes": { - "shape": "S2o" + "shape": "S2q" } } } @@ -497,7 +521,7 @@ "type": "structure", "members": { "EndpointGroup": { - "shape": "S1b" + "shape": "S1j" } } } @@ -516,7 +540,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S1k" + "shape": "S1s" } } } @@ -535,7 +559,7 @@ "type": "structure", "members": { "EndpointGroup": { - "shape": "S1y" + "shape": "S23" } } } @@ -554,7 +578,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S25" + "shape": "S27" } } } @@ -575,7 +599,7 @@ "Accelerators": { "type": "list", "member": { - "shape": "Su" + "shape": "S12" } }, "NextToken": {} @@ -598,7 +622,7 @@ "ByoipCidrs": { "type": "list", "member": { - "shape": "Sa" + "shape": "Sj" } }, "NextToken": {} @@ -621,7 +645,7 @@ "Accelerators": { "type": "list", "member": { - "shape": "S13" + "shape": "S1b" } }, "NextToken": {} @@ -648,7 +672,7 @@ "EndpointGroups": { "type": "list", "member": { - "shape": "S1b" + "shape": "S1j" } }, "NextToken": {} @@ -675,7 +699,7 @@ "Listeners": { "type": "list", "member": { - "shape": "S1k" + "shape": "S1s" } }, "NextToken": {} @@ -711,10 +735,10 @@ "EndpointGroupArn": {}, "EndpointId": {}, "DestinationSocketAddress": { - "shape": "S3i" + "shape": "S3k" }, "Protocols": { - "shape": "S18" + "shape": "S1g" }, "DestinationTrafficState": {} } @@ -752,14 +776,14 @@ "AcceleratorSocketAddresses": { "type": "list", "member": { - "shape": "S3i" + "shape": "S3k" } }, "EndpointGroupArn": {}, "EndpointId": {}, "EndpointGroupRegion": {}, "DestinationSocketAddress": { - "shape": "S3i" + "shape": "S3k" }, "IpAddressType": {}, "DestinationTrafficState": {} @@ -790,7 +814,7 @@ "EndpointGroups": { "type": "list", "member": { - "shape": "S1y" + "shape": "S23" } }, "NextToken": {} @@ -817,7 +841,7 @@ "Listeners": { "type": "list", "member": { - "shape": "S25" + "shape": "S27" } }, "NextToken": {} @@ -838,7 +862,7 @@ "type": "structure", "members": { "Tags": { - "shape": "Sp" + "shape": "Sx" } } } @@ -869,7 +893,7 @@ "type": "structure", "members": { "ByoipCidr": { - "shape": "Sa" + "shape": "Sj" } } } @@ -890,6 +914,33 @@ } } }, + "RemoveEndpoints": { + "input": { + "type": "structure", + "required": [ + "EndpointIdentifiers", + "EndpointGroupArn" + ], + "members": { + "EndpointIdentifiers": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "EndpointId" + ], + "members": { + "EndpointId": {}, + "ClientIPPreservationEnabled": { + "type": "boolean" + } + } + } + }, + "EndpointGroupArn": {} + } + } + }, "TagResource": { "input": { "type": "structure", @@ -900,7 +951,7 @@ "members": { "ResourceArn": {}, "Tags": { - "shape": "Sp" + "shape": "Sx" } } }, @@ -948,7 +999,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "Su" + "shape": "S12" } } } @@ -972,7 +1023,7 @@ "type": "structure", "members": { "AcceleratorAttributes": { - "shape": "S2j" + "shape": "S2l" } } } @@ -996,7 +1047,7 @@ "type": "structure", "members": { "Accelerator": { - "shape": "S13" + "shape": "S1b" } } } @@ -1020,7 +1071,7 @@ "type": "structure", "members": { "AcceleratorAttributes": { - "shape": "S2o" + "shape": "S2q" } } } @@ -1035,7 +1086,7 @@ "members": { "ListenerArn": {}, "PortRanges": { - "shape": "S1h" + "shape": "S1p" } } }, @@ -1043,7 +1094,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S1k" + "shape": "S1s" } } } @@ -1057,7 +1108,7 @@ "members": { "EndpointGroupArn": {}, "EndpointConfigurations": { - "shape": "S1m" + "shape": "S9" }, "TrafficDialPercentage": { "type": "float" @@ -1074,7 +1125,7 @@ "type": "integer" }, "PortOverrides": { - "shape": "S1v" + "shape": "S20" } } }, @@ -1082,7 +1133,7 @@ "type": "structure", "members": { "EndpointGroup": { - "shape": "S1y" + "shape": "S23" } } } @@ -1096,7 +1147,7 @@ "members": { "ListenerArn": {}, "PortRanges": { - "shape": "S1h" + "shape": "S1p" }, "Protocol": {}, "ClientAffinity": {} @@ -1106,7 +1157,7 @@ "type": "structure", "members": { "Listener": { - "shape": "S25" + "shape": "S27" } } } @@ -1125,7 +1176,7 @@ "type": "structure", "members": { "ByoipCidr": { - "shape": "Sa" + "shape": "Sj" } } } @@ -1141,7 +1192,39 @@ } } }, - "Sa": { + "S9": { + "type": "list", + "member": { + "type": "structure", + "members": { + "EndpointId": {}, + "Weight": { + "type": "integer" + }, + "ClientIPPreservationEnabled": { + "type": "boolean" + } + } + } + }, + "Se": { + "type": "list", + "member": { + "type": "structure", + "members": { + "EndpointId": {}, + "Weight": { + "type": "integer" + }, + "HealthState": {}, + "HealthReason": {}, + "ClientIPPreservationEnabled": { + "type": "boolean" + } + } + } + }, + "Sj": { "type": "structure", "members": { "Cidr": {}, @@ -1160,21 +1243,21 @@ } } }, - "Sg": { + "Sp": { "type": "list", "member": {} }, - "Si": { + "Sr": { "type": "list", "member": { "type": "integer" } }, - "Sn": { + "Sv": { "type": "list", "member": {} }, - "Sp": { + "Sx": { "type": "list", "member": { "type": "structure", @@ -1188,7 +1271,7 @@ } } }, - "Su": { + "S12": { "type": "structure", "members": { "AcceleratorArn": {}, @@ -1198,7 +1281,7 @@ "type": "boolean" }, "IpSets": { - "shape": "Sv" + "shape": "S13" }, "DnsName": {}, "Status": {}, @@ -1223,7 +1306,7 @@ } } }, - "Sv": { + "S13": { "type": "list", "member": { "type": "structure", @@ -1233,13 +1316,13 @@ "deprecatedMessage": "IpFamily has been replaced by IpAddressFamily" }, "IpAddresses": { - "shape": "Sn" + "shape": "Sv" }, "IpAddressFamily": {} } } }, - "S13": { + "S1b": { "type": "structure", "members": { "AcceleratorArn": {}, @@ -1249,7 +1332,7 @@ "type": "boolean" }, "IpSets": { - "shape": "Sv" + "shape": "S13" }, "DnsName": {}, "Status": {}, @@ -1261,11 +1344,11 @@ } } }, - "S18": { + "S1g": { "type": "list", "member": {} }, - "S1b": { + "S1j": { "type": "structure", "members": { "EndpointGroupArn": {}, @@ -1293,7 +1376,7 @@ } } }, - "S1h": { + "S1p": { "type": "list", "member": { "type": "structure", @@ -1307,31 +1390,16 @@ } } }, - "S1k": { + "S1s": { "type": "structure", "members": { "ListenerArn": {}, "PortRanges": { - "shape": "S1h" - } - } - }, - "S1m": { - "type": "list", - "member": { - "type": "structure", - "members": { - "EndpointId": {}, - "Weight": { - "type": "integer" - }, - "ClientIPPreservationEnabled": { - "type": "boolean" - } + "shape": "S1p" } } }, - "S1v": { + "S20": { "type": "list", "member": { "type": "structure", @@ -1345,27 +1413,13 @@ } } }, - "S1y": { + "S23": { "type": "structure", "members": { "EndpointGroupArn": {}, "EndpointGroupRegion": {}, "EndpointDescriptions": { - "type": "list", - "member": { - "type": "structure", - "members": { - "EndpointId": {}, - "Weight": { - "type": "integer" - }, - "HealthState": {}, - "HealthReason": {}, - "ClientIPPreservationEnabled": { - "type": "boolean" - } - } - } + "shape": "Se" }, "TrafficDialPercentage": { "type": "float" @@ -1382,22 +1436,22 @@ "type": "integer" }, "PortOverrides": { - "shape": "S1v" + "shape": "S20" } } }, - "S25": { + "S27": { "type": "structure", "members": { "ListenerArn": {}, "PortRanges": { - "shape": "S1h" + "shape": "S1p" }, "Protocol": {}, "ClientAffinity": {} } }, - "S2j": { + "S2l": { "type": "structure", "members": { "FlowLogsEnabled": { @@ -1407,7 +1461,7 @@ "FlowLogsS3Prefix": {} } }, - "S2o": { + "S2q": { "type": "structure", "members": { "FlowLogsEnabled": { @@ -1417,7 +1471,7 @@ "FlowLogsS3Prefix": {} } }, - "S3i": { + "S3k": { "type": "structure", "members": { "IpAddress": {}, diff --git a/apis/globalaccelerator-2018-08-08.normal.json b/apis/globalaccelerator-2018-08-08.normal.json index 650329e4b6..8d88abeb78 100644 --- a/apis/globalaccelerator-2018-08-08.normal.json +++ b/apis/globalaccelerator-2018-08-08.normal.json @@ -50,6 +50,40 @@ ], "documentation": "

Associate a virtual private cloud (VPC) subnet endpoint with your custom routing accelerator.

The listener port range must be large enough to support the number of IP addresses that can be specified in your subnet. The number of ports required is: subnet size times the number of ports per destination EC2 instances. For example, a subnet defined as /24 requires a listener port range of at least 255 ports.

Note: You must have enough remaining listener ports available to map to the subnet ports, or the call will fail with a LimitExceededException.

By default, all destinations in a subnet in a custom routing accelerator cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation.

" }, + "AddEndpoints": { + "name": "AddEndpoints", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "AddEndpointsRequest" + }, + "output": { + "shape": "AddEndpointsResponse" + }, + "errors": [ + { + "shape": "TransactionInProgressException" + }, + { + "shape": "EndpointGroupNotFoundException" + }, + { + "shape": "InternalServiceErrorException" + }, + { + "shape": "InvalidArgumentException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Add endpoints to an endpoint group. The AddEndpoints API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API).

There are two advantages to using AddEndpoints to add endpoints:

" + }, "AdvertiseByoipCidr": { "name": "AdvertiseByoipCidr", "http": { @@ -1034,6 +1068,34 @@ ], "documentation": "

Remove endpoints from a custom routing accelerator.

" }, + "RemoveEndpoints": { + "name": "RemoveEndpoints", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "RemoveEndpointsRequest" + }, + "errors": [ + { + "shape": "EndpointGroupNotFoundException" + }, + { + "shape": "InternalServiceErrorException" + }, + { + "shape": "InvalidArgumentException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "TransactionInProgressException" + } + ], + "documentation": "

Remove endpoints from an endpoint group.

The RemoveEndpoints API operation is the recommended option for removing endpoints. The alternative is to remove endpoints by updating an endpoint group by using the UpdateEndpointGroup API operation. There are two advantages to using AddEndpoints to remove endpoints instead:

" + }, "TagResource": { "name": "TagResource", "http": { @@ -1344,7 +1406,7 @@ }, "DnsName": { "shape": "GenericString", - "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.

The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.

If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses).

For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.

" + "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.

The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.

If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.

For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide.

" }, "Status": { "shape": "AcceleratorStatus", @@ -1360,7 +1422,7 @@ }, "DualStackDnsName": { "shape": "GenericString", - "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.

The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.

Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses.

For more information, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.

" + "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.

The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.

Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses.

For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide.

" }, "Events": { "shape": "AcceleratorEvents", @@ -1450,6 +1512,36 @@ } } }, + "AddEndpointsRequest": { + "type": "structure", + "required": [ + "EndpointConfigurations", + "EndpointGroupArn" + ], + "members": { + "EndpointConfigurations": { + "shape": "EndpointConfigurations", + "documentation": "

The list of endpoint objects.

" + }, + "EndpointGroupArn": { + "shape": "GenericString", + "documentation": "

The Amazon Resource Name (ARN) of the endpoint group.

" + } + } + }, + "AddEndpointsResponse": { + "type": "structure", + "members": { + "EndpointDescriptions": { + "shape": "EndpointDescriptions", + "documentation": "

The list of endpoint objects.

" + }, + "EndpointGroupArn": { + "shape": "GenericString", + "documentation": "

The Amazon Resource Name (ARN) of the endpoint group.

" + } + } + }, "AdvertiseByoipCidrRequest": { "type": "structure", "required": [ @@ -1870,7 +1962,7 @@ }, "DnsName": { "shape": "GenericString", - "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.

The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.

If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses).

For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide.

" + "documentation": "

The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.

The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.

If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.

For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide.

" }, "Status": { "shape": "CustomRoutingAcceleratorStatus", @@ -2535,6 +2627,31 @@ "shape": "EndpointGroup" } }, + "EndpointIdentifier": { + "type": "structure", + "required": [ + "EndpointId" + ], + "members": { + "EndpointId": { + "shape": "GenericString", + "documentation": "

An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.

An Application Load Balancer can be either internal or internet-facing.

" + }, + "ClientIPPreservationEnabled": { + "shape": "GenericBoolean", + "documentation": "

Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false.

If the value is set to true, the client's IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the endpoint fronted by the accelerator.

" + } + }, + "documentation": "

A complex type for an endpoint. Specifies information about the endpoint to remove from the endpoint group.

" + }, + "EndpointIdentifiers": { + "type": "list", + "member": { + "shape": "EndpointIdentifier" + }, + "max": 10, + "min": 1 + }, "EndpointIds": { "type": "list", "member": { @@ -3125,6 +3242,23 @@ } } }, + "RemoveEndpointsRequest": { + "type": "structure", + "required": [ + "EndpointIdentifiers", + "EndpointGroupArn" + ], + "members": { + "EndpointIdentifiers": { + "shape": "EndpointIdentifiers", + "documentation": "

The identifiers of the endpoints that you want to remove.

" + }, + "EndpointGroupArn": { + "shape": "GenericString", + "documentation": "

The Amazon Resource Name (ARN) of the endpoint group.

" + } + } + }, "ResourceArn": { "type": "string", "max": 1011, diff --git a/apis/resiliencehub-2020-04-30.min.json b/apis/resiliencehub-2020-04-30.min.json index f986b78b3e..fe7dbe719c 100644 --- a/apis/resiliencehub-2020-04-30.min.json +++ b/apis/resiliencehub-2020-04-30.min.json @@ -967,7 +967,8 @@ "name": {}, "resiliencyScore": { "type": "double" - } + }, + "status": {} } } }, diff --git a/apis/resiliencehub-2020-04-30.normal.json b/apis/resiliencehub-2020-04-30.normal.json index e7946b6e60..baeea4a60d 100644 --- a/apis/resiliencehub-2020-04-30.normal.json +++ b/apis/resiliencehub-2020-04-30.normal.json @@ -1470,7 +1470,7 @@ }, "status": { "shape": "AppStatusType", - "documentation": "

The status of the action.

" + "documentation": "

The status of the application.

" }, "tags": { "shape": "TagMap", @@ -1730,6 +1730,10 @@ "resiliencyScore": { "shape": "Double", "documentation": "

The current resiliency score for the application.

" + }, + "status": { + "shape": "AppStatusType", + "documentation": "

The status of the application.

" } }, "documentation": "

Defines an application summary.

" @@ -1742,7 +1746,7 @@ }, "AppTemplateBody": { "type": "string", - "max": 51200, + "max": 204800, "min": 0, "pattern": "^[\\w\\s:,-\\.'{}\\[\\]:\"]+$" }, @@ -1928,7 +1932,8 @@ "LeastChange", "BestAZRecovery", "LeastErrors", - "BestAttainable" + "BestAttainable", + "BestRegionRecovery" ] }, "Cost": { @@ -4336,7 +4341,7 @@ }, "policy": { "shape": "DisruptionPolicy", - "documentation": "

The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.

If you do not want to specify regional targets for a regional policy, you must set the values of rpoInSecs and rtoInSecs to -1.

" + "documentation": "

The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.

" }, "policyArn": { "shape": "Arn", diff --git a/apis/rum-2018-05-10.min.json b/apis/rum-2018-05-10.min.json index 40d08f4db0..df9e8df9bd 100644 --- a/apis/rum-2018-05-10.min.json +++ b/apis/rum-2018-05-10.min.json @@ -12,6 +12,172 @@ "uid": "rum-2018-05-10" }, "operations": { + "BatchCreateRumMetricDefinitions": { + "http": { + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinitions" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": {}, + "DestinationArn": {}, + "MetricDefinitions": { + "type": "list", + "member": { + "shape": "S6" + } + } + } + }, + "output": { + "type": "structure", + "required": [ + "Errors" + ], + "members": { + "Errors": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "ErrorCode", + "ErrorMessage", + "MetricDefinition" + ], + "members": { + "ErrorCode": {}, + "ErrorMessage": {}, + "MetricDefinition": { + "shape": "S6" + } + } + } + }, + "MetricDefinitions": { + "shape": "Si" + } + } + }, + "idempotent": true + }, + "BatchDeleteRumMetricDefinitions": { + "http": { + "method": "DELETE", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinitionIds" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "location": "querystring", + "locationName": "destinationArn" + }, + "MetricDefinitionIds": { + "shape": "Sm", + "location": "querystring", + "locationName": "metricDefinitionIds" + } + } + }, + "output": { + "type": "structure", + "required": [ + "Errors" + ], + "members": { + "Errors": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "ErrorCode", + "ErrorMessage", + "MetricDefinitionId" + ], + "members": { + "ErrorCode": {}, + "ErrorMessage": {}, + "MetricDefinitionId": {} + } + } + }, + "MetricDefinitionIds": { + "shape": "Sm" + } + } + }, + "idempotent": true + }, + "BatchGetRumMetricDefinitions": { + "http": { + "method": "GET", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "location": "querystring", + "locationName": "destinationArn" + }, + "MaxResults": { + "location": "querystring", + "locationName": "maxResults", + "type": "integer" + }, + "NextToken": { + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "output": { + "type": "structure", + "members": { + "MetricDefinitions": { + "shape": "Si" + }, + "NextToken": {} + } + } + }, "CreateAppMonitor": { "http": { "requestUri": "/appmonitor", @@ -25,7 +191,7 @@ ], "members": { "AppMonitorConfiguration": { - "shape": "S2" + "shape": "Su" }, "CwLogEnabled": { "type": "boolean" @@ -33,7 +199,7 @@ "Domain": {}, "Name": {}, "Tags": { - "shape": "Sf" + "shape": "S15" } } }, @@ -69,6 +235,39 @@ }, "idempotent": true }, + "DeleteRumMetricsDestination": { + "http": { + "method": "DELETE", + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "location": "querystring", + "locationName": "destinationArn" + } + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, "GetAppMonitor": { "http": { "method": "GET", @@ -94,7 +293,7 @@ "type": "structure", "members": { "AppMonitorConfiguration": { - "shape": "S2" + "shape": "Su" }, "Created": {}, "DataStorage": { @@ -117,7 +316,7 @@ "Name": {}, "State": {}, "Tags": { - "shape": "Sf" + "shape": "S15" } } } @@ -223,6 +422,51 @@ } } }, + "ListRumMetricsDestinations": { + "http": { + "method": "GET", + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "MaxResults": { + "location": "querystring", + "locationName": "maxResults", + "type": "integer" + }, + "NextToken": { + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "output": { + "type": "structure", + "members": { + "Destinations": { + "type": "list", + "member": { + "type": "structure", + "members": { + "Destination": {}, + "DestinationArn": {}, + "IamRoleArn": {} + } + } + }, + "NextToken": {} + } + } + }, "ListTagsForResource": { "http": { "method": "GET", @@ -250,7 +494,7 @@ "members": { "ResourceArn": {}, "Tags": { - "shape": "Sf" + "shape": "S15" } } } @@ -325,6 +569,33 @@ "hostPrefix": "dataplane." } }, + "PutRumMetricsDestination": { + "http": { + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": {}, + "DestinationArn": {}, + "IamRoleArn": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, "TagResource": { "http": { "requestUri": "/tags/{ResourceArn}", @@ -342,7 +613,7 @@ "locationName": "ResourceArn" }, "Tags": { - "shape": "Sf" + "shape": "S15" } } }, @@ -396,7 +667,7 @@ ], "members": { "AppMonitorConfiguration": { - "shape": "S2" + "shape": "Su" }, "CwLogEnabled": { "type": "boolean" @@ -412,10 +683,87 @@ "type": "structure", "members": {} } + }, + "UpdateRumMetricDefinition": { + "http": { + "method": "PATCH", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinition", + "MetricDefinitionId" + ], + "members": { + "AppMonitorName": { + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": {}, + "DestinationArn": {}, + "MetricDefinition": { + "shape": "S6" + }, + "MetricDefinitionId": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true } }, "shapes": { - "S2": { + "S6": { + "type": "structure", + "required": [ + "Name" + ], + "members": { + "DimensionKeys": { + "shape": "S7" + }, + "EventPattern": {}, + "Name": {}, + "UnitLabel": {}, + "ValueKey": {} + } + }, + "S7": { + "type": "map", + "key": {}, + "value": {} + }, + "Si": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "MetricDefinitionId", + "Name" + ], + "members": { + "DimensionKeys": { + "shape": "S7" + }, + "EventPattern": {}, + "MetricDefinitionId": {}, + "Name": {}, + "UnitLabel": {}, + "ValueKey": {} + } + } + }, + "Sm": { + "type": "list", + "member": {} + }, + "Su": { "type": "structure", "members": { "AllowCookies": { @@ -425,7 +773,7 @@ "type": "boolean" }, "ExcludedPages": { - "shape": "S4" + "shape": "Sw" }, "FavoritePages": { "type": "list", @@ -434,7 +782,7 @@ "GuestRoleArn": {}, "IdentityPoolId": {}, "IncludedPages": { - "shape": "S4" + "shape": "Sw" }, "SessionSampleRate": { "type": "double" @@ -445,11 +793,11 @@ } } }, - "S4": { + "Sw": { "type": "list", "member": {} }, - "Sf": { + "S15": { "type": "map", "key": {}, "value": {} diff --git a/apis/rum-2018-05-10.normal.json b/apis/rum-2018-05-10.normal.json index 98dc8c78c6..540a9a76e9 100644 --- a/apis/rum-2018-05-10.normal.json +++ b/apis/rum-2018-05-10.normal.json @@ -12,6 +12,110 @@ "uid": "rum-2018-05-10" }, "operations": { + "BatchCreateRumMetricDefinitions": { + "name": "BatchCreateRumMetricDefinitions", + "http": { + "method": "POST", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "shape": "BatchCreateRumMetricDefinitionsRequest" + }, + "output": { + "shape": "BatchCreateRumMetricDefinitionsResponse" + }, + "errors": [ + { + "shape": "ConflictException" + }, + { + "shape": "ServiceQuotaExceededException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Specifies the extended metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently.

By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in CloudWatch metrics that you can collect with CloudWatch RUM.

If you also send extended metrics, you can send metrics to Evidently as well as CloudWatch, and you can also optionally send the metrics with additional dimensions. The valid dimension names for the additional dimensions are BrowserName, CountryCode, DeviceType, FileType, OSName, and PageId. For more information, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently.

The maximum number of metric definitions that you can specify in one BatchCreateRumMetricDefinitions operation is 200.

 <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p> 
", + "idempotent": true + }, + "BatchDeleteRumMetricDefinitions": { + "name": "BatchDeleteRumMetricDefinitions", + "http": { + "method": "DELETE", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "shape": "BatchDeleteRumMetricDefinitionsRequest" + }, + "output": { + "shape": "BatchDeleteRumMetricDefinitionsResponse" + }, + "errors": [ + { + "shape": "ConflictException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Removes the specified metrics from being sent to an extended metrics destination.

If some metric definition IDs specified in a BatchDeleteRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted.

The maximum number of metric definitions that you can specify in one BatchDeleteRumMetricDefinitions operation is 200.

", + "idempotent": true + }, + "BatchGetRumMetricDefinitions": { + "name": "BatchGetRumMetricDefinitions", + "http": { + "method": "GET", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "shape": "BatchGetRumMetricDefinitionsRequest" + }, + "output": { + "shape": "BatchGetRumMetricDefinitionsResponse" + }, + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination.

" + }, "CreateAppMonitor": { "name": "CreateAppMonitor", "http": { @@ -32,6 +136,9 @@ { "shape": "ServiceQuotaExceededException" }, + { + "shape": "ResourceNotFoundException" + }, { "shape": "InternalServerException" }, @@ -84,6 +191,42 @@ "documentation": "

Deletes an existing app monitor. This immediately stops the collection of data.

", "idempotent": true }, + "DeleteRumMetricsDestination": { + "name": "DeleteRumMetricsDestination", + "http": { + "method": "DELETE", + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "shape": "DeleteRumMetricsDestinationRequest" + }, + "output": { + "shape": "DeleteRumMetricsDestinationResponse" + }, + "errors": [ + { + "shape": "ConflictException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination.

", + "idempotent": true + }, "GetAppMonitor": { "name": "GetAppMonitor", "http": { @@ -177,6 +320,35 @@ ], "documentation": "

Returns a list of the Amazon CloudWatch RUM app monitors in the account.

" }, + "ListRumMetricsDestinations": { + "name": "ListRumMetricsDestinations", + "http": { + "method": "GET", + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "shape": "ListRumMetricsDestinationsRequest" + }, + "output": { + "shape": "ListRumMetricsDestinationsResponse" + }, + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor.

For more information about extended metrics, see AddRumMetrics.

" + }, "ListTagsForResource": { "name": "ListTagsForResource", "http": { @@ -238,6 +410,42 @@ "hostPrefix": "dataplane." } }, + "PutRumMetricsDestination": { + "name": "PutRumMetricsDestination", + "http": { + "method": "POST", + "requestUri": "/rummetrics/{AppMonitorName}/metricsdestination", + "responseCode": 200 + }, + "input": { + "shape": "PutRumMetricsDestinationRequest" + }, + "output": { + "shape": "PutRumMetricsDestinationResponse" + }, + "errors": [ + { + "shape": "ConflictException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment.

For more information about extended metrics, see AddRumMetrics.

", + "idempotent": true + }, "TagResource": { "name": "TagResource", "http": { @@ -326,6 +534,45 @@ } ], "documentation": "

Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept.

You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource.

To create a new app monitor, use CreateAppMonitor.

After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?

" + }, + "UpdateRumMetricDefinition": { + "name": "UpdateRumMetricDefinition", + "http": { + "method": "PATCH", + "requestUri": "/rummetrics/{AppMonitorName}/metrics", + "responseCode": 200 + }, + "input": { + "shape": "UpdateRumMetricDefinitionRequest" + }, + "output": { + "shape": "UpdateRumMetricDefinitionResponse" + }, + "errors": [ + { + "shape": "ConflictException" + }, + { + "shape": "ServiceQuotaExceededException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + } + ], + "documentation": "

Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions.

", + "idempotent": true } }, "shapes": { @@ -388,7 +635,7 @@ }, "FavoritePages": { "shape": "FavoritePages", - "documentation": "

A list of pages in the CloudWatch RUM console that are to be displayed with a \"favorite\" icon.

" + "documentation": "

A list of pages in your application that are to be displayed with a \"favorite\" icon in the CloudWatch RUM console.

" }, "GuestRoleArn": { "shape": "Arn", @@ -404,7 +651,7 @@ }, "SessionSampleRate": { "shape": "SessionSampleRate", - "documentation": "

Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs.

The number you specify is the percentage of user sessions that will be used.

If you omit this parameter, the default of 10 is used.

" + "documentation": "

Specifies the portion of user sessions to use for RUM data collection. Choosing a higher portion gives you more data but also incurs more costs.

The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled.

If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled.

" }, "Telemetries": { "shape": "Telemetries", @@ -485,6 +732,210 @@ "type": "string", "pattern": "arn:[^:]*:[^:]*:[^:]*:[^:]*:.*" }, + "BatchCreateRumMetricDefinitionsError": { + "type": "structure", + "required": [ + "ErrorCode", + "ErrorMessage", + "MetricDefinition" + ], + "members": { + "ErrorCode": { + "shape": "String", + "documentation": "

The error code.

" + }, + "ErrorMessage": { + "shape": "String", + "documentation": "

The error message for this metric definition.

" + }, + "MetricDefinition": { + "shape": "MetricDefinitionRequest", + "documentation": "

The metric definition that caused this error.

" + } + }, + "documentation": "

A structure that defines one error caused by a BatchCreateRumMetricsDefinitions operation.

" + }, + "BatchCreateRumMetricDefinitionsErrors": { + "type": "list", + "member": { + "shape": "BatchCreateRumMetricDefinitionsError" + } + }, + "BatchCreateRumMetricDefinitionsRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinitions" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the CloudWatch RUM app monitor that is to send the metrics.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment.

" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

" + }, + "MetricDefinitions": { + "shape": "MetricDefinitionsRequest", + "documentation": "

An array of structures which define the metrics that you want to send.

" + } + } + }, + "BatchCreateRumMetricDefinitionsResponse": { + "type": "structure", + "required": [ + "Errors" + ], + "members": { + "Errors": { + "shape": "BatchCreateRumMetricDefinitionsErrors", + "documentation": "

An array of error objects, if the operation caused any errors.

" + }, + "MetricDefinitions": { + "shape": "MetricDefinitions", + "documentation": "

An array of structures that define the extended metrics.

" + } + } + }, + "BatchDeleteRumMetricDefinitionsError": { + "type": "structure", + "required": [ + "ErrorCode", + "ErrorMessage", + "MetricDefinitionId" + ], + "members": { + "ErrorCode": { + "shape": "String", + "documentation": "

The error code.

" + }, + "ErrorMessage": { + "shape": "String", + "documentation": "

The error message for this metric definition.

" + }, + "MetricDefinitionId": { + "shape": "MetricDefinitionId", + "documentation": "

The ID of the metric definition that caused this error.

" + } + }, + "documentation": "

A structure that defines one error caused by a BatchCreateRumMetricsDefinitions operation.

" + }, + "BatchDeleteRumMetricDefinitionsErrors": { + "type": "list", + "member": { + "shape": "BatchDeleteRumMetricDefinitionsError" + } + }, + "BatchDeleteRumMetricDefinitionsRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinitionIds" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the CloudWatch RUM app monitor that is sending these metrics.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

Defines the destination where you want to stop sending the specified metrics. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.

", + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

This parameter specifies the ARN of the Evidently experiment that was receiving the metrics that are being deleted.

", + "location": "querystring", + "locationName": "destinationArn" + }, + "MetricDefinitionIds": { + "shape": "MetricDefinitionIds", + "documentation": "

An array of structures which define the metrics that you want to stop sending.

", + "location": "querystring", + "locationName": "metricDefinitionIds" + } + } + }, + "BatchDeleteRumMetricDefinitionsResponse": { + "type": "structure", + "required": [ + "Errors" + ], + "members": { + "Errors": { + "shape": "BatchDeleteRumMetricDefinitionsErrors", + "documentation": "

An array of error objects, if the operation caused any errors.

" + }, + "MetricDefinitionIds": { + "shape": "MetricDefinitionIds", + "documentation": "

The IDs of the metric definitions that were deleted.

" + } + } + }, + "BatchGetRumMetricDefinitionsRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the CloudWatch RUM app monitor that is sending the metrics.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

The type of destination that you want to view metrics for. Valid values are CloudWatch and Evidently.

", + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

This parameter specifies the ARN of the Evidently experiment that corresponds to the destination.

", + "location": "querystring", + "locationName": "destinationArn" + }, + "MaxResults": { + "shape": "MaxResultsInteger", + "documentation": "

The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.

To retrieve the remaining results, make another call with the returned NextToken value.

", + "location": "querystring", + "locationName": "maxResults" + }, + "NextToken": { + "shape": "String", + "documentation": "

Use the token returned by the previous operation to request the next page of results.

", + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "BatchGetRumMetricDefinitionsResponse": { + "type": "structure", + "members": { + "MetricDefinitions": { + "shape": "MetricDefinitions", + "documentation": "

An array of structures that display information about the metrics that are sent by the specified app monitor to the specified destination.

" + }, + "NextToken": { + "shape": "String", + "documentation": "

A token that you can use in a subsequent operation to retrieve the next set of results.

" + } + } + }, "Boolean": { "type": "boolean", "box": true @@ -569,6 +1020,63 @@ "type": "structure", "members": {} }, + "DeleteRumMetricsDestinationRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the app monitor that is sending metrics to the destination that you want to delete.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

The type of destination to delete. Valid values are CloudWatch and Evidently.

", + "location": "querystring", + "locationName": "destination" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete.

", + "location": "querystring", + "locationName": "destinationArn" + } + } + }, + "DeleteRumMetricsDestinationResponse": { + "type": "structure", + "members": {} + }, + "DestinationArn": { + "type": "string", + "max": 2048, + "min": 0, + "pattern": "arn:[^:]*:[^:]*:[^:]*:[^:]*:.*" + }, + "DimensionKey": { + "type": "string", + "max": 280, + "min": 1 + }, + "DimensionKeysMap": { + "type": "map", + "key": { + "shape": "DimensionKey" + }, + "value": { + "shape": "DimensionName" + } + }, + "DimensionName": { + "type": "string", + "max": 255, + "min": 1, + "pattern": "^(?!:).*[^\\s].*" + }, "EventData": { "type": "string" }, @@ -578,6 +1086,11 @@ "shape": "EventData" } }, + "EventPattern": { + "type": "string", + "max": 4000, + "min": 0 + }, "FavoritePages": { "type": "list", "member": { @@ -656,8 +1169,11 @@ "ISOTimestampString": { "type": "string", "max": 19, - "min": 19, - "pattern": "/d{4}-[01]/d-[0-3]/dT[0-2]/d:[0-5]/d:[0-5]/d/./d+([+-][0-2]/d:[0-5]/d|Z)" + "min": 19 + }, + "IamRoleArn": { + "type": "string", + "pattern": "arn:[^:]*:[^:]*:[^:]*:[^:]*:.*" }, "IdentityPoolId": { "type": "string", @@ -665,10 +1181,6 @@ "min": 1, "pattern": "[\\w-]+:[0-9a-f-]+" }, - "Integer": { - "type": "integer", - "box": true - }, "JsonValue": { "type": "string" }, @@ -676,8 +1188,8 @@ "type": "structure", "members": { "MaxResults": { - "shape": "Integer", - "documentation": "

The maximum number of results to return in one operation.

", + "shape": "MaxResultsInteger", + "documentation": "

The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.

", "location": "querystring", "locationName": "maxResults" }, @@ -702,6 +1214,45 @@ } } }, + "ListRumMetricsDestinationsRequest": { + "type": "structure", + "required": [ + "AppMonitorName" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the app monitor associated with the destinations that you want to retrieve.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "MaxResults": { + "shape": "MaxResultsInteger", + "documentation": "

The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.

To retrieve the remaining results, make another call with the returned NextToken value.

", + "location": "querystring", + "locationName": "maxResults" + }, + "NextToken": { + "shape": "String", + "documentation": "

Use the token returned by the previous operation to request the next page of results.

", + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "ListRumMetricsDestinationsResponse": { + "type": "structure", + "members": { + "Destinations": { + "shape": "MetricDestinationSummaryList", + "documentation": "

The list of CloudWatch RUM extended metrics destinations associated with the app monitor that you specified.

" + }, + "NextToken": { + "shape": "String", + "documentation": "

A token that you can use in a subsequent operation to retrieve the next set of results.

" + } + } + }, "ListTagsForResourceRequest": { "type": "structure", "required": [ @@ -738,6 +1289,134 @@ "max": 100, "min": 0 }, + "MaxResultsInteger": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "MetricDefinition": { + "type": "structure", + "required": [ + "MetricDefinitionId", + "Name" + ], + "members": { + "DimensionKeys": { + "shape": "DimensionKeysMap", + "documentation": "

This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch The value of this field is used only if the metric destination is CloudWatch. If the metric destination is Evidently, the value of DimensionKeys is ignored.

" + }, + "EventPattern": { + "shape": "EventPattern", + "documentation": "

The pattern that defines the metric. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination.

If the metrics destination is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions.

" + }, + "MetricDefinitionId": { + "shape": "MetricDefinitionId", + "documentation": "

The ID of this metric definition.

" + }, + "Name": { + "shape": "MetricName", + "documentation": "

The name of the metric that is defined in this structure.

" + }, + "UnitLabel": { + "shape": "UnitLabel", + "documentation": "

Use this field only if you are sending this metric to CloudWatch. It defines the CloudWatch metric unit that this metric is measured in.

" + }, + "ValueKey": { + "shape": "ValueKey", + "documentation": "

The field within the event object that the metric value is sourced from.

" + } + }, + "documentation": "

A structure that displays the definition of one extended metric that RUM sends to CloudWatch or CloudWatch Evidently. For more information, see Additional metrics that you can send to CloudWatch and CloudWatch Evidently.

" + }, + "MetricDefinitionId": { + "type": "string", + "max": 255, + "min": 1 + }, + "MetricDefinitionIds": { + "type": "list", + "member": { + "shape": "MetricDefinitionId" + } + }, + "MetricDefinitionRequest": { + "type": "structure", + "required": [ + "Name" + ], + "members": { + "DimensionKeys": { + "shape": "DimensionKeysMap", + "documentation": "

Use this field only if you are sending the metric to CloudWatch.

This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch. Valid values for the entries in this field are the following:

 <p> All dimensions listed in this field must also be included in <code>EventPattern</code>.</p> 
" + }, + "EventPattern": { + "shape": "EventPattern", + "documentation": "

The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination.

When you define extended metrics, the metric definition is not valid if EventPattern is omitted.

Example event patterns:

If the metrics destination' is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions.

" + }, + "Name": { + "shape": "MetricName", + "documentation": "

The name for the metric that is defined in this structure. Valid values are the following:

" + }, + "UnitLabel": { + "shape": "UnitLabel", + "documentation": "

The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit.

" + }, + "ValueKey": { + "shape": "ValueKey", + "documentation": "

The field within the event object that the metric value is sourced from.

If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is useful if you just want to count the number of events that the filter catches.

If this metric is sent to CloudWatch Evidently, this field will be passed to Evidently raw and Evidently will handle data extraction from the event.

" + } + }, + "documentation": "

Use this structure to define one extended metric that RUM will send to CloudWatch or CloudWatch Evidently. For more information, see Additional metrics that you can send to CloudWatch and CloudWatch Evidently.

Only certain combinations of values for Name, ValueKey, and EventPattern are valid. In addition to what is displayed in the list below, the EventPattern can also include information used by the DimensionKeys field.

" + }, + "MetricDefinitions": { + "type": "list", + "member": { + "shape": "MetricDefinition" + } + }, + "MetricDefinitionsRequest": { + "type": "list", + "member": { + "shape": "MetricDefinitionRequest" + } + }, + "MetricDestination": { + "type": "string", + "enum": [ + "CloudWatch", + "Evidently" + ] + }, + "MetricDestinationSummary": { + "type": "structure", + "members": { + "Destination": { + "shape": "MetricDestination", + "documentation": "

Specifies whether the destination is CloudWatch or Evidently.

" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

If the destination is Evidently, this specifies the ARN of the Evidently experiment that receives the metrics.

" + }, + "IamRoleArn": { + "shape": "IamRoleArn", + "documentation": "

This field appears only when the destination is Evidently. It specifies the ARN of the IAM role that is used to write to the Evidently experiment that receives the metrics.

" + } + }, + "documentation": "

A structure that displays information about one destination that CloudWatch RUM sends extended metrics to.

" + }, + "MetricDestinationSummaryList": { + "type": "list", + "member": { + "shape": "MetricDestinationSummary" + } + }, + "MetricName": { + "type": "string", + "max": 255, + "min": 1 + }, "Pages": { "type": "list", "member": { @@ -784,6 +1463,37 @@ "type": "structure", "members": {} }, + "PutRumMetricsDestinationRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the CloudWatch RUM app monitor that will send the metrics.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.

" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.

" + }, + "IamRoleArn": { + "shape": "IamRoleArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.

" + } + } + }, + "PutRumMetricsDestinationResponse": { + "type": "structure", + "members": {} + }, "QueryFilter": { "type": "structure", "members": { @@ -963,6 +1673,11 @@ "Token": { "type": "string" }, + "UnitLabel": { + "type": "string", + "max": 256, + "min": 1 + }, "UntagResourceRequest": { "type": "structure", "required": [ @@ -1018,11 +1733,48 @@ "type": "structure", "members": {} }, + "UpdateRumMetricDefinitionRequest": { + "type": "structure", + "required": [ + "AppMonitorName", + "Destination", + "MetricDefinition", + "MetricDefinitionId" + ], + "members": { + "AppMonitorName": { + "shape": "AppMonitorName", + "documentation": "

The name of the CloudWatch RUM app monitor that sends these metrics.

", + "location": "uri", + "locationName": "AppMonitorName" + }, + "Destination": { + "shape": "MetricDestination", + "documentation": "

The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment.

" + }, + "DestinationArn": { + "shape": "DestinationArn", + "documentation": "

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

" + }, + "MetricDefinition": { + "shape": "MetricDefinitionRequest", + "documentation": "

A structure that contains the new definition that you want to use for this metric.

" + }, + "MetricDefinitionId": { + "shape": "MetricDefinitionId", + "documentation": "

The ID of the metric definition to update.

" + } + } + }, + "UpdateRumMetricDefinitionResponse": { + "type": "structure", + "members": {} + }, "Url": { "type": "string", "max": 1260, "min": 1, - "pattern": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)" + "pattern": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&*//=]*)" }, "UserDetails": { "type": "structure", @@ -1037,6 +1789,11 @@ } }, "documentation": "

A structure that contains information about the user session that this batch of events was collected from.

" + }, + "ValueKey": { + "type": "string", + "max": 280, + "min": 1 } }, "documentation": "

With Amazon CloudWatch RUM, you can perform real-user monitoring to collect client-side data about your web application performance from actual user sessions in real time. The data collected includes page load times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and also see breakdowns by the browsers and devices that your customers use.

 <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error messages, stack traces, and user sessions. You can also use RUM to understand the range of end-user impact including the number of users, geolocations, and browsers used.</p> 
" diff --git a/apis/rum-2018-05-10.paginators.json b/apis/rum-2018-05-10.paginators.json index cf26166d6b..67cc19335e 100644 --- a/apis/rum-2018-05-10.paginators.json +++ b/apis/rum-2018-05-10.paginators.json @@ -1,5 +1,11 @@ { "pagination": { + "BatchGetRumMetricDefinitions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "MetricDefinitions" + }, "GetAppMonitorData": { "input_token": "NextToken", "output_token": "NextToken", @@ -11,6 +17,12 @@ "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "AppMonitorSummaries" + }, + "ListRumMetricsDestinations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Destinations" } } } diff --git a/clients/devopsguru.d.ts b/clients/devopsguru.d.ts index 9c7a3cbad8..eb4b149a94 100644 --- a/clients/devopsguru.d.ts +++ b/clients/devopsguru.d.ts @@ -212,11 +212,11 @@ declare class DevOpsGuru extends Service { */ removeNotificationChannel(callback?: (err: AWSError, data: DevOpsGuru.Types.RemoveNotificationChannelResponse) => void): Request; /** - * Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search. + * Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search. */ searchInsights(params: DevOpsGuru.Types.SearchInsightsRequest, callback?: (err: AWSError, data: DevOpsGuru.Types.SearchInsightsResponse) => void): Request; /** - * Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search. + * Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE). Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search. */ searchInsights(callback?: (err: AWSError, data: DevOpsGuru.Types.SearchInsightsResponse) => void): Request; /** @@ -301,6 +301,7 @@ declare namespace DevOpsGuru { */ Status?: EventSourceOptInStatus; } + export type AnalyzedResourceCount = number; export interface AnomalousLogGroup { /** * The name of the CloudWatch log group. @@ -419,6 +420,10 @@ declare namespace DevOpsGuru { * Information about the health of the Amazon Web Services resources in your account that are specified by an Amazon Web Services CloudFormation stack, including the number of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) of closed insights. */ Insight?: InsightHealth; + /** + * Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services CloudFormation stack. + */ + AnalyzedResourceCount?: AnalyzedResourceCount; } export type CloudFormationHealths = CloudFormationHealth[]; export type CloudWatchMetricDataStatusCode = "Complete"|"InternalError"|"PartialData"|string; @@ -534,6 +539,10 @@ declare namespace DevOpsGuru { * The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the last hour. */ ResourceHours: ResourceHours; + /** + * Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. + */ + AnalyzedResourceCount?: AnalyzedResourceCount; } export interface DescribeAccountOverviewRequest { /** @@ -1131,7 +1140,7 @@ declare namespace DevOpsGuru { /** * Filters to determine which monitored resources you want to retrieve. You can filter by resource type or resource permission status. */ - Filters: ListMonitoredResourcesFilters; + Filters?: ListMonitoredResourcesFilters; /** * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. */ @@ -1299,6 +1308,11 @@ declare namespace DevOpsGuru { * The permission status of a resource. */ ResourcePermission?: ResourcePermission; + /** + * The time at which DevOps Guru last updated this resource. + */ + LastUpdated?: Timestamp; + ResourceCollection?: ResourceCollection; } export type MonitoredResourceIdentifiers = MonitoredResourceIdentifier[]; export type MonitoredResourceName = string; @@ -1997,7 +2011,7 @@ declare namespace DevOpsGuru { export type ResourceName = string; export type ResourcePermission = "FULL_PERMISSION"|"MISSING_PERMISSION"|string; export type ResourceType = string; - export type ResourceTypeFilter = "LOG_GROUPS"|string; + export type ResourceTypeFilter = "LOG_GROUPS"|"CLOUDFRONT_DISTRIBUTION"|"DYNAMODB_TABLE"|"EC2_NAT_GATEWAY"|"ECS_CLUSTER"|"ECS_SERVICE"|"EKS_CLUSTER"|"ELASTIC_BEANSTALK_ENVIRONMENT"|"ELASTIC_LOAD_BALANCER_LOAD_BALANCER"|"ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER"|"ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP"|"ELASTICACHE_CACHE_CLUSTER"|"ELASTICSEARCH_DOMAIN"|"KINESIS_STREAM"|"LAMBDA_FUNCTION"|"OPEN_SEARCH_SERVICE_DOMAIN"|"RDS_DB_INSTANCE"|"RDS_DB_CLUSTER"|"REDSHIFT_CLUSTER"|"ROUTE53_HOSTED_ZONE"|"ROUTE53_HEALTH_CHECK"|"S3_BUCKET"|"SAGEMAKER_ENDPOINT"|"SNS_TOPIC"|"SQS_QUEUE"|"STEP_FUNCTIONS_ACTIVITY"|"STEP_FUNCTIONS_STATE_MACHINE"|string; export type ResourceTypeFilters = ResourceTypeFilter[]; export type SearchInsightsAccountIdList = AwsAccountId[]; export interface SearchInsightsFilters { @@ -2117,6 +2131,10 @@ declare namespace DevOpsGuru { * Represents the health of an Amazon Web Services service. This is a ServiceInsightHealth that contains the number of open proactive and reactive insights for this service. */ Insight?: ServiceInsightHealth; + /** + * Number of resources that DevOps Guru is monitoring in an analyzed Amazon Web Services service. + */ + AnalyzedResourceCount?: AnalyzedResourceCount; } export type ServiceHealths = ServiceHealth[]; export interface ServiceInsightHealth { @@ -2241,6 +2259,10 @@ declare namespace DevOpsGuru { * Information about the health of the Amazon Web Services resources in your account that are specified by an Amazon Web Services tag, including the number of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) of closed insights. */ Insight?: InsightHealth; + /** + * Number of resources that DevOps Guru is monitoring in your account that are specified by an Amazon Web Services tag. + */ + AnalyzedResourceCount?: AnalyzedResourceCount; } export type TagHealths = TagHealth[]; export type TagValue = string; diff --git a/clients/globalaccelerator.d.ts b/clients/globalaccelerator.d.ts index 0505f853b4..8569d04a75 100644 --- a/clients/globalaccelerator.d.ts +++ b/clients/globalaccelerator.d.ts @@ -19,6 +19,14 @@ declare class GlobalAccelerator extends Service { * Associate a virtual private cloud (VPC) subnet endpoint with your custom routing accelerator. The listener port range must be large enough to support the number of IP addresses that can be specified in your subnet. The number of ports required is: subnet size times the number of ports per destination EC2 instances. For example, a subnet defined as /24 requires a listener port range of at least 255 ports. Note: You must have enough remaining listener ports available to map to the subnet ports, or the call will fail with a LimitExceededException. By default, all destinations in a subnet in a custom routing accelerator cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation. */ addCustomRoutingEndpoints(callback?: (err: AWSError, data: GlobalAccelerator.Types.AddCustomRoutingEndpointsResponse) => void): Request; + /** + * Add endpoints to an endpoint group. The AddEndpoints API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API). There are two advantages to using AddEndpoints to add endpoints: It's faster, because Global Accelerator only has to resolve the new endpoints that you're adding. It's more convenient, because you don't need to specify all of the current endpoints that are already in the endpoint group in addition to the new endpoints that you want to add. + */ + addEndpoints(params: GlobalAccelerator.Types.AddEndpointsRequest, callback?: (err: AWSError, data: GlobalAccelerator.Types.AddEndpointsResponse) => void): Request; + /** + * Add endpoints to an endpoint group. The AddEndpoints API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API). There are two advantages to using AddEndpoints to add endpoints: It's faster, because Global Accelerator only has to resolve the new endpoints that you're adding. It's more convenient, because you don't need to specify all of the current endpoints that are already in the endpoint group in addition to the new endpoints that you want to add. + */ + addEndpoints(callback?: (err: AWSError, data: GlobalAccelerator.Types.AddEndpointsResponse) => void): Request; /** * Advertises an IPv4 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of propagation delays. To stop advertising the BYOIP address range, use WithdrawByoipCidr. For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide. */ @@ -307,6 +315,14 @@ declare class GlobalAccelerator extends Service { * Remove endpoints from a custom routing accelerator. */ removeCustomRoutingEndpoints(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; + /** + * Remove endpoints from an endpoint group. The RemoveEndpoints API operation is the recommended option for removing endpoints. The alternative is to remove endpoints by updating an endpoint group by using the UpdateEndpointGroup API operation. There are two advantages to using AddEndpoints to remove endpoints instead: It's more convenient, because you only need to specify the endpoints that you want to remove. With the UpdateEndpointGroup API operation, you must specify all of the endpoints in the endpoint group except the ones that you want to remove from the group. It's faster, because Global Accelerator doesn't need to resolve any endpoints. With the UpdateEndpointGroup API operation, Global Accelerator must resolve all of the endpoints that remain in the group. + */ + removeEndpoints(params: GlobalAccelerator.Types.RemoveEndpointsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; + /** + * Remove endpoints from an endpoint group. The RemoveEndpoints API operation is the recommended option for removing endpoints. The alternative is to remove endpoints by updating an endpoint group by using the UpdateEndpointGroup API operation. There are two advantages to using AddEndpoints to remove endpoints instead: It's more convenient, because you only need to specify the endpoints that you want to remove. With the UpdateEndpointGroup API operation, you must specify all of the endpoints in the endpoint group except the ones that you want to remove from the group. It's faster, because Global Accelerator doesn't need to resolve any endpoints. With the UpdateEndpointGroup API operation, Global Accelerator must resolve all of the endpoints that remain in the group. + */ + removeEndpoints(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; /** * Add tags to an accelerator resource. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide. */ @@ -411,7 +427,7 @@ declare namespace GlobalAccelerator { */ IpSets?: IpSets; /** - * The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses). For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide. + * The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses. For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide. */ DnsName?: GenericString; /** @@ -427,7 +443,7 @@ declare namespace GlobalAccelerator { */ LastModifiedTime?: Timestamp; /** - * The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses. The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com. Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses. For more information, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide. + * The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses. The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com. Note: Global Accelerator also assigns a default DNS name, DnsName, to your accelerator that points just to the static IPv4 addresses. For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide. */ DualStackDnsName?: GenericString; /** @@ -482,6 +498,26 @@ declare namespace GlobalAccelerator { */ EndpointGroupArn?: GenericString; } + export interface AddEndpointsRequest { + /** + * The list of endpoint objects. + */ + EndpointConfigurations: EndpointConfigurations; + /** + * The Amazon Resource Name (ARN) of the endpoint group. + */ + EndpointGroupArn: GenericString; + } + export interface AddEndpointsResponse { + /** + * The list of endpoint objects. + */ + EndpointDescriptions?: EndpointDescriptions; + /** + * The Amazon Resource Name (ARN) of the endpoint group. + */ + EndpointGroupArn?: GenericString; + } export interface AdvertiseByoipCidrRequest { /** * The address range, in CIDR notation. This must be the exact range that you provisioned. You can't advertise only a portion of the provisioned range. @@ -764,7 +800,7 @@ declare namespace GlobalAccelerator { */ IpSets?: IpSets; /** - * The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator (two IPv4 addresses and two IPv6 addresses). For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the Global Accelerator Developer Guide. + * The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses. The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com. If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses. For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide. */ DnsName?: GenericString; /** @@ -1157,6 +1193,17 @@ declare namespace GlobalAccelerator { PortOverrides?: PortOverrides; } export type EndpointGroups = EndpointGroup[]; + export interface EndpointIdentifier { + /** + * An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. An Application Load Balancer can be either internal or internet-facing. + */ + EndpointId: GenericString; + /** + * Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. If the value is set to true, the client's IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the endpoint fronted by the accelerator. + */ + ClientIPPreservationEnabled?: GenericBoolean; + } + export type EndpointIdentifiers = EndpointIdentifier[]; export type EndpointIds = GenericString[]; export type EndpointWeight = number; export type GenericBoolean = boolean; @@ -1509,6 +1556,16 @@ declare namespace GlobalAccelerator { */ EndpointGroupArn: GenericString; } + export interface RemoveEndpointsRequest { + /** + * The identifiers of the endpoints that you want to remove. + */ + EndpointIdentifiers: EndpointIdentifiers; + /** + * The Amazon Resource Name (ARN) of the endpoint group. + */ + EndpointGroupArn: GenericString; + } export type ResourceArn = string; export interface SocketAddress { /** diff --git a/clients/resiliencehub.d.ts b/clients/resiliencehub.d.ts index f1cf1ffd2f..db5b720537 100644 --- a/clients/resiliencehub.d.ts +++ b/clients/resiliencehub.d.ts @@ -428,7 +428,7 @@ declare namespace Resiliencehub { */ resiliencyScore?: Double; /** - * The status of the action. + * The status of the application. */ status?: AppStatusType; /** @@ -622,6 +622,10 @@ declare namespace Resiliencehub { * The current resiliency score for the application. */ resiliencyScore?: Double; + /** + * The status of the application. + */ + status?: AppStatusType; } export type AppSummaryList = AppSummary[]; export type AppTemplateBody = string; @@ -701,7 +705,7 @@ declare namespace Resiliencehub { suggestedChanges?: SuggestedChangesList; } export type ConfigRecommendationList = ConfigRecommendation[]; - export type ConfigRecommendationOptimizationType = "LeastCost"|"LeastChange"|"BestAZRecovery"|"LeastErrors"|"BestAttainable"|string; + export type ConfigRecommendationOptimizationType = "LeastCost"|"LeastChange"|"BestAZRecovery"|"LeastErrors"|"BestAttainable"|"BestRegionRecovery"|string; export interface Cost { /** * The cost amount. @@ -2135,7 +2139,7 @@ declare namespace Resiliencehub { */ dataLocationConstraint?: DataLocationConstraint; /** - * The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds. If you do not want to specify regional targets for a regional policy, you must set the values of rpoInSecs and rtoInSecs to -1. + * The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds. */ policy?: DisruptionPolicy; /** diff --git a/clients/rum.d.ts b/clients/rum.d.ts index 46aa71089c..8e3ebc2fa7 100644 --- a/clients/rum.d.ts +++ b/clients/rum.d.ts @@ -11,6 +11,30 @@ declare class RUM extends Service { */ constructor(options?: RUM.Types.ClientConfiguration) config: Config & RUM.Types.ClientConfiguration; + /** + * Specifies the extended metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently. By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in CloudWatch metrics that you can collect with CloudWatch RUM. If you also send extended metrics, you can send metrics to Evidently as well as CloudWatch, and you can also optionally send the metrics with additional dimensions. The valid dimension names for the additional dimensions are BrowserName, CountryCode, DeviceType, FileType, OSName, and PageId. For more information, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently. The maximum number of metric definitions that you can specify in one BatchCreateRumMetricDefinitions operation is 200. <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p> + */ + batchCreateRumMetricDefinitions(params: RUM.Types.BatchCreateRumMetricDefinitionsRequest, callback?: (err: AWSError, data: RUM.Types.BatchCreateRumMetricDefinitionsResponse) => void): Request; + /** + * Specifies the extended metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently. By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in CloudWatch metrics that you can collect with CloudWatch RUM. If you also send extended metrics, you can send metrics to Evidently as well as CloudWatch, and you can also optionally send the metrics with additional dimensions. The valid dimension names for the additional dimensions are BrowserName, CountryCode, DeviceType, FileType, OSName, and PageId. For more information, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently. The maximum number of metric definitions that you can specify in one BatchCreateRumMetricDefinitions operation is 200. <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p> + */ + batchCreateRumMetricDefinitions(callback?: (err: AWSError, data: RUM.Types.BatchCreateRumMetricDefinitionsResponse) => void): Request; + /** + * Removes the specified metrics from being sent to an extended metrics destination. If some metric definition IDs specified in a BatchDeleteRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted. The maximum number of metric definitions that you can specify in one BatchDeleteRumMetricDefinitions operation is 200. + */ + batchDeleteRumMetricDefinitions(params: RUM.Types.BatchDeleteRumMetricDefinitionsRequest, callback?: (err: AWSError, data: RUM.Types.BatchDeleteRumMetricDefinitionsResponse) => void): Request; + /** + * Removes the specified metrics from being sent to an extended metrics destination. If some metric definition IDs specified in a BatchDeleteRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted. The maximum number of metric definitions that you can specify in one BatchDeleteRumMetricDefinitions operation is 200. + */ + batchDeleteRumMetricDefinitions(callback?: (err: AWSError, data: RUM.Types.BatchDeleteRumMetricDefinitionsResponse) => void): Request; + /** + * Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination. + */ + batchGetRumMetricDefinitions(params: RUM.Types.BatchGetRumMetricDefinitionsRequest, callback?: (err: AWSError, data: RUM.Types.BatchGetRumMetricDefinitionsResponse) => void): Request; + /** + * Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination. + */ + batchGetRumMetricDefinitions(callback?: (err: AWSError, data: RUM.Types.BatchGetRumMetricDefinitionsResponse) => void): Request; /** * Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior. You use this operation only to create a new app monitor. To update an existing app monitor, use UpdateAppMonitor instead. After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated? */ @@ -27,6 +51,14 @@ declare class RUM extends Service { * Deletes an existing app monitor. This immediately stops the collection of data. */ deleteAppMonitor(callback?: (err: AWSError, data: RUM.Types.DeleteAppMonitorResponse) => void): Request; + /** + * Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination. + */ + deleteRumMetricsDestination(params: RUM.Types.DeleteRumMetricsDestinationRequest, callback?: (err: AWSError, data: RUM.Types.DeleteRumMetricsDestinationResponse) => void): Request; + /** + * Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination. + */ + deleteRumMetricsDestination(callback?: (err: AWSError, data: RUM.Types.DeleteRumMetricsDestinationResponse) => void): Request; /** * Retrieves the complete configuration information for one app monitor. */ @@ -51,6 +83,14 @@ declare class RUM extends Service { * Returns a list of the Amazon CloudWatch RUM app monitors in the account. */ listAppMonitors(callback?: (err: AWSError, data: RUM.Types.ListAppMonitorsResponse) => void): Request; + /** + * Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics. + */ + listRumMetricsDestinations(params: RUM.Types.ListRumMetricsDestinationsRequest, callback?: (err: AWSError, data: RUM.Types.ListRumMetricsDestinationsResponse) => void): Request; + /** + * Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics. + */ + listRumMetricsDestinations(callback?: (err: AWSError, data: RUM.Types.ListRumMetricsDestinationsResponse) => void): Request; /** * Displays the tags associated with a CloudWatch RUM resource. */ @@ -67,6 +107,14 @@ declare class RUM extends Service { * Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code snippet that RUM generates for you to add to your application includes PutRumEvents operations to send this data to RUM. Each PutRumEvents operation can send a batch of events from one user session. */ putRumEvents(callback?: (err: AWSError, data: RUM.Types.PutRumEventsResponse) => void): Request; + /** + * Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see AddRumMetrics. + */ + putRumMetricsDestination(params: RUM.Types.PutRumMetricsDestinationRequest, callback?: (err: AWSError, data: RUM.Types.PutRumMetricsDestinationResponse) => void): Request; + /** + * Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see AddRumMetrics. + */ + putRumMetricsDestination(callback?: (err: AWSError, data: RUM.Types.PutRumMetricsDestinationResponse) => void): Request; /** * Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a resource. For more information, see Tagging Amazon Web Services resources. */ @@ -91,6 +139,14 @@ declare class RUM extends Service { * Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept. You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource. To create a new app monitor, use CreateAppMonitor. After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated? */ updateAppMonitor(callback?: (err: AWSError, data: RUM.Types.UpdateAppMonitorResponse) => void): Request; + /** + * Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions. + */ + updateRumMetricDefinition(params: RUM.Types.UpdateRumMetricDefinitionRequest, callback?: (err: AWSError, data: RUM.Types.UpdateRumMetricDefinitionResponse) => void): Request; + /** + * Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions. + */ + updateRumMetricDefinition(callback?: (err: AWSError, data: RUM.Types.UpdateRumMetricDefinitionResponse) => void): Request; } declare namespace RUM { export interface AppMonitor { @@ -145,7 +201,7 @@ declare namespace RUM { */ ExcludedPages?: Pages; /** - * A list of pages in the CloudWatch RUM console that are to be displayed with a "favorite" icon. + * A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM console. */ FavoritePages?: FavoritePages; /** @@ -161,7 +217,7 @@ declare namespace RUM { */ IncludedPages?: Pages; /** - * Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. If you omit this parameter, the default of 10 is used. + * Specifies the portion of user sessions to use for RUM data collection. Choosing a higher portion gives you more data but also incurs more costs. The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled. If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled. */ SessionSampleRate?: SessionSampleRate; /** @@ -210,6 +266,124 @@ declare namespace RUM { } export type AppMonitorSummaryList = AppMonitorSummary[]; export type Arn = string; + export interface BatchCreateRumMetricDefinitionsError { + /** + * The error code. + */ + ErrorCode: String; + /** + * The error message for this metric definition. + */ + ErrorMessage: String; + /** + * The metric definition that caused this error. + */ + MetricDefinition: MetricDefinitionRequest; + } + export type BatchCreateRumMetricDefinitionsErrors = BatchCreateRumMetricDefinitionsError[]; + export interface BatchCreateRumMetricDefinitionsRequest { + /** + * The name of the CloudWatch RUM app monitor that is to send the metrics. + */ + AppMonitorName: AppMonitorName; + /** + * The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment. + */ + Destination: MetricDestination; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination. + */ + DestinationArn?: DestinationArn; + /** + * An array of structures which define the metrics that you want to send. + */ + MetricDefinitions: MetricDefinitionsRequest; + } + export interface BatchCreateRumMetricDefinitionsResponse { + /** + * An array of error objects, if the operation caused any errors. + */ + Errors: BatchCreateRumMetricDefinitionsErrors; + /** + * An array of structures that define the extended metrics. + */ + MetricDefinitions?: MetricDefinitions; + } + export interface BatchDeleteRumMetricDefinitionsError { + /** + * The error code. + */ + ErrorCode: String; + /** + * The error message for this metric definition. + */ + ErrorMessage: String; + /** + * The ID of the metric definition that caused this error. + */ + MetricDefinitionId: MetricDefinitionId; + } + export type BatchDeleteRumMetricDefinitionsErrors = BatchDeleteRumMetricDefinitionsError[]; + export interface BatchDeleteRumMetricDefinitionsRequest { + /** + * The name of the CloudWatch RUM app monitor that is sending these metrics. + */ + AppMonitorName: AppMonitorName; + /** + * Defines the destination where you want to stop sending the specified metrics. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. + */ + Destination: MetricDestination; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that was receiving the metrics that are being deleted. + */ + DestinationArn?: DestinationArn; + /** + * An array of structures which define the metrics that you want to stop sending. + */ + MetricDefinitionIds: MetricDefinitionIds; + } + export interface BatchDeleteRumMetricDefinitionsResponse { + /** + * An array of error objects, if the operation caused any errors. + */ + Errors: BatchDeleteRumMetricDefinitionsErrors; + /** + * The IDs of the metric definitions that were deleted. + */ + MetricDefinitionIds?: MetricDefinitionIds; + } + export interface BatchGetRumMetricDefinitionsRequest { + /** + * The name of the CloudWatch RUM app monitor that is sending the metrics. + */ + AppMonitorName: AppMonitorName; + /** + * The type of destination that you want to view metrics for. Valid values are CloudWatch and Evidently. + */ + Destination: MetricDestination; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination. + */ + DestinationArn?: DestinationArn; + /** + * The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. To retrieve the remaining results, make another call with the returned NextToken value. + */ + MaxResults?: MaxResultsInteger; + /** + * Use the token returned by the previous operation to request the next page of results. + */ + NextToken?: String; + } + export interface BatchGetRumMetricDefinitionsResponse { + /** + * An array of structures that display information about the metrics that are sent by the specified app monitor to the specified destination. + */ + MetricDefinitions?: MetricDefinitions; + /** + * A token that you can use in a subsequent operation to retrieve the next set of results. + */ + NextToken?: String; + } export type Boolean = boolean; export interface CreateAppMonitorRequest { /** @@ -263,8 +437,29 @@ declare namespace RUM { } export interface DeleteAppMonitorResponse { } + export interface DeleteRumMetricsDestinationRequest { + /** + * The name of the app monitor that is sending metrics to the destination that you want to delete. + */ + AppMonitorName: AppMonitorName; + /** + * The type of destination to delete. Valid values are CloudWatch and Evidently. + */ + Destination: MetricDestination; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete. + */ + DestinationArn?: DestinationArn; + } + export interface DeleteRumMetricsDestinationResponse { + } + export type DestinationArn = string; + export type DimensionKey = string; + export type DimensionKeysMap = {[key: string]: DimensionName}; + export type DimensionName = string; export type EventData = string; export type EventDataList = EventData[]; + export type EventPattern = string; export type FavoritePages = String[]; export interface GetAppMonitorDataRequest { /** @@ -311,14 +506,14 @@ declare namespace RUM { AppMonitor?: AppMonitor; } export type ISOTimestampString = string; + export type IamRoleArn = string; export type IdentityPoolId = string; - export type Integer = number; export type JsonValue = string; export interface ListAppMonitorsRequest { /** - * The maximum number of results to return in one operation. + * The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. */ - MaxResults?: Integer; + MaxResults?: MaxResultsInteger; /** * Use the token returned by the previous operation to request the next page of results. */ @@ -334,6 +529,30 @@ declare namespace RUM { */ NextToken?: String; } + export interface ListRumMetricsDestinationsRequest { + /** + * The name of the app monitor associated with the destinations that you want to retrieve. + */ + AppMonitorName: AppMonitorName; + /** + * The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. To retrieve the remaining results, make another call with the returned NextToken value. + */ + MaxResults?: MaxResultsInteger; + /** + * Use the token returned by the previous operation to request the next page of results. + */ + NextToken?: String; + } + export interface ListRumMetricsDestinationsResponse { + /** + * The list of CloudWatch RUM extended metrics destinations associated with the app monitor that you specified. + */ + Destinations?: MetricDestinationSummaryList; + /** + * A token that you can use in a subsequent operation to retrieve the next set of results. + */ + NextToken?: String; + } export interface ListTagsForResourceRequest { /** * The ARN of the resource that you want to see the tags of. @@ -351,6 +570,76 @@ declare namespace RUM { Tags: TagMap; } export type MaxQueryResults = number; + export type MaxResultsInteger = number; + export interface MetricDefinition { + /** + * This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch The value of this field is used only if the metric destination is CloudWatch. If the metric destination is Evidently, the value of DimensionKeys is ignored. + */ + DimensionKeys?: DimensionKeysMap; + /** + * The pattern that defines the metric. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination. If the metrics destination is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions. + */ + EventPattern?: EventPattern; + /** + * The ID of this metric definition. + */ + MetricDefinitionId: MetricDefinitionId; + /** + * The name of the metric that is defined in this structure. + */ + Name: MetricName; + /** + * Use this field only if you are sending this metric to CloudWatch. It defines the CloudWatch metric unit that this metric is measured in. + */ + UnitLabel?: UnitLabel; + /** + * The field within the event object that the metric value is sourced from. + */ + ValueKey?: ValueKey; + } + export type MetricDefinitionId = string; + export type MetricDefinitionIds = MetricDefinitionId[]; + export interface MetricDefinitionRequest { + /** + * Use this field only if you are sending the metric to CloudWatch. This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch. Valid values for the entries in this field are the following: "metadata.pageId": "PageId" "metadata.browserName": "BrowserName" "metadata.deviceType": "DeviceType" "metadata.osName": "OSName" "metadata.countryCode": "CountryCode" "event_details.fileType": "FileType" <p> All dimensions listed in this field must also be included in <code>EventPattern</code>.</p> + */ + DimensionKeys?: DimensionKeysMap; + /** + * The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination. When you define extended metrics, the metric definition is not valid if EventPattern is omitted. Example event patterns: '{ "event_type": ["com.amazon.rum.js_error_event"], "metadata": { "browserName": [ "Chrome", "Safari" ], } }' '{ "event_type": ["com.amazon.rum.performance_navigation_event"], "metadata": { "browserName": [ "Chrome", "Firefox" ] }, "event_details": { "duration": [{ "numeric": [ "<", 2000 ] }] } }' '{ "event_type": ["com.amazon.rum.performance_navigation_event"], "metadata": { "browserName": [ "Chrome", "Safari" ], "countryCode": [ "US" ] }, "event_details": { "duration": [{ "numeric": [ ">=", 2000, "<", 8000 ] }] } }' If the metrics destination' is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions. + */ + EventPattern?: EventPattern; + /** + * The name for the metric that is defined in this structure. Valid values are the following: PerformanceNavigationDuration PerformanceResourceDuration NavigationSatisfiedTransaction NavigationToleratedTransaction NavigationFrustratedTransaction WebVitalsCumulativeLayoutShift WebVitalsFirstInputDelay WebVitalsLargestContentfulPaint JsErrorCount HttpErrorCount SessionCount + */ + Name: MetricName; + /** + * The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit. + */ + UnitLabel?: UnitLabel; + /** + * The field within the event object that the metric value is sourced from. If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is useful if you just want to count the number of events that the filter catches. If this metric is sent to CloudWatch Evidently, this field will be passed to Evidently raw and Evidently will handle data extraction from the event. + */ + ValueKey?: ValueKey; + } + export type MetricDefinitions = MetricDefinition[]; + export type MetricDefinitionsRequest = MetricDefinitionRequest[]; + export type MetricDestination = "CloudWatch"|"Evidently"|string; + export interface MetricDestinationSummary { + /** + * Specifies whether the destination is CloudWatch or Evidently. + */ + Destination?: MetricDestination; + /** + * If the destination is Evidently, this specifies the ARN of the Evidently experiment that receives the metrics. + */ + DestinationArn?: DestinationArn; + /** + * This field appears only when the destination is Evidently. It specifies the ARN of the IAM role that is used to write to the Evidently experiment that receives the metrics. + */ + IamRoleArn?: IamRoleArn; + } + export type MetricDestinationSummaryList = MetricDestinationSummary[]; + export type MetricName = string; export type Pages = Url[]; export interface PutRumEventsRequest { /** @@ -376,6 +665,26 @@ declare namespace RUM { } export interface PutRumEventsResponse { } + export interface PutRumMetricsDestinationRequest { + /** + * The name of the CloudWatch RUM app monitor that will send the metrics. + */ + AppMonitorName: AppMonitorName; + /** + * Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. + */ + Destination: MetricDestination; + /** + * Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. + */ + DestinationArn?: DestinationArn; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment. + */ + IamRoleArn?: IamRoleArn; + } + export interface PutRumMetricsDestinationResponse { + } export interface QueryFilter { /** * The name of a key to search for. The filter returns only the events that match the Name and Values that you specify. Valid values for Name are Browser | Device | Country | Page | OS | EventType | Invert @@ -447,6 +756,7 @@ declare namespace RUM { } export type Timestamp = Date; export type Token = string; + export type UnitLabel = string; export interface UntagResourceRequest { /** * The ARN of the CloudWatch RUM resource that you're removing tags from. @@ -479,6 +789,30 @@ declare namespace RUM { } export interface UpdateAppMonitorResponse { } + export interface UpdateRumMetricDefinitionRequest { + /** + * The name of the CloudWatch RUM app monitor that sends these metrics. + */ + AppMonitorName: AppMonitorName; + /** + * The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment. + */ + Destination: MetricDestination; + /** + * This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination. + */ + DestinationArn?: DestinationArn; + /** + * A structure that contains the new definition that you want to use for this metric. + */ + MetricDefinition: MetricDefinitionRequest; + /** + * The ID of the metric definition to update. + */ + MetricDefinitionId: MetricDefinitionId; + } + export interface UpdateRumMetricDefinitionResponse { + } export type Url = string; export interface UserDetails { /** @@ -490,6 +824,7 @@ declare namespace RUM { */ userId?: String; } + export type ValueKey = string; /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ diff --git a/dist/aws-sdk-core-react-native.js b/dist/aws-sdk-core-react-native.js index 1ff7131ed8..36b2478d21 100644 --- a/dist/aws-sdk-core-react-native.js +++ b/dist/aws-sdk-core-react-native.js @@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * @constant */ - VERSION: '2.1236.0', + VERSION: '2.1237.0', /** * @api private @@ -4077,6 +4077,7 @@ return /******/ (function(modules) { // webpackBootstrap property(this, 'documentation', api.documentation); property(this, 'documentationUrl', api.documentationUrl); } + property(this, 'awsQueryCompatible', api.awsQueryCompatible); } /** @@ -7443,10 +7444,13 @@ return /******/ (function(modules) { // webpackBootstrap }); add('ERROR', 'error', function ERROR(err, resp) { - var headers = resp.httpResponse.headers; - var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; - if (queryErrorCode) { - resp.error.code = queryErrorCode.split(';')[0]; + var awsQueryCompatible = resp.request.service.api.awsQueryCompatible; + if (awsQueryCompatible) { + var headers = resp.httpResponse.headers; + var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; + if (queryErrorCode && queryErrorCode.includes(';')) { + resp.error.code = queryErrorCode.split(';')[0]; + } } }, true); diff --git a/dist/aws-sdk-react-native.js b/dist/aws-sdk-react-native.js index cbb95589c8..ec4241bc54 100644 --- a/dist/aws-sdk-react-native.js +++ b/dist/aws-sdk-react-native.js @@ -395,7 +395,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * @constant */ - VERSION: '2.1236.0', + VERSION: '2.1237.0', /** * @api private @@ -4389,6 +4389,7 @@ return /******/ (function(modules) { // webpackBootstrap property(this, 'documentation', api.documentation); property(this, 'documentationUrl', api.documentationUrl); } + property(this, 'awsQueryCompatible', api.awsQueryCompatible); } /** @@ -7755,10 +7756,13 @@ return /******/ (function(modules) { // webpackBootstrap }); add('ERROR', 'error', function ERROR(err, resp) { - var headers = resp.httpResponse.headers; - var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; - if (queryErrorCode) { - resp.error.code = queryErrorCode.split(';')[0]; + var awsQueryCompatible = resp.request.service.api.awsQueryCompatible; + if (awsQueryCompatible) { + var headers = resp.httpResponse.headers; + var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; + if (queryErrorCode && queryErrorCode.includes(';')) { + resp.error.code = queryErrorCode.split(';')[0]; + } } }, true); @@ -54927,7 +54931,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 706 */ /***/ (function(module, exports) { - module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-08-08","endpointPrefix":"globalaccelerator","jsonVersion":"1.1","protocol":"json","serviceFullName":"AWS Global Accelerator","serviceId":"Global Accelerator","signatureVersion":"v4","signingName":"globalaccelerator","targetPrefix":"GlobalAccelerator_V20180706","uid":"globalaccelerator-2018-08-08"},"operations":{"AddCustomRoutingEndpoints":{"input":{"type":"structure","required":["EndpointConfigurations","EndpointGroupArn"],"members":{"EndpointConfigurations":{"type":"list","member":{"type":"structure","members":{"EndpointId":{}}}},"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointDescriptions":{"shape":"S6"},"EndpointGroupArn":{}}}},"AdvertiseByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sa"}}}},"AllowCustomRoutingTraffic":{"input":{"type":"structure","required":["EndpointGroupArn","EndpointId"],"members":{"EndpointGroupArn":{},"EndpointId":{},"DestinationAddresses":{"shape":"Sg"},"DestinationPorts":{"shape":"Si"},"AllowAllTrafficToEndpoint":{"type":"boolean"}}}},"CreateAccelerator":{"input":{"type":"structure","required":["Name","IdempotencyToken"],"members":{"Name":{},"IpAddressType":{},"IpAddresses":{"shape":"Sn"},"Enabled":{"type":"boolean"},"IdempotencyToken":{"idempotencyToken":true},"Tags":{"shape":"Sp"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"Su"}}}},"CreateCustomRoutingAccelerator":{"input":{"type":"structure","required":["Name","IdempotencyToken"],"members":{"Name":{},"IpAddressType":{},"IpAddresses":{"shape":"Sn"},"Enabled":{"type":"boolean"},"IdempotencyToken":{"idempotencyToken":true},"Tags":{"shape":"Sp"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S13"}}}},"CreateCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["ListenerArn","EndpointGroupRegion","DestinationConfigurations","IdempotencyToken"],"members":{"ListenerArn":{},"EndpointGroupRegion":{},"DestinationConfigurations":{"type":"list","member":{"type":"structure","required":["FromPort","ToPort","Protocols"],"members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"},"Protocols":{"shape":"S18"}}}},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1b"}}}},"CreateCustomRoutingListener":{"input":{"type":"structure","required":["AcceleratorArn","PortRanges","IdempotencyToken"],"members":{"AcceleratorArn":{},"PortRanges":{"shape":"S1h"},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1k"}}}},"CreateEndpointGroup":{"input":{"type":"structure","required":["ListenerArn","EndpointGroupRegion","IdempotencyToken"],"members":{"ListenerArn":{},"EndpointGroupRegion":{},"EndpointConfigurations":{"shape":"S1m"},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"IdempotencyToken":{"idempotencyToken":true},"PortOverrides":{"shape":"S1v"}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1y"}}}},"CreateListener":{"input":{"type":"structure","required":["AcceleratorArn","PortRanges","Protocol","IdempotencyToken"],"members":{"AcceleratorArn":{},"PortRanges":{"shape":"S1h"},"Protocol":{},"ClientAffinity":{},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"Listener":{"shape":"S25"}}}},"DeleteAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}}},"DeleteCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}}},"DeleteCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}}},"DeleteCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}}},"DeleteEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}}},"DeleteListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}}},"DenyCustomRoutingTraffic":{"input":{"type":"structure","required":["EndpointGroupArn","EndpointId"],"members":{"EndpointGroupArn":{},"EndpointId":{},"DestinationAddresses":{"shape":"Sg"},"DestinationPorts":{"shape":"Si"},"DenyAllTrafficToEndpoint":{"type":"boolean"}}}},"DeprovisionByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sa"}}}},"DescribeAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"Su"}}}},"DescribeAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2j"}}}},"DescribeCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S13"}}}},"DescribeCustomRoutingAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2o"}}}},"DescribeCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1b"}}}},"DescribeCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1k"}}}},"DescribeEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1y"}}}},"DescribeListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S25"}}}},"ListAccelerators":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Accelerators":{"type":"list","member":{"shape":"Su"}},"NextToken":{}}}},"ListByoipCidrs":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"ByoipCidrs":{"type":"list","member":{"shape":"Sa"}},"NextToken":{}}}},"ListCustomRoutingAccelerators":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Accelerators":{"type":"list","member":{"shape":"S13"}},"NextToken":{}}}},"ListCustomRoutingEndpointGroups":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"EndpointGroups":{"type":"list","member":{"shape":"S1b"}},"NextToken":{}}}},"ListCustomRoutingListeners":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Listeners":{"type":"list","member":{"shape":"S1k"}},"NextToken":{}}}},"ListCustomRoutingPortMappings":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"EndpointGroupArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"PortMappings":{"type":"list","member":{"type":"structure","members":{"AcceleratorPort":{"type":"integer"},"EndpointGroupArn":{},"EndpointId":{},"DestinationSocketAddress":{"shape":"S3i"},"Protocols":{"shape":"S18"},"DestinationTrafficState":{}}}},"NextToken":{}}}},"ListCustomRoutingPortMappingsByDestination":{"input":{"type":"structure","required":["EndpointId","DestinationAddress"],"members":{"EndpointId":{},"DestinationAddress":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"DestinationPortMappings":{"type":"list","member":{"type":"structure","members":{"AcceleratorArn":{},"AcceleratorSocketAddresses":{"type":"list","member":{"shape":"S3i"}},"EndpointGroupArn":{},"EndpointId":{},"EndpointGroupRegion":{},"DestinationSocketAddress":{"shape":"S3i"},"IpAddressType":{},"DestinationTrafficState":{}}}},"NextToken":{}}}},"ListEndpointGroups":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"EndpointGroups":{"type":"list","member":{"shape":"S1y"}},"NextToken":{}}}},"ListListeners":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Listeners":{"type":"list","member":{"shape":"S25"}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sp"}}}},"ProvisionByoipCidr":{"input":{"type":"structure","required":["Cidr","CidrAuthorizationContext"],"members":{"Cidr":{},"CidrAuthorizationContext":{"type":"structure","required":["Message","Signature"],"members":{"Message":{},"Signature":{}}}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sa"}}}},"RemoveCustomRoutingEndpoints":{"input":{"type":"structure","required":["EndpointIds","EndpointGroupArn"],"members":{"EndpointIds":{"type":"list","member":{}},"EndpointGroupArn":{}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sp"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"Su"}}}},"UpdateAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2j"}}}},"UpdateCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S13"}}}},"UpdateCustomRoutingAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2o"}}}},"UpdateCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn","PortRanges"],"members":{"ListenerArn":{},"PortRanges":{"shape":"S1h"}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1k"}}}},"UpdateEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{},"EndpointConfigurations":{"shape":"S1m"},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"PortOverrides":{"shape":"S1v"}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1y"}}}},"UpdateListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"PortRanges":{"shape":"S1h"},"Protocol":{},"ClientAffinity":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S25"}}}},"WithdrawByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sa"}}}}},"shapes":{"S6":{"type":"list","member":{"type":"structure","members":{"EndpointId":{}}}},"Sa":{"type":"structure","members":{"Cidr":{},"State":{},"Events":{"type":"list","member":{"type":"structure","members":{"Message":{},"Timestamp":{"type":"timestamp"}}}}}},"Sg":{"type":"list","member":{}},"Si":{"type":"list","member":{"type":"integer"}},"Sn":{"type":"list","member":{}},"Sp":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Su":{"type":"structure","members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"},"IpSets":{"shape":"Sv"},"DnsName":{},"Status":{},"CreatedTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"DualStackDnsName":{},"Events":{"type":"list","member":{"type":"structure","members":{"Message":{},"Timestamp":{"type":"timestamp"}}}}}},"Sv":{"type":"list","member":{"type":"structure","members":{"IpFamily":{"deprecated":true,"deprecatedMessage":"IpFamily has been replaced by IpAddressFamily"},"IpAddresses":{"shape":"Sn"},"IpAddressFamily":{}}}},"S13":{"type":"structure","members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"},"IpSets":{"shape":"Sv"},"DnsName":{},"Status":{},"CreatedTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}},"S18":{"type":"list","member":{}},"S1b":{"type":"structure","members":{"EndpointGroupArn":{},"EndpointGroupRegion":{},"DestinationDescriptions":{"type":"list","member":{"type":"structure","members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"},"Protocols":{"type":"list","member":{}}}}},"EndpointDescriptions":{"shape":"S6"}}},"S1h":{"type":"list","member":{"type":"structure","members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"}}}},"S1k":{"type":"structure","members":{"ListenerArn":{},"PortRanges":{"shape":"S1h"}}},"S1m":{"type":"list","member":{"type":"structure","members":{"EndpointId":{},"Weight":{"type":"integer"},"ClientIPPreservationEnabled":{"type":"boolean"}}}},"S1v":{"type":"list","member":{"type":"structure","members":{"ListenerPort":{"type":"integer"},"EndpointPort":{"type":"integer"}}}},"S1y":{"type":"structure","members":{"EndpointGroupArn":{},"EndpointGroupRegion":{},"EndpointDescriptions":{"type":"list","member":{"type":"structure","members":{"EndpointId":{},"Weight":{"type":"integer"},"HealthState":{},"HealthReason":{},"ClientIPPreservationEnabled":{"type":"boolean"}}}},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"PortOverrides":{"shape":"S1v"}}},"S25":{"type":"structure","members":{"ListenerArn":{},"PortRanges":{"shape":"S1h"},"Protocol":{},"ClientAffinity":{}}},"S2j":{"type":"structure","members":{"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"S2o":{"type":"structure","members":{"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"S3i":{"type":"structure","members":{"IpAddress":{},"Port":{"type":"integer"}}}}} + module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-08-08","endpointPrefix":"globalaccelerator","jsonVersion":"1.1","protocol":"json","serviceFullName":"AWS Global Accelerator","serviceId":"Global Accelerator","signatureVersion":"v4","signingName":"globalaccelerator","targetPrefix":"GlobalAccelerator_V20180706","uid":"globalaccelerator-2018-08-08"},"operations":{"AddCustomRoutingEndpoints":{"input":{"type":"structure","required":["EndpointConfigurations","EndpointGroupArn"],"members":{"EndpointConfigurations":{"type":"list","member":{"type":"structure","members":{"EndpointId":{}}}},"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointDescriptions":{"shape":"S6"},"EndpointGroupArn":{}}}},"AddEndpoints":{"input":{"type":"structure","required":["EndpointConfigurations","EndpointGroupArn"],"members":{"EndpointConfigurations":{"shape":"S9"},"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointDescriptions":{"shape":"Se"},"EndpointGroupArn":{}}}},"AdvertiseByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sj"}}}},"AllowCustomRoutingTraffic":{"input":{"type":"structure","required":["EndpointGroupArn","EndpointId"],"members":{"EndpointGroupArn":{},"EndpointId":{},"DestinationAddresses":{"shape":"Sp"},"DestinationPorts":{"shape":"Sr"},"AllowAllTrafficToEndpoint":{"type":"boolean"}}}},"CreateAccelerator":{"input":{"type":"structure","required":["Name","IdempotencyToken"],"members":{"Name":{},"IpAddressType":{},"IpAddresses":{"shape":"Sv"},"Enabled":{"type":"boolean"},"IdempotencyToken":{"idempotencyToken":true},"Tags":{"shape":"Sx"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S12"}}}},"CreateCustomRoutingAccelerator":{"input":{"type":"structure","required":["Name","IdempotencyToken"],"members":{"Name":{},"IpAddressType":{},"IpAddresses":{"shape":"Sv"},"Enabled":{"type":"boolean"},"IdempotencyToken":{"idempotencyToken":true},"Tags":{"shape":"Sx"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S1b"}}}},"CreateCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["ListenerArn","EndpointGroupRegion","DestinationConfigurations","IdempotencyToken"],"members":{"ListenerArn":{},"EndpointGroupRegion":{},"DestinationConfigurations":{"type":"list","member":{"type":"structure","required":["FromPort","ToPort","Protocols"],"members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"},"Protocols":{"shape":"S1g"}}}},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1j"}}}},"CreateCustomRoutingListener":{"input":{"type":"structure","required":["AcceleratorArn","PortRanges","IdempotencyToken"],"members":{"AcceleratorArn":{},"PortRanges":{"shape":"S1p"},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1s"}}}},"CreateEndpointGroup":{"input":{"type":"structure","required":["ListenerArn","EndpointGroupRegion","IdempotencyToken"],"members":{"ListenerArn":{},"EndpointGroupRegion":{},"EndpointConfigurations":{"shape":"S9"},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"IdempotencyToken":{"idempotencyToken":true},"PortOverrides":{"shape":"S20"}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S23"}}}},"CreateListener":{"input":{"type":"structure","required":["AcceleratorArn","PortRanges","Protocol","IdempotencyToken"],"members":{"AcceleratorArn":{},"PortRanges":{"shape":"S1p"},"Protocol":{},"ClientAffinity":{},"IdempotencyToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{"Listener":{"shape":"S27"}}}},"DeleteAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}}},"DeleteCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}}},"DeleteCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}}},"DeleteCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}}},"DeleteEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}}},"DeleteListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}}},"DenyCustomRoutingTraffic":{"input":{"type":"structure","required":["EndpointGroupArn","EndpointId"],"members":{"EndpointGroupArn":{},"EndpointId":{},"DestinationAddresses":{"shape":"Sp"},"DestinationPorts":{"shape":"Sr"},"DenyAllTrafficToEndpoint":{"type":"boolean"}}}},"DeprovisionByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sj"}}}},"DescribeAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S12"}}}},"DescribeAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2l"}}}},"DescribeCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S1b"}}}},"DescribeCustomRoutingAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2q"}}}},"DescribeCustomRoutingEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S1j"}}}},"DescribeCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1s"}}}},"DescribeEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S23"}}}},"DescribeListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S27"}}}},"ListAccelerators":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Accelerators":{"type":"list","member":{"shape":"S12"}},"NextToken":{}}}},"ListByoipCidrs":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"ByoipCidrs":{"type":"list","member":{"shape":"Sj"}},"NextToken":{}}}},"ListCustomRoutingAccelerators":{"input":{"type":"structure","members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Accelerators":{"type":"list","member":{"shape":"S1b"}},"NextToken":{}}}},"ListCustomRoutingEndpointGroups":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"EndpointGroups":{"type":"list","member":{"shape":"S1j"}},"NextToken":{}}}},"ListCustomRoutingListeners":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Listeners":{"type":"list","member":{"shape":"S1s"}},"NextToken":{}}}},"ListCustomRoutingPortMappings":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"EndpointGroupArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"PortMappings":{"type":"list","member":{"type":"structure","members":{"AcceleratorPort":{"type":"integer"},"EndpointGroupArn":{},"EndpointId":{},"DestinationSocketAddress":{"shape":"S3k"},"Protocols":{"shape":"S1g"},"DestinationTrafficState":{}}}},"NextToken":{}}}},"ListCustomRoutingPortMappingsByDestination":{"input":{"type":"structure","required":["EndpointId","DestinationAddress"],"members":{"EndpointId":{},"DestinationAddress":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"DestinationPortMappings":{"type":"list","member":{"type":"structure","members":{"AcceleratorArn":{},"AcceleratorSocketAddresses":{"type":"list","member":{"shape":"S3k"}},"EndpointGroupArn":{},"EndpointId":{},"EndpointGroupRegion":{},"DestinationSocketAddress":{"shape":"S3k"},"IpAddressType":{},"DestinationTrafficState":{}}}},"NextToken":{}}}},"ListEndpointGroups":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"EndpointGroups":{"type":"list","member":{"shape":"S23"}},"NextToken":{}}}},"ListListeners":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"Listeners":{"type":"list","member":{"shape":"S27"}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sx"}}}},"ProvisionByoipCidr":{"input":{"type":"structure","required":["Cidr","CidrAuthorizationContext"],"members":{"Cidr":{},"CidrAuthorizationContext":{"type":"structure","required":["Message","Signature"],"members":{"Message":{},"Signature":{}}}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sj"}}}},"RemoveCustomRoutingEndpoints":{"input":{"type":"structure","required":["EndpointIds","EndpointGroupArn"],"members":{"EndpointIds":{"type":"list","member":{}},"EndpointGroupArn":{}}}},"RemoveEndpoints":{"input":{"type":"structure","required":["EndpointIdentifiers","EndpointGroupArn"],"members":{"EndpointIdentifiers":{"type":"list","member":{"type":"structure","required":["EndpointId"],"members":{"EndpointId":{},"ClientIPPreservationEnabled":{"type":"boolean"}}}},"EndpointGroupArn":{}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sx"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S12"}}}},"UpdateAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2l"}}}},"UpdateCustomRoutingAccelerator":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"Accelerator":{"shape":"S1b"}}}},"UpdateCustomRoutingAcceleratorAttributes":{"input":{"type":"structure","required":["AcceleratorArn"],"members":{"AcceleratorArn":{},"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"output":{"type":"structure","members":{"AcceleratorAttributes":{"shape":"S2q"}}}},"UpdateCustomRoutingListener":{"input":{"type":"structure","required":["ListenerArn","PortRanges"],"members":{"ListenerArn":{},"PortRanges":{"shape":"S1p"}}},"output":{"type":"structure","members":{"Listener":{"shape":"S1s"}}}},"UpdateEndpointGroup":{"input":{"type":"structure","required":["EndpointGroupArn"],"members":{"EndpointGroupArn":{},"EndpointConfigurations":{"shape":"S9"},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"PortOverrides":{"shape":"S20"}}},"output":{"type":"structure","members":{"EndpointGroup":{"shape":"S23"}}}},"UpdateListener":{"input":{"type":"structure","required":["ListenerArn"],"members":{"ListenerArn":{},"PortRanges":{"shape":"S1p"},"Protocol":{},"ClientAffinity":{}}},"output":{"type":"structure","members":{"Listener":{"shape":"S27"}}}},"WithdrawByoipCidr":{"input":{"type":"structure","required":["Cidr"],"members":{"Cidr":{}}},"output":{"type":"structure","members":{"ByoipCidr":{"shape":"Sj"}}}}},"shapes":{"S6":{"type":"list","member":{"type":"structure","members":{"EndpointId":{}}}},"S9":{"type":"list","member":{"type":"structure","members":{"EndpointId":{},"Weight":{"type":"integer"},"ClientIPPreservationEnabled":{"type":"boolean"}}}},"Se":{"type":"list","member":{"type":"structure","members":{"EndpointId":{},"Weight":{"type":"integer"},"HealthState":{},"HealthReason":{},"ClientIPPreservationEnabled":{"type":"boolean"}}}},"Sj":{"type":"structure","members":{"Cidr":{},"State":{},"Events":{"type":"list","member":{"type":"structure","members":{"Message":{},"Timestamp":{"type":"timestamp"}}}}}},"Sp":{"type":"list","member":{}},"Sr":{"type":"list","member":{"type":"integer"}},"Sv":{"type":"list","member":{}},"Sx":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"S12":{"type":"structure","members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"},"IpSets":{"shape":"S13"},"DnsName":{},"Status":{},"CreatedTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"},"DualStackDnsName":{},"Events":{"type":"list","member":{"type":"structure","members":{"Message":{},"Timestamp":{"type":"timestamp"}}}}}},"S13":{"type":"list","member":{"type":"structure","members":{"IpFamily":{"deprecated":true,"deprecatedMessage":"IpFamily has been replaced by IpAddressFamily"},"IpAddresses":{"shape":"Sv"},"IpAddressFamily":{}}}},"S1b":{"type":"structure","members":{"AcceleratorArn":{},"Name":{},"IpAddressType":{},"Enabled":{"type":"boolean"},"IpSets":{"shape":"S13"},"DnsName":{},"Status":{},"CreatedTime":{"type":"timestamp"},"LastModifiedTime":{"type":"timestamp"}}},"S1g":{"type":"list","member":{}},"S1j":{"type":"structure","members":{"EndpointGroupArn":{},"EndpointGroupRegion":{},"DestinationDescriptions":{"type":"list","member":{"type":"structure","members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"},"Protocols":{"type":"list","member":{}}}}},"EndpointDescriptions":{"shape":"S6"}}},"S1p":{"type":"list","member":{"type":"structure","members":{"FromPort":{"type":"integer"},"ToPort":{"type":"integer"}}}},"S1s":{"type":"structure","members":{"ListenerArn":{},"PortRanges":{"shape":"S1p"}}},"S20":{"type":"list","member":{"type":"structure","members":{"ListenerPort":{"type":"integer"},"EndpointPort":{"type":"integer"}}}},"S23":{"type":"structure","members":{"EndpointGroupArn":{},"EndpointGroupRegion":{},"EndpointDescriptions":{"shape":"Se"},"TrafficDialPercentage":{"type":"float"},"HealthCheckPort":{"type":"integer"},"HealthCheckProtocol":{},"HealthCheckPath":{},"HealthCheckIntervalSeconds":{"type":"integer"},"ThresholdCount":{"type":"integer"},"PortOverrides":{"shape":"S20"}}},"S27":{"type":"structure","members":{"ListenerArn":{},"PortRanges":{"shape":"S1p"},"Protocol":{},"ClientAffinity":{}}},"S2l":{"type":"structure","members":{"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"S2q":{"type":"structure","members":{"FlowLogsEnabled":{"type":"boolean"},"FlowLogsS3Bucket":{},"FlowLogsS3Prefix":{}}},"S3k":{"type":"structure","members":{"IpAddress":{},"Port":{"type":"integer"}}}}} /***/ }), /* 707 */ @@ -58043,7 +58047,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 966 */ /***/ (function(module, exports) { - module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-12-01","endpointPrefix":"devops-guru","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"Amazon DevOps Guru","serviceId":"DevOps Guru","signatureVersion":"v4","signingName":"devops-guru","uid":"devops-guru-2020-12-01"},"operations":{"AddNotificationChannel":{"http":{"method":"PUT","requestUri":"/channels","responseCode":200},"input":{"type":"structure","required":["Config"],"members":{"Config":{"shape":"S2"}}},"output":{"type":"structure","required":["Id"],"members":{"Id":{}}}},"DeleteInsight":{"http":{"method":"DELETE","requestUri":"/insights/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{}}},"DescribeAccountHealth":{"http":{"method":"GET","requestUri":"/accounts/health","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["OpenReactiveInsights","OpenProactiveInsights","MetricsAnalyzed","ResourceHours"],"members":{"OpenReactiveInsights":{"type":"integer"},"OpenProactiveInsights":{"type":"integer"},"MetricsAnalyzed":{"type":"integer"},"ResourceHours":{"type":"long"}}}},"DescribeAccountOverview":{"http":{"requestUri":"/accounts/overview","responseCode":200},"input":{"type":"structure","required":["FromTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"output":{"type":"structure","required":["ReactiveInsights","ProactiveInsights","MeanTimeToRecoverInMilliseconds"],"members":{"ReactiveInsights":{"type":"integer"},"ProactiveInsights":{"type":"integer"},"MeanTimeToRecoverInMilliseconds":{"type":"long"}}}},"DescribeAnomaly":{"http":{"method":"GET","requestUri":"/anomalies/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"AccountId":{"location":"querystring","locationName":"AccountId"}}},"output":{"type":"structure","members":{"ProactiveAnomaly":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"UpdateTime":{"type":"timestamp"},"AnomalyTimeRange":{"shape":"Sy"},"AnomalyReportedTimeRange":{"shape":"Sz"},"PredictionTimeRange":{"shape":"S10"},"SourceDetails":{"shape":"S11"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S26"},"Limit":{"type":"double"},"SourceMetadata":{"shape":"S2g"},"AnomalyResources":{"shape":"S2k"}}},"ReactiveAnomaly":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"AnomalyTimeRange":{"shape":"Sy"},"AnomalyReportedTimeRange":{"shape":"Sz"},"SourceDetails":{"shape":"S11"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S26"},"Type":{},"Name":{},"Description":{},"CausalAnomalyId":{},"AnomalyResources":{"shape":"S2k"}}}}}},"DescribeEventSourcesConfig":{"http":{"requestUri":"/event-sources","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"EventSources":{"shape":"S2s"}}}},"DescribeFeedback":{"http":{"requestUri":"/feedback","responseCode":200},"input":{"type":"structure","members":{"InsightId":{}}},"output":{"type":"structure","members":{"InsightFeedback":{"shape":"S2x"}}}},"DescribeInsight":{"http":{"method":"GET","requestUri":"/insights/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"AccountId":{"location":"querystring","locationName":"AccountId"}}},"output":{"type":"structure","members":{"ProactiveInsight":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"PredictionTimeRange":{"shape":"S10"},"ResourceCollection":{"shape":"S26"},"SsmOpsItemId":{},"Description":{}}},"ReactiveInsight":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"ResourceCollection":{"shape":"S26"},"SsmOpsItemId":{},"Description":{}}}}}},"DescribeOrganizationHealth":{"http":{"requestUri":"/organization/health","responseCode":200},"input":{"type":"structure","members":{"AccountIds":{"shape":"S39"},"OrganizationalUnitIds":{"shape":"S3a"}}},"output":{"type":"structure","required":["OpenReactiveInsights","OpenProactiveInsights","MetricsAnalyzed","ResourceHours"],"members":{"OpenReactiveInsights":{"type":"integer"},"OpenProactiveInsights":{"type":"integer"},"MetricsAnalyzed":{"type":"integer"},"ResourceHours":{"type":"long"}}}},"DescribeOrganizationOverview":{"http":{"requestUri":"/organization/overview","responseCode":200},"input":{"type":"structure","required":["FromTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"},"AccountIds":{"shape":"S39"},"OrganizationalUnitIds":{"shape":"S3a"}}},"output":{"type":"structure","required":["ReactiveInsights","ProactiveInsights"],"members":{"ReactiveInsights":{"type":"integer"},"ProactiveInsights":{"type":"integer"}}}},"DescribeOrganizationResourceCollectionHealth":{"http":{"requestUri":"/organization/health/resource-collection","responseCode":200},"input":{"type":"structure","required":["OrganizationResourceCollectionType"],"members":{"OrganizationResourceCollectionType":{},"AccountIds":{"shape":"S39"},"OrganizationalUnitIds":{"shape":"S3a"},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"CloudFormation":{"shape":"S3k"},"Service":{"shape":"S3n"},"Account":{"type":"list","member":{"type":"structure","members":{"AccountId":{},"Insight":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"}}}}}},"NextToken":{},"Tags":{"shape":"S3u"}}}},"DescribeResourceCollectionHealth":{"http":{"method":"GET","requestUri":"/accounts/health/resource-collection/{ResourceCollectionType}","responseCode":200},"input":{"type":"structure","required":["ResourceCollectionType"],"members":{"ResourceCollectionType":{"location":"uri","locationName":"ResourceCollectionType"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"CloudFormation":{"shape":"S3k"},"Service":{"shape":"S3n"},"NextToken":{},"Tags":{"shape":"S3u"}}}},"DescribeServiceIntegration":{"http":{"method":"GET","requestUri":"/service-integrations","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"ServiceIntegration":{"type":"structure","members":{"OpsCenter":{"type":"structure","members":{"OptInStatus":{}}},"LogsAnomalyDetection":{"type":"structure","members":{"OptInStatus":{}}}}}}}},"GetCostEstimation":{"http":{"method":"GET","requestUri":"/cost-estimation","responseCode":200},"input":{"type":"structure","members":{"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"ResourceCollection":{"shape":"S47"},"Status":{},"Costs":{"type":"list","member":{"type":"structure","members":{"Type":{},"State":{},"Count":{"type":"integer"},"UnitCost":{"type":"double"},"Cost":{"type":"double"}}}},"TimeRange":{"type":"structure","members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"TotalCost":{"type":"double"},"NextToken":{}}}},"GetResourceCollection":{"http":{"method":"GET","requestUri":"/resource-collections/{ResourceCollectionType}","responseCode":200},"input":{"type":"structure","required":["ResourceCollectionType"],"members":{"ResourceCollectionType":{"location":"uri","locationName":"ResourceCollectionType"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"ResourceCollection":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"shape":"S28"}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"shape":"S2d"}}}}}},"NextToken":{}}}},"ListAnomaliesForInsight":{"http":{"requestUri":"/anomalies/insight/{InsightId}","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{"location":"uri","locationName":"InsightId"},"StartTimeRange":{"shape":"S4r"},"MaxResults":{"type":"integer"},"NextToken":{},"AccountId":{}}},"output":{"type":"structure","members":{"ProactiveAnomalies":{"type":"list","member":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"UpdateTime":{"type":"timestamp"},"AnomalyTimeRange":{"shape":"Sy"},"AnomalyReportedTimeRange":{"shape":"Sz"},"PredictionTimeRange":{"shape":"S10"},"SourceDetails":{"shape":"S11"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S26"},"Limit":{"type":"double"},"SourceMetadata":{"shape":"S2g"},"AnomalyResources":{"shape":"S2k"}}}},"ReactiveAnomalies":{"type":"list","member":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"AnomalyTimeRange":{"shape":"Sy"},"AnomalyReportedTimeRange":{"shape":"Sz"},"SourceDetails":{"shape":"S11"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S26"},"Type":{},"Name":{},"Description":{},"CausalAnomalyId":{},"AnomalyResources":{"shape":"S2k"}}}},"NextToken":{}}}},"ListAnomalousLogGroups":{"http":{"requestUri":"/list-log-anomalies","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","required":["InsightId","AnomalousLogGroups"],"members":{"InsightId":{},"AnomalousLogGroups":{"type":"list","member":{"type":"structure","members":{"LogGroupName":{},"ImpactStartTime":{"type":"timestamp"},"ImpactEndTime":{"type":"timestamp"},"NumberOfLogLinesScanned":{"type":"integer"},"LogAnomalyShowcases":{"type":"list","member":{"type":"structure","members":{"LogAnomalyClasses":{"type":"list","member":{"type":"structure","members":{"LogStreamName":{},"LogAnomalyType":{},"LogAnomalyToken":{},"LogEventId":{},"Explanation":{},"NumberOfLogLinesOccurrences":{"type":"integer"},"LogEventTimestamp":{"type":"timestamp"}}}}}}}}}},"NextToken":{}}}},"ListEvents":{"http":{"requestUri":"/events","responseCode":200},"input":{"type":"structure","required":["Filters"],"members":{"Filters":{"type":"structure","members":{"InsightId":{},"EventTimeRange":{"type":"structure","required":["FromTime","ToTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"EventClass":{},"EventSource":{},"DataSource":{},"ResourceCollection":{"shape":"S26"}}},"MaxResults":{"type":"integer"},"NextToken":{},"AccountId":{}}},"output":{"type":"structure","required":["Events"],"members":{"Events":{"type":"list","member":{"type":"structure","members":{"ResourceCollection":{"shape":"S26"},"Id":{},"Time":{"type":"timestamp"},"EventSource":{},"Name":{},"DataSource":{},"EventClass":{},"Resources":{"type":"list","member":{"type":"structure","members":{"Type":{},"Name":{},"Arn":{}}}}}}},"NextToken":{}}}},"ListInsights":{"http":{"requestUri":"/insights","responseCode":200},"input":{"type":"structure","required":["StatusFilter"],"members":{"StatusFilter":{"shape":"S5x"},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S65"},"ReactiveInsights":{"shape":"S6b"},"NextToken":{}}}},"ListMonitoredResources":{"http":{"requestUri":"/monitoredResources","responseCode":200},"input":{"type":"structure","required":["Filters"],"members":{"Filters":{"type":"structure","required":["ResourcePermission","ResourceTypeFilters"],"members":{"ResourcePermission":{},"ResourceTypeFilters":{"type":"list","member":{}}}},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","required":["MonitoredResourceIdentifiers"],"members":{"MonitoredResourceIdentifiers":{"type":"list","member":{"type":"structure","members":{"MonitoredResourceName":{},"Type":{},"ResourcePermission":{}}}},"NextToken":{}}}},"ListNotificationChannels":{"http":{"requestUri":"/channels","responseCode":200},"input":{"type":"structure","members":{"NextToken":{}}},"output":{"type":"structure","members":{"Channels":{"type":"list","member":{"type":"structure","members":{"Id":{},"Config":{"shape":"S2"}}}},"NextToken":{}}}},"ListOrganizationInsights":{"http":{"requestUri":"/organization/insights","responseCode":200},"input":{"type":"structure","required":["StatusFilter"],"members":{"StatusFilter":{"shape":"S5x"},"MaxResults":{"type":"integer"},"AccountIds":{"type":"list","member":{}},"OrganizationalUnitIds":{"type":"list","member":{}},"NextToken":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"type":"list","member":{"type":"structure","members":{"Id":{},"AccountId":{},"OrganizationalUnitId":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"PredictionTimeRange":{"shape":"S10"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"}}}},"ReactiveInsights":{"type":"list","member":{"type":"structure","members":{"Id":{},"AccountId":{},"OrganizationalUnitId":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"}}}},"NextToken":{}}}},"ListRecommendations":{"http":{"requestUri":"/recommendations","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{},"NextToken":{},"Locale":{},"AccountId":{}}},"output":{"type":"structure","members":{"Recommendations":{"type":"list","member":{"type":"structure","members":{"Description":{},"Link":{},"Name":{},"Reason":{},"RelatedEvents":{"type":"list","member":{"type":"structure","members":{"Name":{},"Resources":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}}}}},"RelatedAnomalies":{"type":"list","member":{"type":"structure","members":{"Resources":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}},"SourceDetails":{"type":"list","member":{"type":"structure","members":{"CloudWatchMetrics":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"Namespace":{}}}}}}},"AnomalyId":{}}}},"Category":{}}}},"NextToken":{}}}},"PutFeedback":{"http":{"method":"PUT","requestUri":"/feedback","responseCode":200},"input":{"type":"structure","members":{"InsightFeedback":{"shape":"S2x"}}},"output":{"type":"structure","members":{}}},"RemoveNotificationChannel":{"http":{"method":"DELETE","requestUri":"/channels/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{}}},"SearchInsights":{"http":{"requestUri":"/insights/search","responseCode":200},"input":{"type":"structure","required":["StartTimeRange","Type"],"members":{"StartTimeRange":{"shape":"S4r"},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"Statuses":{"shape":"S7y"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"}}},"MaxResults":{"type":"integer"},"NextToken":{},"Type":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S65"},"ReactiveInsights":{"shape":"S6b"},"NextToken":{}}}},"SearchOrganizationInsights":{"http":{"requestUri":"/organization/insights/search","responseCode":200},"input":{"type":"structure","required":["AccountIds","StartTimeRange","Type"],"members":{"AccountIds":{"type":"list","member":{}},"StartTimeRange":{"shape":"S4r"},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"Statuses":{"shape":"S7y"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"}}},"MaxResults":{"type":"integer"},"NextToken":{},"Type":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S65"},"ReactiveInsights":{"shape":"S6b"},"NextToken":{}}}},"StartCostEstimation":{"http":{"method":"PUT","requestUri":"/cost-estimation","responseCode":200},"input":{"type":"structure","required":["ResourceCollection"],"members":{"ResourceCollection":{"shape":"S47"},"ClientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{}}},"UpdateEventSourcesConfig":{"http":{"method":"PUT","requestUri":"/event-sources","responseCode":200},"input":{"type":"structure","members":{"EventSources":{"shape":"S2s"}}},"output":{"type":"structure","members":{}}},"UpdateResourceCollection":{"http":{"method":"PUT","requestUri":"/resource-collections","responseCode":200},"input":{"type":"structure","required":["Action","ResourceCollection"],"members":{"Action":{},"ResourceCollection":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"type":"list","member":{}}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"type":"list","member":{}}}}}}}}},"output":{"type":"structure","members":{}}},"UpdateServiceIntegration":{"http":{"method":"PUT","requestUri":"/service-integrations","responseCode":200},"input":{"type":"structure","required":["ServiceIntegration"],"members":{"ServiceIntegration":{"type":"structure","members":{"OpsCenter":{"type":"structure","members":{"OptInStatus":{}}},"LogsAnomalyDetection":{"type":"structure","members":{"OptInStatus":{}}}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S2":{"type":"structure","required":["Sns"],"members":{"Sns":{"type":"structure","members":{"TopicArn":{}}},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"MessageTypes":{"type":"list","member":{}}}}}},"S6":{"type":"list","member":{}},"Sy":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"Sz":{"type":"structure","required":["OpenTime"],"members":{"OpenTime":{"type":"timestamp"},"CloseTime":{"type":"timestamp"}}},"S10":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"S11":{"type":"structure","members":{"CloudWatchMetrics":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"Namespace":{},"Dimensions":{"type":"list","member":{"type":"structure","members":{"Name":{},"Value":{}}}},"Stat":{},"Unit":{},"Period":{"type":"integer"},"MetricDataSummary":{"type":"structure","members":{"TimestampMetricValuePairList":{"type":"list","member":{"type":"structure","members":{"Timestamp":{"type":"timestamp"},"MetricValue":{"type":"double"}}}},"StatusCode":{}}}}}},"PerformanceInsightsMetrics":{"type":"list","member":{"type":"structure","members":{"MetricDisplayName":{},"Unit":{},"MetricQuery":{"shape":"S1m"},"ReferenceData":{"type":"list","member":{"type":"structure","members":{"Name":{},"ComparisonValues":{"type":"structure","members":{"ReferenceScalar":{"type":"structure","members":{"Value":{"type":"double"}}},"ReferenceMetric":{"type":"structure","members":{"MetricQuery":{"shape":"S1m"}}}}}}}},"StatsAtAnomaly":{"shape":"S23"},"StatsAtBaseline":{"shape":"S23"}}}}}},"S1m":{"type":"structure","members":{"Metric":{},"GroupBy":{"type":"structure","members":{"Group":{},"Dimensions":{"type":"list","member":{}},"Limit":{"type":"integer"}}},"Filter":{"type":"map","key":{},"value":{}}}},"S23":{"type":"list","member":{"type":"structure","members":{"Type":{},"Value":{"type":"double"}}}},"S26":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"shape":"S28"}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"shape":"S2d"}}}}}},"S28":{"type":"list","member":{}},"S2d":{"type":"list","member":{}},"S2g":{"type":"structure","members":{"Source":{},"SourceResourceName":{},"SourceResourceType":{}}},"S2k":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}},"S2s":{"type":"structure","members":{"AmazonCodeGuruProfiler":{"type":"structure","members":{"Status":{}}}}},"S2x":{"type":"structure","members":{"Id":{},"Feedback":{}}},"S34":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"S39":{"type":"list","member":{}},"S3a":{"type":"list","member":{}},"S3k":{"type":"list","member":{"type":"structure","members":{"StackName":{},"Insight":{"shape":"S3m"}}}},"S3m":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"},"MeanTimeToRecoverInMilliseconds":{"type":"long"}}},"S3n":{"type":"list","member":{"type":"structure","members":{"ServiceName":{},"Insight":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"}}}}}},"S3u":{"type":"list","member":{"type":"structure","members":{"AppBoundaryKey":{},"TagValue":{},"Insight":{"shape":"S3m"}}}},"S47":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"type":"list","member":{}}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"type":"list","member":{}}}}}}},"S4r":{"type":"structure","members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"S5x":{"type":"structure","members":{"Ongoing":{"type":"structure","required":["Type"],"members":{"Type":{}}},"Closed":{"type":"structure","required":["Type","EndTimeRange"],"members":{"Type":{},"EndTimeRange":{"type":"structure","members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}}}},"Any":{"type":"structure","required":["Type","StartTimeRange"],"members":{"Type":{},"StartTimeRange":{"shape":"S4r"}}}}},"S65":{"type":"list","member":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"PredictionTimeRange":{"shape":"S10"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"},"AssociatedResourceArns":{"shape":"S69"}}}},"S67":{"type":"structure","members":{"ServiceNames":{"type":"list","member":{}}}},"S69":{"type":"list","member":{}},"S6b":{"type":"list","member":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S34"},"ResourceCollection":{"shape":"S26"},"ServiceCollection":{"shape":"S67"},"AssociatedResourceArns":{"shape":"S69"}}}},"S7y":{"type":"list","member":{}}}} + module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-12-01","endpointPrefix":"devops-guru","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"Amazon DevOps Guru","serviceId":"DevOps Guru","signatureVersion":"v4","signingName":"devops-guru","uid":"devops-guru-2020-12-01"},"operations":{"AddNotificationChannel":{"http":{"method":"PUT","requestUri":"/channels","responseCode":200},"input":{"type":"structure","required":["Config"],"members":{"Config":{"shape":"S2"}}},"output":{"type":"structure","required":["Id"],"members":{"Id":{}}}},"DeleteInsight":{"http":{"method":"DELETE","requestUri":"/insights/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{}}},"DescribeAccountHealth":{"http":{"method":"GET","requestUri":"/accounts/health","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["OpenReactiveInsights","OpenProactiveInsights","MetricsAnalyzed","ResourceHours"],"members":{"OpenReactiveInsights":{"type":"integer"},"OpenProactiveInsights":{"type":"integer"},"MetricsAnalyzed":{"type":"integer"},"ResourceHours":{"type":"long"},"AnalyzedResourceCount":{"type":"long"}}}},"DescribeAccountOverview":{"http":{"requestUri":"/accounts/overview","responseCode":200},"input":{"type":"structure","required":["FromTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"output":{"type":"structure","required":["ReactiveInsights","ProactiveInsights","MeanTimeToRecoverInMilliseconds"],"members":{"ReactiveInsights":{"type":"integer"},"ProactiveInsights":{"type":"integer"},"MeanTimeToRecoverInMilliseconds":{"type":"long"}}}},"DescribeAnomaly":{"http":{"method":"GET","requestUri":"/anomalies/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"AccountId":{"location":"querystring","locationName":"AccountId"}}},"output":{"type":"structure","members":{"ProactiveAnomaly":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"UpdateTime":{"type":"timestamp"},"AnomalyTimeRange":{"shape":"Sz"},"AnomalyReportedTimeRange":{"shape":"S10"},"PredictionTimeRange":{"shape":"S11"},"SourceDetails":{"shape":"S12"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S27"},"Limit":{"type":"double"},"SourceMetadata":{"shape":"S2h"},"AnomalyResources":{"shape":"S2l"}}},"ReactiveAnomaly":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"AnomalyTimeRange":{"shape":"Sz"},"AnomalyReportedTimeRange":{"shape":"S10"},"SourceDetails":{"shape":"S12"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S27"},"Type":{},"Name":{},"Description":{},"CausalAnomalyId":{},"AnomalyResources":{"shape":"S2l"}}}}}},"DescribeEventSourcesConfig":{"http":{"requestUri":"/event-sources","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"EventSources":{"shape":"S2t"}}}},"DescribeFeedback":{"http":{"requestUri":"/feedback","responseCode":200},"input":{"type":"structure","members":{"InsightId":{}}},"output":{"type":"structure","members":{"InsightFeedback":{"shape":"S2y"}}}},"DescribeInsight":{"http":{"method":"GET","requestUri":"/insights/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"AccountId":{"location":"querystring","locationName":"AccountId"}}},"output":{"type":"structure","members":{"ProactiveInsight":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"PredictionTimeRange":{"shape":"S11"},"ResourceCollection":{"shape":"S27"},"SsmOpsItemId":{},"Description":{}}},"ReactiveInsight":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"ResourceCollection":{"shape":"S27"},"SsmOpsItemId":{},"Description":{}}}}}},"DescribeOrganizationHealth":{"http":{"requestUri":"/organization/health","responseCode":200},"input":{"type":"structure","members":{"AccountIds":{"shape":"S3a"},"OrganizationalUnitIds":{"shape":"S3b"}}},"output":{"type":"structure","required":["OpenReactiveInsights","OpenProactiveInsights","MetricsAnalyzed","ResourceHours"],"members":{"OpenReactiveInsights":{"type":"integer"},"OpenProactiveInsights":{"type":"integer"},"MetricsAnalyzed":{"type":"integer"},"ResourceHours":{"type":"long"}}}},"DescribeOrganizationOverview":{"http":{"requestUri":"/organization/overview","responseCode":200},"input":{"type":"structure","required":["FromTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"},"AccountIds":{"shape":"S3a"},"OrganizationalUnitIds":{"shape":"S3b"}}},"output":{"type":"structure","required":["ReactiveInsights","ProactiveInsights"],"members":{"ReactiveInsights":{"type":"integer"},"ProactiveInsights":{"type":"integer"}}}},"DescribeOrganizationResourceCollectionHealth":{"http":{"requestUri":"/organization/health/resource-collection","responseCode":200},"input":{"type":"structure","required":["OrganizationResourceCollectionType"],"members":{"OrganizationResourceCollectionType":{},"AccountIds":{"shape":"S3a"},"OrganizationalUnitIds":{"shape":"S3b"},"NextToken":{},"MaxResults":{"type":"integer"}}},"output":{"type":"structure","members":{"CloudFormation":{"shape":"S3l"},"Service":{"shape":"S3o"},"Account":{"type":"list","member":{"type":"structure","members":{"AccountId":{},"Insight":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"}}}}}},"NextToken":{},"Tags":{"shape":"S3v"}}}},"DescribeResourceCollectionHealth":{"http":{"method":"GET","requestUri":"/accounts/health/resource-collection/{ResourceCollectionType}","responseCode":200},"input":{"type":"structure","required":["ResourceCollectionType"],"members":{"ResourceCollectionType":{"location":"uri","locationName":"ResourceCollectionType"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"CloudFormation":{"shape":"S3l"},"Service":{"shape":"S3o"},"NextToken":{},"Tags":{"shape":"S3v"}}}},"DescribeServiceIntegration":{"http":{"method":"GET","requestUri":"/service-integrations","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"ServiceIntegration":{"type":"structure","members":{"OpsCenter":{"type":"structure","members":{"OptInStatus":{}}},"LogsAnomalyDetection":{"type":"structure","members":{"OptInStatus":{}}}}}}}},"GetCostEstimation":{"http":{"method":"GET","requestUri":"/cost-estimation","responseCode":200},"input":{"type":"structure","members":{"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"ResourceCollection":{"shape":"S48"},"Status":{},"Costs":{"type":"list","member":{"type":"structure","members":{"Type":{},"State":{},"Count":{"type":"integer"},"UnitCost":{"type":"double"},"Cost":{"type":"double"}}}},"TimeRange":{"type":"structure","members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"TotalCost":{"type":"double"},"NextToken":{}}}},"GetResourceCollection":{"http":{"method":"GET","requestUri":"/resource-collections/{ResourceCollectionType}","responseCode":200},"input":{"type":"structure","required":["ResourceCollectionType"],"members":{"ResourceCollectionType":{"location":"uri","locationName":"ResourceCollectionType"},"NextToken":{"location":"querystring","locationName":"NextToken"}}},"output":{"type":"structure","members":{"ResourceCollection":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"shape":"S29"}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"shape":"S2e"}}}}}},"NextToken":{}}}},"ListAnomaliesForInsight":{"http":{"requestUri":"/anomalies/insight/{InsightId}","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{"location":"uri","locationName":"InsightId"},"StartTimeRange":{"shape":"S4s"},"MaxResults":{"type":"integer"},"NextToken":{},"AccountId":{}}},"output":{"type":"structure","members":{"ProactiveAnomalies":{"type":"list","member":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"UpdateTime":{"type":"timestamp"},"AnomalyTimeRange":{"shape":"Sz"},"AnomalyReportedTimeRange":{"shape":"S10"},"PredictionTimeRange":{"shape":"S11"},"SourceDetails":{"shape":"S12"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S27"},"Limit":{"type":"double"},"SourceMetadata":{"shape":"S2h"},"AnomalyResources":{"shape":"S2l"}}}},"ReactiveAnomalies":{"type":"list","member":{"type":"structure","members":{"Id":{},"Severity":{},"Status":{},"AnomalyTimeRange":{"shape":"Sz"},"AnomalyReportedTimeRange":{"shape":"S10"},"SourceDetails":{"shape":"S12"},"AssociatedInsightId":{},"ResourceCollection":{"shape":"S27"},"Type":{},"Name":{},"Description":{},"CausalAnomalyId":{},"AnomalyResources":{"shape":"S2l"}}}},"NextToken":{}}}},"ListAnomalousLogGroups":{"http":{"requestUri":"/list-log-anomalies","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","required":["InsightId","AnomalousLogGroups"],"members":{"InsightId":{},"AnomalousLogGroups":{"type":"list","member":{"type":"structure","members":{"LogGroupName":{},"ImpactStartTime":{"type":"timestamp"},"ImpactEndTime":{"type":"timestamp"},"NumberOfLogLinesScanned":{"type":"integer"},"LogAnomalyShowcases":{"type":"list","member":{"type":"structure","members":{"LogAnomalyClasses":{"type":"list","member":{"type":"structure","members":{"LogStreamName":{},"LogAnomalyType":{},"LogAnomalyToken":{},"LogEventId":{},"Explanation":{},"NumberOfLogLinesOccurrences":{"type":"integer"},"LogEventTimestamp":{"type":"timestamp"}}}}}}}}}},"NextToken":{}}}},"ListEvents":{"http":{"requestUri":"/events","responseCode":200},"input":{"type":"structure","required":["Filters"],"members":{"Filters":{"type":"structure","members":{"InsightId":{},"EventTimeRange":{"type":"structure","required":["FromTime","ToTime"],"members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"EventClass":{},"EventSource":{},"DataSource":{},"ResourceCollection":{"shape":"S27"}}},"MaxResults":{"type":"integer"},"NextToken":{},"AccountId":{}}},"output":{"type":"structure","required":["Events"],"members":{"Events":{"type":"list","member":{"type":"structure","members":{"ResourceCollection":{"shape":"S27"},"Id":{},"Time":{"type":"timestamp"},"EventSource":{},"Name":{},"DataSource":{},"EventClass":{},"Resources":{"type":"list","member":{"type":"structure","members":{"Type":{},"Name":{},"Arn":{}}}}}}},"NextToken":{}}}},"ListInsights":{"http":{"requestUri":"/insights","responseCode":200},"input":{"type":"structure","required":["StatusFilter"],"members":{"StatusFilter":{"shape":"S5y"},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S66"},"ReactiveInsights":{"shape":"S6c"},"NextToken":{}}}},"ListMonitoredResources":{"http":{"requestUri":"/monitoredResources","responseCode":200},"input":{"type":"structure","members":{"Filters":{"type":"structure","required":["ResourcePermission","ResourceTypeFilters"],"members":{"ResourcePermission":{},"ResourceTypeFilters":{"type":"list","member":{}}}},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","required":["MonitoredResourceIdentifiers"],"members":{"MonitoredResourceIdentifiers":{"type":"list","member":{"type":"structure","members":{"MonitoredResourceName":{},"Type":{},"ResourcePermission":{},"LastUpdated":{"type":"timestamp"},"ResourceCollection":{"shape":"S27"}}}},"NextToken":{}}}},"ListNotificationChannels":{"http":{"requestUri":"/channels","responseCode":200},"input":{"type":"structure","members":{"NextToken":{}}},"output":{"type":"structure","members":{"Channels":{"type":"list","member":{"type":"structure","members":{"Id":{},"Config":{"shape":"S2"}}}},"NextToken":{}}}},"ListOrganizationInsights":{"http":{"requestUri":"/organization/insights","responseCode":200},"input":{"type":"structure","required":["StatusFilter"],"members":{"StatusFilter":{"shape":"S5y"},"MaxResults":{"type":"integer"},"AccountIds":{"type":"list","member":{}},"OrganizationalUnitIds":{"type":"list","member":{}},"NextToken":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"type":"list","member":{"type":"structure","members":{"Id":{},"AccountId":{},"OrganizationalUnitId":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"PredictionTimeRange":{"shape":"S11"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"}}}},"ReactiveInsights":{"type":"list","member":{"type":"structure","members":{"Id":{},"AccountId":{},"OrganizationalUnitId":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"}}}},"NextToken":{}}}},"ListRecommendations":{"http":{"requestUri":"/recommendations","responseCode":200},"input":{"type":"structure","required":["InsightId"],"members":{"InsightId":{},"NextToken":{},"Locale":{},"AccountId":{}}},"output":{"type":"structure","members":{"Recommendations":{"type":"list","member":{"type":"structure","members":{"Description":{},"Link":{},"Name":{},"Reason":{},"RelatedEvents":{"type":"list","member":{"type":"structure","members":{"Name":{},"Resources":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}}}}},"RelatedAnomalies":{"type":"list","member":{"type":"structure","members":{"Resources":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}},"SourceDetails":{"type":"list","member":{"type":"structure","members":{"CloudWatchMetrics":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"Namespace":{}}}}}}},"AnomalyId":{}}}},"Category":{}}}},"NextToken":{}}}},"PutFeedback":{"http":{"method":"PUT","requestUri":"/feedback","responseCode":200},"input":{"type":"structure","members":{"InsightFeedback":{"shape":"S2y"}}},"output":{"type":"structure","members":{}}},"RemoveNotificationChannel":{"http":{"method":"DELETE","requestUri":"/channels/{Id}","responseCode":200},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{}}},"SearchInsights":{"http":{"requestUri":"/insights/search","responseCode":200},"input":{"type":"structure","required":["StartTimeRange","Type"],"members":{"StartTimeRange":{"shape":"S4s"},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"Statuses":{"shape":"S7z"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"}}},"MaxResults":{"type":"integer"},"NextToken":{},"Type":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S66"},"ReactiveInsights":{"shape":"S6c"},"NextToken":{}}}},"SearchOrganizationInsights":{"http":{"requestUri":"/organization/insights/search","responseCode":200},"input":{"type":"structure","required":["AccountIds","StartTimeRange","Type"],"members":{"AccountIds":{"type":"list","member":{}},"StartTimeRange":{"shape":"S4s"},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"Statuses":{"shape":"S7z"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"}}},"MaxResults":{"type":"integer"},"NextToken":{},"Type":{}}},"output":{"type":"structure","members":{"ProactiveInsights":{"shape":"S66"},"ReactiveInsights":{"shape":"S6c"},"NextToken":{}}}},"StartCostEstimation":{"http":{"method":"PUT","requestUri":"/cost-estimation","responseCode":200},"input":{"type":"structure","required":["ResourceCollection"],"members":{"ResourceCollection":{"shape":"S48"},"ClientToken":{"idempotencyToken":true}}},"output":{"type":"structure","members":{}}},"UpdateEventSourcesConfig":{"http":{"method":"PUT","requestUri":"/event-sources","responseCode":200},"input":{"type":"structure","members":{"EventSources":{"shape":"S2t"}}},"output":{"type":"structure","members":{}}},"UpdateResourceCollection":{"http":{"method":"PUT","requestUri":"/resource-collections","responseCode":200},"input":{"type":"structure","required":["Action","ResourceCollection"],"members":{"Action":{},"ResourceCollection":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"type":"list","member":{}}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"type":"list","member":{}}}}}}}}},"output":{"type":"structure","members":{}}},"UpdateServiceIntegration":{"http":{"method":"PUT","requestUri":"/service-integrations","responseCode":200},"input":{"type":"structure","required":["ServiceIntegration"],"members":{"ServiceIntegration":{"type":"structure","members":{"OpsCenter":{"type":"structure","members":{"OptInStatus":{}}},"LogsAnomalyDetection":{"type":"structure","members":{"OptInStatus":{}}}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S2":{"type":"structure","required":["Sns"],"members":{"Sns":{"type":"structure","members":{"TopicArn":{}}},"Filters":{"type":"structure","members":{"Severities":{"shape":"S6"},"MessageTypes":{"type":"list","member":{}}}}}},"S6":{"type":"list","member":{}},"Sz":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"S10":{"type":"structure","required":["OpenTime"],"members":{"OpenTime":{"type":"timestamp"},"CloseTime":{"type":"timestamp"}}},"S11":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"S12":{"type":"structure","members":{"CloudWatchMetrics":{"type":"list","member":{"type":"structure","members":{"MetricName":{},"Namespace":{},"Dimensions":{"type":"list","member":{"type":"structure","members":{"Name":{},"Value":{}}}},"Stat":{},"Unit":{},"Period":{"type":"integer"},"MetricDataSummary":{"type":"structure","members":{"TimestampMetricValuePairList":{"type":"list","member":{"type":"structure","members":{"Timestamp":{"type":"timestamp"},"MetricValue":{"type":"double"}}}},"StatusCode":{}}}}}},"PerformanceInsightsMetrics":{"type":"list","member":{"type":"structure","members":{"MetricDisplayName":{},"Unit":{},"MetricQuery":{"shape":"S1n"},"ReferenceData":{"type":"list","member":{"type":"structure","members":{"Name":{},"ComparisonValues":{"type":"structure","members":{"ReferenceScalar":{"type":"structure","members":{"Value":{"type":"double"}}},"ReferenceMetric":{"type":"structure","members":{"MetricQuery":{"shape":"S1n"}}}}}}}},"StatsAtAnomaly":{"shape":"S24"},"StatsAtBaseline":{"shape":"S24"}}}}}},"S1n":{"type":"structure","members":{"Metric":{},"GroupBy":{"type":"structure","members":{"Group":{},"Dimensions":{"type":"list","member":{}},"Limit":{"type":"integer"}}},"Filter":{"type":"map","key":{},"value":{}}}},"S24":{"type":"list","member":{"type":"structure","members":{"Type":{},"Value":{"type":"double"}}}},"S27":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"shape":"S29"}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"shape":"S2e"}}}}}},"S29":{"type":"list","member":{}},"S2e":{"type":"list","member":{}},"S2h":{"type":"structure","members":{"Source":{},"SourceResourceName":{},"SourceResourceType":{}}},"S2l":{"type":"list","member":{"type":"structure","members":{"Name":{},"Type":{}}}},"S2t":{"type":"structure","members":{"AmazonCodeGuruProfiler":{"type":"structure","members":{"Status":{}}}}},"S2y":{"type":"structure","members":{"Id":{},"Feedback":{}}},"S35":{"type":"structure","required":["StartTime"],"members":{"StartTime":{"type":"timestamp"},"EndTime":{"type":"timestamp"}}},"S3a":{"type":"list","member":{}},"S3b":{"type":"list","member":{}},"S3l":{"type":"list","member":{"type":"structure","members":{"StackName":{},"Insight":{"shape":"S3n"},"AnalyzedResourceCount":{"type":"long"}}}},"S3n":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"},"MeanTimeToRecoverInMilliseconds":{"type":"long"}}},"S3o":{"type":"list","member":{"type":"structure","members":{"ServiceName":{},"Insight":{"type":"structure","members":{"OpenProactiveInsights":{"type":"integer"},"OpenReactiveInsights":{"type":"integer"}}},"AnalyzedResourceCount":{"type":"long"}}}},"S3v":{"type":"list","member":{"type":"structure","members":{"AppBoundaryKey":{},"TagValue":{},"Insight":{"shape":"S3n"},"AnalyzedResourceCount":{"type":"long"}}}},"S48":{"type":"structure","members":{"CloudFormation":{"type":"structure","members":{"StackNames":{"type":"list","member":{}}}},"Tags":{"type":"list","member":{"type":"structure","required":["AppBoundaryKey","TagValues"],"members":{"AppBoundaryKey":{},"TagValues":{"type":"list","member":{}}}}}}},"S4s":{"type":"structure","members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}},"S5y":{"type":"structure","members":{"Ongoing":{"type":"structure","required":["Type"],"members":{"Type":{}}},"Closed":{"type":"structure","required":["Type","EndTimeRange"],"members":{"Type":{},"EndTimeRange":{"type":"structure","members":{"FromTime":{"type":"timestamp"},"ToTime":{"type":"timestamp"}}}}},"Any":{"type":"structure","required":["Type","StartTimeRange"],"members":{"Type":{},"StartTimeRange":{"shape":"S4s"}}}}},"S66":{"type":"list","member":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"PredictionTimeRange":{"shape":"S11"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"},"AssociatedResourceArns":{"shape":"S6a"}}}},"S68":{"type":"structure","members":{"ServiceNames":{"type":"list","member":{}}}},"S6a":{"type":"list","member":{}},"S6c":{"type":"list","member":{"type":"structure","members":{"Id":{},"Name":{},"Severity":{},"Status":{},"InsightTimeRange":{"shape":"S35"},"ResourceCollection":{"shape":"S27"},"ServiceCollection":{"shape":"S68"},"AssociatedResourceArns":{"shape":"S6a"}}}},"S7z":{"type":"list","member":{}}}} /***/ }), /* 967 */ @@ -59748,7 +59752,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 1111 */ /***/ (function(module, exports) { - module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-04-30","endpointPrefix":"resiliencehub","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"AWS Resilience Hub","serviceId":"resiliencehub","signatureVersion":"v4","signingName":"resiliencehub","uid":"resiliencehub-2020-04-30"},"operations":{"AddDraftAppVersionResourceMappings":{"http":{"requestUri":"/add-draft-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn","resourceMappings"],"members":{"appArn":{},"resourceMappings":{"shape":"S3"}}},"output":{"type":"structure","required":["appArn","appVersion","resourceMappings"],"members":{"appArn":{},"appVersion":{},"resourceMappings":{"shape":"S3"}}}},"CreateApp":{"http":{"requestUri":"/create-app","responseCode":200},"input":{"type":"structure","required":["name"],"members":{"assessmentSchedule":{},"clientToken":{"idempotencyToken":true},"description":{},"name":{},"policyArn":{},"tags":{"shape":"Si"}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"CreateRecommendationTemplate":{"http":{"requestUri":"/create-recommendation-template","responseCode":200},"input":{"type":"structure","required":["assessmentArn","name"],"members":{"assessmentArn":{},"bucketName":{},"clientToken":{"idempotencyToken":true},"format":{},"name":{},"recommendationIds":{"shape":"St"},"recommendationTypes":{"shape":"Sv"},"tags":{"shape":"Si"}}},"output":{"type":"structure","members":{"recommendationTemplate":{"shape":"Sy"}}}},"CreateResiliencyPolicy":{"http":{"requestUri":"/create-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policy","policyName","tier"],"members":{"clientToken":{"idempotencyToken":true},"dataLocationConstraint":{},"policy":{"shape":"S15"},"policyDescription":{},"policyName":{},"tags":{"shape":"Si"},"tier":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}},"DeleteApp":{"http":{"requestUri":"/delete-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"clientToken":{"idempotencyToken":true},"forceDelete":{"type":"boolean"}}},"output":{"type":"structure","required":["appArn"],"members":{"appArn":{}}}},"DeleteAppAssessment":{"http":{"requestUri":"/delete-app-assessment","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","required":["assessmentArn","assessmentStatus"],"members":{"assessmentArn":{},"assessmentStatus":{}}}},"DeleteRecommendationTemplate":{"http":{"requestUri":"/delete-recommendation-template","responseCode":200},"input":{"type":"structure","required":["recommendationTemplateArn"],"members":{"clientToken":{"idempotencyToken":true},"recommendationTemplateArn":{}}},"output":{"type":"structure","required":["recommendationTemplateArn","status"],"members":{"recommendationTemplateArn":{},"status":{}}}},"DeleteResiliencyPolicy":{"http":{"requestUri":"/delete-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"clientToken":{"idempotencyToken":true},"policyArn":{}}},"output":{"type":"structure","required":["policyArn"],"members":{"policyArn":{}}}},"DescribeApp":{"http":{"requestUri":"/describe-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"DescribeAppAssessment":{"http":{"requestUri":"/describe-app-assessment","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{}}},"output":{"type":"structure","required":["assessment"],"members":{"assessment":{"shape":"S1q"}}}},"DescribeAppVersionResourcesResolutionStatus":{"http":{"requestUri":"/describe-app-version-resources-resolution-status","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"resolutionId":{}}},"output":{"type":"structure","required":["appArn","appVersion","resolutionId","status"],"members":{"appArn":{},"appVersion":{},"errorMessage":{},"resolutionId":{},"status":{}}}},"DescribeAppVersionTemplate":{"http":{"requestUri":"/describe-app-version-template","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{}}},"output":{"type":"structure","required":["appArn","appTemplateBody","appVersion"],"members":{"appArn":{},"appTemplateBody":{},"appVersion":{}}}},"DescribeDraftAppVersionResourcesImportStatus":{"http":{"requestUri":"/describe-draft-app-version-resources-import-status","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["appArn","appVersion","status","statusChangeTime"],"members":{"appArn":{},"appVersion":{},"errorMessage":{},"status":{},"statusChangeTime":{"type":"timestamp"}}}},"DescribeResiliencyPolicy":{"http":{"requestUri":"/describe-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"policyArn":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}},"ImportResourcesToDraftAppVersion":{"http":{"requestUri":"/import-resources-to-draft-app-version","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"sourceArns":{"shape":"S2g"},"terraformSources":{"shape":"S2h"}}},"output":{"type":"structure","required":["appArn","appVersion","status"],"members":{"appArn":{},"appVersion":{},"sourceArns":{"shape":"S2g"},"status":{},"terraformSources":{"shape":"S2h"}}}},"ListAlarmRecommendations":{"http":{"requestUri":"/list-alarm-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["alarmRecommendations"],"members":{"alarmRecommendations":{"type":"list","member":{"type":"structure","required":["name","recommendationId","referenceId","type"],"members":{"appComponentName":{},"description":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"type":{}}}},"nextToken":{}}}},"ListAppAssessments":{"http":{"method":"GET","requestUri":"/list-app-assessments","responseCode":200},"input":{"type":"structure","members":{"appArn":{"location":"querystring","locationName":"appArn"},"assessmentName":{"location":"querystring","locationName":"assessmentName"},"assessmentStatus":{"location":"querystring","locationName":"assessmentStatus","type":"list","member":{}},"complianceStatus":{"location":"querystring","locationName":"complianceStatus"},"invoker":{"location":"querystring","locationName":"invoker"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"reverseOrder":{"location":"querystring","locationName":"reverseOrder","type":"boolean"}}},"output":{"type":"structure","required":["assessmentSummaries"],"members":{"assessmentSummaries":{"type":"list","member":{"type":"structure","required":["assessmentArn","assessmentStatus"],"members":{"appArn":{},"appVersion":{},"assessmentArn":{},"assessmentName":{},"assessmentStatus":{},"complianceStatus":{},"cost":{"shape":"S1u"},"endTime":{"type":"timestamp"},"invoker":{},"message":{},"resiliencyScore":{"type":"double"},"startTime":{"type":"timestamp"}}}},"nextToken":{}}}},"ListAppComponentCompliances":{"http":{"requestUri":"/list-app-component-compliances","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["componentCompliances"],"members":{"componentCompliances":{"type":"list","member":{"type":"structure","members":{"appComponentName":{},"compliance":{"shape":"S1r"},"cost":{"shape":"S1u"},"message":{},"resiliencyScore":{"shape":"S1y"},"status":{}}}},"nextToken":{}}}},"ListAppComponentRecommendations":{"http":{"requestUri":"/list-app-component-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["componentRecommendations"],"members":{"componentRecommendations":{"type":"list","member":{"type":"structure","required":["appComponentName","configRecommendations","recommendationStatus"],"members":{"appComponentName":{},"configRecommendations":{"type":"list","member":{"type":"structure","required":["name","optimizationType","referenceId"],"members":{"appComponentName":{},"compliance":{"shape":"S1r"},"cost":{"shape":"S1u"},"description":{},"haArchitecture":{},"name":{},"optimizationType":{},"recommendationCompliance":{"type":"map","key":{},"value":{"type":"structure","required":["expectedComplianceStatus"],"members":{"expectedComplianceStatus":{},"expectedRpoDescription":{},"expectedRpoInSecs":{"type":"integer"},"expectedRtoDescription":{},"expectedRtoInSecs":{"type":"integer"}}}},"referenceId":{},"suggestedChanges":{"type":"list","member":{}}}}},"recommendationStatus":{}}}},"nextToken":{}}}},"ListAppVersionResourceMappings":{"http":{"requestUri":"/list-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["resourceMappings"],"members":{"nextToken":{},"resourceMappings":{"shape":"S3"}}}},"ListAppVersionResources":{"http":{"requestUri":"/list-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{},"resolutionId":{}}},"output":{"type":"structure","required":["physicalResources","resolutionId"],"members":{"nextToken":{},"physicalResources":{"type":"list","member":{"type":"structure","required":["logicalResourceId","physicalResourceId","resourceType"],"members":{"appComponents":{"type":"list","member":{"type":"structure","required":["name","type"],"members":{"name":{},"type":{}}}},"logicalResourceId":{"shape":"S3p"},"physicalResourceId":{"shape":"S8"},"resourceName":{},"resourceType":{}}}},"resolutionId":{}}}},"ListAppVersions":{"http":{"requestUri":"/list-app-versions","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["appVersions"],"members":{"appVersions":{"type":"list","member":{"type":"structure","required":["appVersion"],"members":{"appVersion":{}}}},"nextToken":{}}}},"ListApps":{"http":{"method":"GET","requestUri":"/list-apps","responseCode":200},"input":{"type":"structure","members":{"appArn":{"location":"querystring","locationName":"appArn"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"name":{"location":"querystring","locationName":"name"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["appSummaries"],"members":{"appSummaries":{"type":"list","member":{"type":"structure","required":["appArn","creationTime","name"],"members":{"appArn":{},"assessmentSchedule":{},"complianceStatus":{},"creationTime":{"type":"timestamp"},"description":{},"name":{},"resiliencyScore":{"type":"double"}}}},"nextToken":{}}}},"ListRecommendationTemplates":{"http":{"method":"GET","requestUri":"/list-recommendation-templates","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{"location":"querystring","locationName":"assessmentArn"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"name":{"location":"querystring","locationName":"name"},"nextToken":{"location":"querystring","locationName":"nextToken"},"recommendationTemplateArn":{"location":"querystring","locationName":"recommendationTemplateArn"},"reverseOrder":{"location":"querystring","locationName":"reverseOrder","type":"boolean"},"status":{"location":"querystring","locationName":"status","type":"list","member":{}}}},"output":{"type":"structure","members":{"nextToken":{},"recommendationTemplates":{"type":"list","member":{"shape":"Sy"}}}}},"ListResiliencyPolicies":{"http":{"method":"GET","requestUri":"/list-resiliency-policies","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"policyName":{"location":"querystring","locationName":"policyName"}}},"output":{"type":"structure","required":["resiliencyPolicies"],"members":{"nextToken":{},"resiliencyPolicies":{"shape":"S44"}}}},"ListSopRecommendations":{"http":{"requestUri":"/list-sop-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["sopRecommendations"],"members":{"nextToken":{},"sopRecommendations":{"type":"list","member":{"type":"structure","required":["recommendationId","referenceId","serviceType"],"members":{"appComponentName":{},"description":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"serviceType":{}}}}}}},"ListSuggestedResiliencyPolicies":{"http":{"method":"GET","requestUri":"/list-suggested-resiliency-policies","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["resiliencyPolicies"],"members":{"nextToken":{},"resiliencyPolicies":{"shape":"S44"}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"Si"}}}},"ListTestRecommendations":{"http":{"requestUri":"/list-test-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["testRecommendations"],"members":{"nextToken":{},"testRecommendations":{"type":"list","member":{"type":"structure","required":["referenceId"],"members":{"appComponentName":{},"dependsOnAlarms":{"type":"list","member":{}},"description":{},"intent":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"risk":{},"type":{}}}}}}},"ListUnsupportedAppVersionResources":{"http":{"requestUri":"/list-unsupported-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{},"resolutionId":{}}},"output":{"type":"structure","required":["resolutionId","unsupportedResources"],"members":{"nextToken":{},"resolutionId":{},"unsupportedResources":{"type":"list","member":{"type":"structure","required":["logicalResourceId","physicalResourceId","resourceType"],"members":{"logicalResourceId":{"shape":"S3p"},"physicalResourceId":{"shape":"S8"},"resourceType":{}}}}}}},"PublishAppVersion":{"http":{"requestUri":"/publish-app-version","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["appArn"],"members":{"appArn":{},"appVersion":{}}}},"PutDraftAppVersionTemplate":{"http":{"requestUri":"/put-draft-app-version-template","responseCode":200},"input":{"type":"structure","required":["appArn","appTemplateBody"],"members":{"appArn":{},"appTemplateBody":{}}},"output":{"type":"structure","members":{"appArn":{},"appVersion":{}}}},"RemoveDraftAppVersionResourceMappings":{"http":{"requestUri":"/remove-draft-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"appRegistryAppNames":{"shape":"S4v"},"logicalStackNames":{"shape":"S4w"},"resourceGroupNames":{"shape":"S4v"},"resourceNames":{"shape":"S4v"},"terraformSourceNames":{"shape":"S4w"}}},"output":{"type":"structure","members":{"appArn":{},"appVersion":{}}}},"ResolveAppVersionResources":{"http":{"requestUri":"/resolve-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{}}},"output":{"type":"structure","required":["appArn","appVersion","resolutionId","status"],"members":{"appArn":{},"appVersion":{},"resolutionId":{},"status":{}}}},"StartAppAssessment":{"http":{"requestUri":"/start-app-assessment","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion","assessmentName"],"members":{"appArn":{},"appVersion":{},"assessmentName":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"Si"}}},"output":{"type":"structure","required":["assessment"],"members":{"assessment":{"shape":"S1q"}}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tags":{"shape":"Si"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{},"sensitive":true}}},"output":{"type":"structure","members":{}}},"UpdateApp":{"http":{"requestUri":"/update-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"assessmentSchedule":{},"clearResiliencyPolicyArn":{"type":"boolean"},"description":{},"policyArn":{}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"UpdateResiliencyPolicy":{"http":{"requestUri":"/update-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"dataLocationConstraint":{},"policy":{"shape":"S15"},"policyArn":{},"policyDescription":{},"policyName":{},"tier":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}}},"shapes":{"S3":{"type":"list","member":{"type":"structure","required":["mappingType","physicalResourceId"],"members":{"appRegistryAppName":{},"logicalStackName":{},"mappingType":{},"physicalResourceId":{"shape":"S8"},"resourceGroupName":{},"resourceName":{},"terraformSourceName":{}}}},"S8":{"type":"structure","required":["identifier","type"],"members":{"awsAccountId":{},"awsRegion":{},"identifier":{},"type":{}}},"Si":{"type":"map","key":{},"value":{},"sensitive":true},"Sm":{"type":"structure","required":["appArn","creationTime","name"],"members":{"appArn":{},"assessmentSchedule":{},"complianceStatus":{},"creationTime":{"type":"timestamp"},"description":{},"lastAppComplianceEvaluationTime":{"type":"timestamp"},"lastResiliencyScoreEvaluationTime":{"type":"timestamp"},"name":{},"policyArn":{},"resiliencyScore":{"type":"double"},"status":{},"tags":{"shape":"Si"}}},"St":{"type":"list","member":{}},"Sv":{"type":"list","member":{}},"Sy":{"type":"structure","required":["assessmentArn","format","name","recommendationTemplateArn","recommendationTypes","status"],"members":{"appArn":{},"assessmentArn":{},"endTime":{"type":"timestamp"},"format":{},"message":{},"name":{},"needsReplacements":{"type":"boolean"},"recommendationIds":{"shape":"St"},"recommendationTemplateArn":{},"recommendationTypes":{"shape":"Sv"},"startTime":{"type":"timestamp"},"status":{},"tags":{"shape":"Si"},"templatesLocation":{"type":"structure","members":{"bucket":{},"prefix":{}}}}},"S15":{"type":"map","key":{},"value":{"type":"structure","required":["rpoInSecs","rtoInSecs"],"members":{"rpoInSecs":{"type":"integer"},"rtoInSecs":{"type":"integer"}}}},"S1b":{"type":"structure","members":{"creationTime":{"type":"timestamp"},"dataLocationConstraint":{},"estimatedCostTier":{},"policy":{"shape":"S15"},"policyArn":{},"policyDescription":{},"policyName":{},"tags":{"shape":"Si"},"tier":{}}},"S1q":{"type":"structure","required":["assessmentArn","assessmentStatus","invoker"],"members":{"appArn":{},"appVersion":{},"assessmentArn":{},"assessmentName":{},"assessmentStatus":{},"compliance":{"shape":"S1r"},"complianceStatus":{},"cost":{"shape":"S1u"},"endTime":{"type":"timestamp"},"invoker":{},"message":{},"policy":{"shape":"S1b"},"resiliencyScore":{"shape":"S1y"},"resourceErrorsDetails":{"type":"structure","members":{"hasMoreErrors":{"type":"boolean"},"resourceErrors":{"type":"list","member":{"type":"structure","members":{"logicalResourceId":{},"physicalResourceId":{},"reason":{}}}}}},"startTime":{"type":"timestamp"},"tags":{"shape":"Si"}}},"S1r":{"type":"map","key":{},"value":{"type":"structure","required":["complianceStatus"],"members":{"achievableRpoInSecs":{"type":"integer"},"achievableRtoInSecs":{"type":"integer"},"complianceStatus":{},"currentRpoInSecs":{"type":"integer"},"currentRtoInSecs":{"type":"integer"},"message":{},"rpoDescription":{},"rpoReferenceId":{},"rtoDescription":{},"rtoReferenceId":{}}}},"S1u":{"type":"structure","required":["amount","currency","frequency"],"members":{"amount":{"type":"double"},"currency":{},"frequency":{}}},"S1y":{"type":"structure","required":["disruptionScore","score"],"members":{"disruptionScore":{"type":"map","key":{},"value":{"type":"double"}},"score":{"type":"double"}}},"S2g":{"type":"list","member":{}},"S2h":{"type":"list","member":{"type":"structure","required":["s3StateFileUrl"],"members":{"s3StateFileUrl":{}}}},"S2s":{"type":"list","member":{"type":"structure","members":{"alreadyImplemented":{"type":"boolean"},"resourceId":{},"targetAccountId":{},"targetRegion":{}}}},"S3p":{"type":"structure","required":["identifier"],"members":{"identifier":{},"logicalStackName":{},"resourceGroupName":{},"terraformSourceName":{}}},"S44":{"type":"list","member":{"shape":"S1b"}},"S4v":{"type":"list","member":{}},"S4w":{"type":"list","member":{}}}} + module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-04-30","endpointPrefix":"resiliencehub","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"AWS Resilience Hub","serviceId":"resiliencehub","signatureVersion":"v4","signingName":"resiliencehub","uid":"resiliencehub-2020-04-30"},"operations":{"AddDraftAppVersionResourceMappings":{"http":{"requestUri":"/add-draft-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn","resourceMappings"],"members":{"appArn":{},"resourceMappings":{"shape":"S3"}}},"output":{"type":"structure","required":["appArn","appVersion","resourceMappings"],"members":{"appArn":{},"appVersion":{},"resourceMappings":{"shape":"S3"}}}},"CreateApp":{"http":{"requestUri":"/create-app","responseCode":200},"input":{"type":"structure","required":["name"],"members":{"assessmentSchedule":{},"clientToken":{"idempotencyToken":true},"description":{},"name":{},"policyArn":{},"tags":{"shape":"Si"}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"CreateRecommendationTemplate":{"http":{"requestUri":"/create-recommendation-template","responseCode":200},"input":{"type":"structure","required":["assessmentArn","name"],"members":{"assessmentArn":{},"bucketName":{},"clientToken":{"idempotencyToken":true},"format":{},"name":{},"recommendationIds":{"shape":"St"},"recommendationTypes":{"shape":"Sv"},"tags":{"shape":"Si"}}},"output":{"type":"structure","members":{"recommendationTemplate":{"shape":"Sy"}}}},"CreateResiliencyPolicy":{"http":{"requestUri":"/create-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policy","policyName","tier"],"members":{"clientToken":{"idempotencyToken":true},"dataLocationConstraint":{},"policy":{"shape":"S15"},"policyDescription":{},"policyName":{},"tags":{"shape":"Si"},"tier":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}},"DeleteApp":{"http":{"requestUri":"/delete-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"clientToken":{"idempotencyToken":true},"forceDelete":{"type":"boolean"}}},"output":{"type":"structure","required":["appArn"],"members":{"appArn":{}}}},"DeleteAppAssessment":{"http":{"requestUri":"/delete-app-assessment","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"clientToken":{"idempotencyToken":true}}},"output":{"type":"structure","required":["assessmentArn","assessmentStatus"],"members":{"assessmentArn":{},"assessmentStatus":{}}}},"DeleteRecommendationTemplate":{"http":{"requestUri":"/delete-recommendation-template","responseCode":200},"input":{"type":"structure","required":["recommendationTemplateArn"],"members":{"clientToken":{"idempotencyToken":true},"recommendationTemplateArn":{}}},"output":{"type":"structure","required":["recommendationTemplateArn","status"],"members":{"recommendationTemplateArn":{},"status":{}}}},"DeleteResiliencyPolicy":{"http":{"requestUri":"/delete-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"clientToken":{"idempotencyToken":true},"policyArn":{}}},"output":{"type":"structure","required":["policyArn"],"members":{"policyArn":{}}}},"DescribeApp":{"http":{"requestUri":"/describe-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"DescribeAppAssessment":{"http":{"requestUri":"/describe-app-assessment","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{}}},"output":{"type":"structure","required":["assessment"],"members":{"assessment":{"shape":"S1q"}}}},"DescribeAppVersionResourcesResolutionStatus":{"http":{"requestUri":"/describe-app-version-resources-resolution-status","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"resolutionId":{}}},"output":{"type":"structure","required":["appArn","appVersion","resolutionId","status"],"members":{"appArn":{},"appVersion":{},"errorMessage":{},"resolutionId":{},"status":{}}}},"DescribeAppVersionTemplate":{"http":{"requestUri":"/describe-app-version-template","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{}}},"output":{"type":"structure","required":["appArn","appTemplateBody","appVersion"],"members":{"appArn":{},"appTemplateBody":{},"appVersion":{}}}},"DescribeDraftAppVersionResourcesImportStatus":{"http":{"requestUri":"/describe-draft-app-version-resources-import-status","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["appArn","appVersion","status","statusChangeTime"],"members":{"appArn":{},"appVersion":{},"errorMessage":{},"status":{},"statusChangeTime":{"type":"timestamp"}}}},"DescribeResiliencyPolicy":{"http":{"requestUri":"/describe-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"policyArn":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}},"ImportResourcesToDraftAppVersion":{"http":{"requestUri":"/import-resources-to-draft-app-version","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"sourceArns":{"shape":"S2g"},"terraformSources":{"shape":"S2h"}}},"output":{"type":"structure","required":["appArn","appVersion","status"],"members":{"appArn":{},"appVersion":{},"sourceArns":{"shape":"S2g"},"status":{},"terraformSources":{"shape":"S2h"}}}},"ListAlarmRecommendations":{"http":{"requestUri":"/list-alarm-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["alarmRecommendations"],"members":{"alarmRecommendations":{"type":"list","member":{"type":"structure","required":["name","recommendationId","referenceId","type"],"members":{"appComponentName":{},"description":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"type":{}}}},"nextToken":{}}}},"ListAppAssessments":{"http":{"method":"GET","requestUri":"/list-app-assessments","responseCode":200},"input":{"type":"structure","members":{"appArn":{"location":"querystring","locationName":"appArn"},"assessmentName":{"location":"querystring","locationName":"assessmentName"},"assessmentStatus":{"location":"querystring","locationName":"assessmentStatus","type":"list","member":{}},"complianceStatus":{"location":"querystring","locationName":"complianceStatus"},"invoker":{"location":"querystring","locationName":"invoker"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"reverseOrder":{"location":"querystring","locationName":"reverseOrder","type":"boolean"}}},"output":{"type":"structure","required":["assessmentSummaries"],"members":{"assessmentSummaries":{"type":"list","member":{"type":"structure","required":["assessmentArn","assessmentStatus"],"members":{"appArn":{},"appVersion":{},"assessmentArn":{},"assessmentName":{},"assessmentStatus":{},"complianceStatus":{},"cost":{"shape":"S1u"},"endTime":{"type":"timestamp"},"invoker":{},"message":{},"resiliencyScore":{"type":"double"},"startTime":{"type":"timestamp"}}}},"nextToken":{}}}},"ListAppComponentCompliances":{"http":{"requestUri":"/list-app-component-compliances","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["componentCompliances"],"members":{"componentCompliances":{"type":"list","member":{"type":"structure","members":{"appComponentName":{},"compliance":{"shape":"S1r"},"cost":{"shape":"S1u"},"message":{},"resiliencyScore":{"shape":"S1y"},"status":{}}}},"nextToken":{}}}},"ListAppComponentRecommendations":{"http":{"requestUri":"/list-app-component-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["componentRecommendations"],"members":{"componentRecommendations":{"type":"list","member":{"type":"structure","required":["appComponentName","configRecommendations","recommendationStatus"],"members":{"appComponentName":{},"configRecommendations":{"type":"list","member":{"type":"structure","required":["name","optimizationType","referenceId"],"members":{"appComponentName":{},"compliance":{"shape":"S1r"},"cost":{"shape":"S1u"},"description":{},"haArchitecture":{},"name":{},"optimizationType":{},"recommendationCompliance":{"type":"map","key":{},"value":{"type":"structure","required":["expectedComplianceStatus"],"members":{"expectedComplianceStatus":{},"expectedRpoDescription":{},"expectedRpoInSecs":{"type":"integer"},"expectedRtoDescription":{},"expectedRtoInSecs":{"type":"integer"}}}},"referenceId":{},"suggestedChanges":{"type":"list","member":{}}}}},"recommendationStatus":{}}}},"nextToken":{}}}},"ListAppVersionResourceMappings":{"http":{"requestUri":"/list-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["resourceMappings"],"members":{"nextToken":{},"resourceMappings":{"shape":"S3"}}}},"ListAppVersionResources":{"http":{"requestUri":"/list-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{},"resolutionId":{}}},"output":{"type":"structure","required":["physicalResources","resolutionId"],"members":{"nextToken":{},"physicalResources":{"type":"list","member":{"type":"structure","required":["logicalResourceId","physicalResourceId","resourceType"],"members":{"appComponents":{"type":"list","member":{"type":"structure","required":["name","type"],"members":{"name":{},"type":{}}}},"logicalResourceId":{"shape":"S3p"},"physicalResourceId":{"shape":"S8"},"resourceName":{},"resourceType":{}}}},"resolutionId":{}}}},"ListAppVersions":{"http":{"requestUri":"/list-app-versions","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["appVersions"],"members":{"appVersions":{"type":"list","member":{"type":"structure","required":["appVersion"],"members":{"appVersion":{}}}},"nextToken":{}}}},"ListApps":{"http":{"method":"GET","requestUri":"/list-apps","responseCode":200},"input":{"type":"structure","members":{"appArn":{"location":"querystring","locationName":"appArn"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"name":{"location":"querystring","locationName":"name"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["appSummaries"],"members":{"appSummaries":{"type":"list","member":{"type":"structure","required":["appArn","creationTime","name"],"members":{"appArn":{},"assessmentSchedule":{},"complianceStatus":{},"creationTime":{"type":"timestamp"},"description":{},"name":{},"resiliencyScore":{"type":"double"},"status":{}}}},"nextToken":{}}}},"ListRecommendationTemplates":{"http":{"method":"GET","requestUri":"/list-recommendation-templates","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{"location":"querystring","locationName":"assessmentArn"},"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"name":{"location":"querystring","locationName":"name"},"nextToken":{"location":"querystring","locationName":"nextToken"},"recommendationTemplateArn":{"location":"querystring","locationName":"recommendationTemplateArn"},"reverseOrder":{"location":"querystring","locationName":"reverseOrder","type":"boolean"},"status":{"location":"querystring","locationName":"status","type":"list","member":{}}}},"output":{"type":"structure","members":{"nextToken":{},"recommendationTemplates":{"type":"list","member":{"shape":"Sy"}}}}},"ListResiliencyPolicies":{"http":{"method":"GET","requestUri":"/list-resiliency-policies","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"},"policyName":{"location":"querystring","locationName":"policyName"}}},"output":{"type":"structure","required":["resiliencyPolicies"],"members":{"nextToken":{},"resiliencyPolicies":{"shape":"S44"}}}},"ListSopRecommendations":{"http":{"requestUri":"/list-sop-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["sopRecommendations"],"members":{"nextToken":{},"sopRecommendations":{"type":"list","member":{"type":"structure","required":["recommendationId","referenceId","serviceType"],"members":{"appComponentName":{},"description":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"serviceType":{}}}}}}},"ListSuggestedResiliencyPolicies":{"http":{"method":"GET","requestUri":"/list-suggested-resiliency-policies","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"nextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","required":["resiliencyPolicies"],"members":{"nextToken":{},"resiliencyPolicies":{"shape":"S44"}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"Si"}}}},"ListTestRecommendations":{"http":{"requestUri":"/list-test-recommendations","responseCode":200},"input":{"type":"structure","required":["assessmentArn"],"members":{"assessmentArn":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["testRecommendations"],"members":{"nextToken":{},"testRecommendations":{"type":"list","member":{"type":"structure","required":["referenceId"],"members":{"appComponentName":{},"dependsOnAlarms":{"type":"list","member":{}},"description":{},"intent":{},"items":{"shape":"S2s"},"name":{},"prerequisite":{},"recommendationId":{},"referenceId":{},"risk":{},"type":{}}}}}}},"ListUnsupportedAppVersionResources":{"http":{"requestUri":"/list-unsupported-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{},"maxResults":{"type":"integer"},"nextToken":{},"resolutionId":{}}},"output":{"type":"structure","required":["resolutionId","unsupportedResources"],"members":{"nextToken":{},"resolutionId":{},"unsupportedResources":{"type":"list","member":{"type":"structure","required":["logicalResourceId","physicalResourceId","resourceType"],"members":{"logicalResourceId":{"shape":"S3p"},"physicalResourceId":{"shape":"S8"},"resourceType":{}}}}}}},"PublishAppVersion":{"http":{"requestUri":"/publish-app-version","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{}}},"output":{"type":"structure","required":["appArn"],"members":{"appArn":{},"appVersion":{}}}},"PutDraftAppVersionTemplate":{"http":{"requestUri":"/put-draft-app-version-template","responseCode":200},"input":{"type":"structure","required":["appArn","appTemplateBody"],"members":{"appArn":{},"appTemplateBody":{}}},"output":{"type":"structure","members":{"appArn":{},"appVersion":{}}}},"RemoveDraftAppVersionResourceMappings":{"http":{"requestUri":"/remove-draft-app-version-resource-mappings","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"appRegistryAppNames":{"shape":"S4v"},"logicalStackNames":{"shape":"S4w"},"resourceGroupNames":{"shape":"S4v"},"resourceNames":{"shape":"S4v"},"terraformSourceNames":{"shape":"S4w"}}},"output":{"type":"structure","members":{"appArn":{},"appVersion":{}}}},"ResolveAppVersionResources":{"http":{"requestUri":"/resolve-app-version-resources","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion"],"members":{"appArn":{},"appVersion":{}}},"output":{"type":"structure","required":["appArn","appVersion","resolutionId","status"],"members":{"appArn":{},"appVersion":{},"resolutionId":{},"status":{}}}},"StartAppAssessment":{"http":{"requestUri":"/start-app-assessment","responseCode":200},"input":{"type":"structure","required":["appArn","appVersion","assessmentName"],"members":{"appArn":{},"appVersion":{},"assessmentName":{},"clientToken":{"idempotencyToken":true},"tags":{"shape":"Si"}}},"output":{"type":"structure","required":["assessment"],"members":{"assessment":{"shape":"S1q"}}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tags":{"shape":"Si"}}},"output":{"type":"structure","members":{}}},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{},"sensitive":true}}},"output":{"type":"structure","members":{}}},"UpdateApp":{"http":{"requestUri":"/update-app","responseCode":200},"input":{"type":"structure","required":["appArn"],"members":{"appArn":{},"assessmentSchedule":{},"clearResiliencyPolicyArn":{"type":"boolean"},"description":{},"policyArn":{}}},"output":{"type":"structure","required":["app"],"members":{"app":{"shape":"Sm"}}}},"UpdateResiliencyPolicy":{"http":{"requestUri":"/update-resiliency-policy","responseCode":200},"input":{"type":"structure","required":["policyArn"],"members":{"dataLocationConstraint":{},"policy":{"shape":"S15"},"policyArn":{},"policyDescription":{},"policyName":{},"tier":{}}},"output":{"type":"structure","required":["policy"],"members":{"policy":{"shape":"S1b"}}}}},"shapes":{"S3":{"type":"list","member":{"type":"structure","required":["mappingType","physicalResourceId"],"members":{"appRegistryAppName":{},"logicalStackName":{},"mappingType":{},"physicalResourceId":{"shape":"S8"},"resourceGroupName":{},"resourceName":{},"terraformSourceName":{}}}},"S8":{"type":"structure","required":["identifier","type"],"members":{"awsAccountId":{},"awsRegion":{},"identifier":{},"type":{}}},"Si":{"type":"map","key":{},"value":{},"sensitive":true},"Sm":{"type":"structure","required":["appArn","creationTime","name"],"members":{"appArn":{},"assessmentSchedule":{},"complianceStatus":{},"creationTime":{"type":"timestamp"},"description":{},"lastAppComplianceEvaluationTime":{"type":"timestamp"},"lastResiliencyScoreEvaluationTime":{"type":"timestamp"},"name":{},"policyArn":{},"resiliencyScore":{"type":"double"},"status":{},"tags":{"shape":"Si"}}},"St":{"type":"list","member":{}},"Sv":{"type":"list","member":{}},"Sy":{"type":"structure","required":["assessmentArn","format","name","recommendationTemplateArn","recommendationTypes","status"],"members":{"appArn":{},"assessmentArn":{},"endTime":{"type":"timestamp"},"format":{},"message":{},"name":{},"needsReplacements":{"type":"boolean"},"recommendationIds":{"shape":"St"},"recommendationTemplateArn":{},"recommendationTypes":{"shape":"Sv"},"startTime":{"type":"timestamp"},"status":{},"tags":{"shape":"Si"},"templatesLocation":{"type":"structure","members":{"bucket":{},"prefix":{}}}}},"S15":{"type":"map","key":{},"value":{"type":"structure","required":["rpoInSecs","rtoInSecs"],"members":{"rpoInSecs":{"type":"integer"},"rtoInSecs":{"type":"integer"}}}},"S1b":{"type":"structure","members":{"creationTime":{"type":"timestamp"},"dataLocationConstraint":{},"estimatedCostTier":{},"policy":{"shape":"S15"},"policyArn":{},"policyDescription":{},"policyName":{},"tags":{"shape":"Si"},"tier":{}}},"S1q":{"type":"structure","required":["assessmentArn","assessmentStatus","invoker"],"members":{"appArn":{},"appVersion":{},"assessmentArn":{},"assessmentName":{},"assessmentStatus":{},"compliance":{"shape":"S1r"},"complianceStatus":{},"cost":{"shape":"S1u"},"endTime":{"type":"timestamp"},"invoker":{},"message":{},"policy":{"shape":"S1b"},"resiliencyScore":{"shape":"S1y"},"resourceErrorsDetails":{"type":"structure","members":{"hasMoreErrors":{"type":"boolean"},"resourceErrors":{"type":"list","member":{"type":"structure","members":{"logicalResourceId":{},"physicalResourceId":{},"reason":{}}}}}},"startTime":{"type":"timestamp"},"tags":{"shape":"Si"}}},"S1r":{"type":"map","key":{},"value":{"type":"structure","required":["complianceStatus"],"members":{"achievableRpoInSecs":{"type":"integer"},"achievableRtoInSecs":{"type":"integer"},"complianceStatus":{},"currentRpoInSecs":{"type":"integer"},"currentRtoInSecs":{"type":"integer"},"message":{},"rpoDescription":{},"rpoReferenceId":{},"rtoDescription":{},"rtoReferenceId":{}}}},"S1u":{"type":"structure","required":["amount","currency","frequency"],"members":{"amount":{"type":"double"},"currency":{},"frequency":{}}},"S1y":{"type":"structure","required":["disruptionScore","score"],"members":{"disruptionScore":{"type":"map","key":{},"value":{"type":"double"}},"score":{"type":"double"}}},"S2g":{"type":"list","member":{}},"S2h":{"type":"list","member":{"type":"structure","required":["s3StateFileUrl"],"members":{"s3StateFileUrl":{}}}},"S2s":{"type":"list","member":{"type":"structure","members":{"alreadyImplemented":{"type":"boolean"},"resourceId":{},"targetAccountId":{},"targetRegion":{}}}},"S3p":{"type":"structure","required":["identifier"],"members":{"identifier":{},"logicalStackName":{},"resourceGroupName":{},"terraformSourceName":{}}},"S44":{"type":"list","member":{"shape":"S1b"}},"S4v":{"type":"list","member":{}},"S4w":{"type":"list","member":{}}}} /***/ }), /* 1112 */ @@ -60036,13 +60040,13 @@ return /******/ (function(modules) { // webpackBootstrap /* 1135 */ /***/ (function(module, exports) { - module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-05-10","endpointPrefix":"rum","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"CloudWatch RUM","serviceId":"RUM","signatureVersion":"v4","signingName":"rum","uid":"rum-2018-05-10"},"operations":{"CreateAppMonitor":{"http":{"requestUri":"/appmonitor","responseCode":200},"input":{"type":"structure","required":["Domain","Name"],"members":{"AppMonitorConfiguration":{"shape":"S2"},"CwLogEnabled":{"type":"boolean"},"Domain":{},"Name":{},"Tags":{"shape":"Sf"}}},"output":{"type":"structure","members":{"Id":{}}},"idempotent":true},"DeleteAppMonitor":{"http":{"method":"DELETE","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{}},"idempotent":true},"GetAppMonitor":{"http":{"method":"GET","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{"AppMonitor":{"type":"structure","members":{"AppMonitorConfiguration":{"shape":"S2"},"Created":{},"DataStorage":{"type":"structure","members":{"CwLog":{"type":"structure","members":{"CwLogEnabled":{"type":"boolean"},"CwLogGroup":{}}}}},"Domain":{},"Id":{},"LastModified":{},"Name":{},"State":{},"Tags":{"shape":"Sf"}}}}}},"GetAppMonitorData":{"http":{"requestUri":"/appmonitor/{Name}/data","responseCode":200},"input":{"type":"structure","required":["Name","TimeRange"],"members":{"Filters":{"type":"list","member":{"type":"structure","members":{"Name":{},"Values":{"type":"list","member":{}}}}},"MaxResults":{"type":"integer"},"Name":{"location":"uri","locationName":"Name"},"NextToken":{},"TimeRange":{"type":"structure","required":["After"],"members":{"After":{"type":"long"},"Before":{"type":"long"}}}}},"output":{"type":"structure","members":{"Events":{"type":"list","member":{}},"NextToken":{}}}},"ListAppMonitors":{"http":{"requestUri":"/appmonitors","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"AppMonitorSummaries":{"type":"list","member":{"type":"structure","members":{"Created":{},"Id":{},"LastModified":{},"Name":{},"State":{}}}},"NextToken":{}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"}}},"output":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sf"}}}},"PutRumEvents":{"http":{"requestUri":"/appmonitors/{Id}/","responseCode":200},"input":{"type":"structure","required":["AppMonitorDetails","BatchId","Id","RumEvents","UserDetails"],"members":{"AppMonitorDetails":{"type":"structure","members":{"id":{},"name":{},"version":{}}},"BatchId":{},"Id":{"location":"uri","locationName":"Id"},"RumEvents":{"type":"list","member":{"type":"structure","required":["details","id","timestamp","type"],"members":{"details":{"jsonvalue":true},"id":{},"metadata":{"jsonvalue":true},"timestamp":{"type":"timestamp"},"type":{}}}},"UserDetails":{"type":"structure","members":{"sessionId":{},"userId":{}}}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"dataplane."}},"TagResource":{"http":{"requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"Tags":{"shape":"Sf"}}},"output":{"type":"structure","members":{}},"idempotent":true},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"TagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}},"idempotent":true},"UpdateAppMonitor":{"http":{"method":"PATCH","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"AppMonitorConfiguration":{"shape":"S2"},"CwLogEnabled":{"type":"boolean"},"Domain":{},"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{}}}},"shapes":{"S2":{"type":"structure","members":{"AllowCookies":{"type":"boolean"},"EnableXRay":{"type":"boolean"},"ExcludedPages":{"shape":"S4"},"FavoritePages":{"type":"list","member":{}},"GuestRoleArn":{},"IdentityPoolId":{},"IncludedPages":{"shape":"S4"},"SessionSampleRate":{"type":"double"},"Telemetries":{"type":"list","member":{}}}},"S4":{"type":"list","member":{}},"Sf":{"type":"map","key":{},"value":{}}}} + module.exports = {"version":"2.0","metadata":{"apiVersion":"2018-05-10","endpointPrefix":"rum","jsonVersion":"1.1","protocol":"rest-json","serviceFullName":"CloudWatch RUM","serviceId":"RUM","signatureVersion":"v4","signingName":"rum","uid":"rum-2018-05-10"},"operations":{"BatchCreateRumMetricDefinitions":{"http":{"requestUri":"/rummetrics/{AppMonitorName}/metrics","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination","MetricDefinitions"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{},"DestinationArn":{},"MetricDefinitions":{"type":"list","member":{"shape":"S6"}}}},"output":{"type":"structure","required":["Errors"],"members":{"Errors":{"type":"list","member":{"type":"structure","required":["ErrorCode","ErrorMessage","MetricDefinition"],"members":{"ErrorCode":{},"ErrorMessage":{},"MetricDefinition":{"shape":"S6"}}}},"MetricDefinitions":{"shape":"Si"}}},"idempotent":true},"BatchDeleteRumMetricDefinitions":{"http":{"method":"DELETE","requestUri":"/rummetrics/{AppMonitorName}/metrics","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination","MetricDefinitionIds"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{"location":"querystring","locationName":"destination"},"DestinationArn":{"location":"querystring","locationName":"destinationArn"},"MetricDefinitionIds":{"shape":"Sm","location":"querystring","locationName":"metricDefinitionIds"}}},"output":{"type":"structure","required":["Errors"],"members":{"Errors":{"type":"list","member":{"type":"structure","required":["ErrorCode","ErrorMessage","MetricDefinitionId"],"members":{"ErrorCode":{},"ErrorMessage":{},"MetricDefinitionId":{}}}},"MetricDefinitionIds":{"shape":"Sm"}}},"idempotent":true},"BatchGetRumMetricDefinitions":{"http":{"method":"GET","requestUri":"/rummetrics/{AppMonitorName}/metrics","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{"location":"querystring","locationName":"destination"},"DestinationArn":{"location":"querystring","locationName":"destinationArn"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"MetricDefinitions":{"shape":"Si"},"NextToken":{}}}},"CreateAppMonitor":{"http":{"requestUri":"/appmonitor","responseCode":200},"input":{"type":"structure","required":["Domain","Name"],"members":{"AppMonitorConfiguration":{"shape":"Su"},"CwLogEnabled":{"type":"boolean"},"Domain":{},"Name":{},"Tags":{"shape":"S15"}}},"output":{"type":"structure","members":{"Id":{}}},"idempotent":true},"DeleteAppMonitor":{"http":{"method":"DELETE","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{}},"idempotent":true},"DeleteRumMetricsDestination":{"http":{"method":"DELETE","requestUri":"/rummetrics/{AppMonitorName}/metricsdestination","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{"location":"querystring","locationName":"destination"},"DestinationArn":{"location":"querystring","locationName":"destinationArn"}}},"output":{"type":"structure","members":{}},"idempotent":true},"GetAppMonitor":{"http":{"method":"GET","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{"AppMonitor":{"type":"structure","members":{"AppMonitorConfiguration":{"shape":"Su"},"Created":{},"DataStorage":{"type":"structure","members":{"CwLog":{"type":"structure","members":{"CwLogEnabled":{"type":"boolean"},"CwLogGroup":{}}}}},"Domain":{},"Id":{},"LastModified":{},"Name":{},"State":{},"Tags":{"shape":"S15"}}}}}},"GetAppMonitorData":{"http":{"requestUri":"/appmonitor/{Name}/data","responseCode":200},"input":{"type":"structure","required":["Name","TimeRange"],"members":{"Filters":{"type":"list","member":{"type":"structure","members":{"Name":{},"Values":{"type":"list","member":{}}}}},"MaxResults":{"type":"integer"},"Name":{"location":"uri","locationName":"Name"},"NextToken":{},"TimeRange":{"type":"structure","required":["After"],"members":{"After":{"type":"long"},"Before":{"type":"long"}}}}},"output":{"type":"structure","members":{"Events":{"type":"list","member":{}},"NextToken":{}}}},"ListAppMonitors":{"http":{"requestUri":"/appmonitors","responseCode":200},"input":{"type":"structure","members":{"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"AppMonitorSummaries":{"type":"list","member":{"type":"structure","members":{"Created":{},"Id":{},"LastModified":{},"Name":{},"State":{}}}},"NextToken":{}}}},"ListRumMetricsDestinations":{"http":{"method":"GET","requestUri":"/rummetrics/{AppMonitorName}/metricsdestination","responseCode":200},"input":{"type":"structure","required":["AppMonitorName"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"MaxResults":{"location":"querystring","locationName":"maxResults","type":"integer"},"NextToken":{"location":"querystring","locationName":"nextToken"}}},"output":{"type":"structure","members":{"Destinations":{"type":"list","member":{"type":"structure","members":{"Destination":{},"DestinationArn":{},"IamRoleArn":{}}}},"NextToken":{}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"}}},"output":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"S15"}}}},"PutRumEvents":{"http":{"requestUri":"/appmonitors/{Id}/","responseCode":200},"input":{"type":"structure","required":["AppMonitorDetails","BatchId","Id","RumEvents","UserDetails"],"members":{"AppMonitorDetails":{"type":"structure","members":{"id":{},"name":{},"version":{}}},"BatchId":{},"Id":{"location":"uri","locationName":"Id"},"RumEvents":{"type":"list","member":{"type":"structure","required":["details","id","timestamp","type"],"members":{"details":{"jsonvalue":true},"id":{},"metadata":{"jsonvalue":true},"timestamp":{"type":"timestamp"},"type":{}}}},"UserDetails":{"type":"structure","members":{"sessionId":{},"userId":{}}}}},"output":{"type":"structure","members":{}},"endpoint":{"hostPrefix":"dataplane."}},"PutRumMetricsDestination":{"http":{"requestUri":"/rummetrics/{AppMonitorName}/metricsdestination","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{},"DestinationArn":{},"IamRoleArn":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"TagResource":{"http":{"requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"Tags":{"shape":"S15"}}},"output":{"type":"structure","members":{}},"idempotent":true},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{ResourceArn}","responseCode":200},"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{"location":"uri","locationName":"ResourceArn"},"TagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}},"idempotent":true},"UpdateAppMonitor":{"http":{"method":"PATCH","requestUri":"/appmonitor/{Name}","responseCode":200},"input":{"type":"structure","required":["Name"],"members":{"AppMonitorConfiguration":{"shape":"Su"},"CwLogEnabled":{"type":"boolean"},"Domain":{},"Name":{"location":"uri","locationName":"Name"}}},"output":{"type":"structure","members":{}}},"UpdateRumMetricDefinition":{"http":{"method":"PATCH","requestUri":"/rummetrics/{AppMonitorName}/metrics","responseCode":200},"input":{"type":"structure","required":["AppMonitorName","Destination","MetricDefinition","MetricDefinitionId"],"members":{"AppMonitorName":{"location":"uri","locationName":"AppMonitorName"},"Destination":{},"DestinationArn":{},"MetricDefinition":{"shape":"S6"},"MetricDefinitionId":{}}},"output":{"type":"structure","members":{}},"idempotent":true}},"shapes":{"S6":{"type":"structure","required":["Name"],"members":{"DimensionKeys":{"shape":"S7"},"EventPattern":{},"Name":{},"UnitLabel":{},"ValueKey":{}}},"S7":{"type":"map","key":{},"value":{}},"Si":{"type":"list","member":{"type":"structure","required":["MetricDefinitionId","Name"],"members":{"DimensionKeys":{"shape":"S7"},"EventPattern":{},"MetricDefinitionId":{},"Name":{},"UnitLabel":{},"ValueKey":{}}}},"Sm":{"type":"list","member":{}},"Su":{"type":"structure","members":{"AllowCookies":{"type":"boolean"},"EnableXRay":{"type":"boolean"},"ExcludedPages":{"shape":"Sw"},"FavoritePages":{"type":"list","member":{}},"GuestRoleArn":{},"IdentityPoolId":{},"IncludedPages":{"shape":"Sw"},"SessionSampleRate":{"type":"double"},"Telemetries":{"type":"list","member":{}}}},"Sw":{"type":"list","member":{}},"S15":{"type":"map","key":{},"value":{}}}} /***/ }), /* 1136 */ /***/ (function(module, exports) { - module.exports = {"pagination":{"GetAppMonitorData":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"Events"},"ListAppMonitors":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"AppMonitorSummaries"}}} + module.exports = {"pagination":{"BatchGetRumMetricDefinitions":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"MetricDefinitions"},"GetAppMonitorData":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"Events"},"ListAppMonitors":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"AppMonitorSummaries"},"ListRumMetricsDestinations":{"input_token":"NextToken","output_token":"NextToken","limit_key":"MaxResults","result_key":"Destinations"}}} /***/ }), /* 1137 */ diff --git a/dist/aws-sdk.js b/dist/aws-sdk.js index 7a98da6609..97ab1e3176 100644 --- a/dist/aws-sdk.js +++ b/dist/aws-sdk.js @@ -1,4 +1,4 @@ -// AWS SDK for JavaScript v2.1236.0 +// AWS SDK for JavaScript v2.1237.0 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i-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/":434}],337:[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;se.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":336}],338:[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)<>>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>>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":336,"buffer/":434}],339:[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;r14||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":336,"buffer/":434}],340:[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 S=(((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,g=((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,u=n+S|0,n=s,s=i,i=a,a=S+g|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":336,"buffer/":434}],341:[function(e,t,r){(function(r){(function(){var r=e("./util");r.crypto.lib=e("./browserCryptoLib"),r.Buffer=e("buffer/").Buffer,r.url=e("url/"),r.querystring=e("querystring/"),r.realClock=e("./realclock/browserClock"),r.environment="js",r.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var a=e("./core");if(t.exports=a,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/chainable_temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),a.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===i)var i={browser:!0}}).call(this)}).call(this,e("_process"))},{"./browserCryptoLib":335,"./core":345,"./credentials":346,"./credentials/chainable_temporary_credentials":347,"./credentials/cognito_identity_credentials":348,"./credentials/credential_provider_chain":349,"./credentials/saml_credentials":350,"./credentials/temporary_credentials":351,"./credentials/web_identity_credentials":352,"./event-stream/buffered-create-event-stream":360,"./http/xhr":368,"./realclock/browserClock":387,"./util":422,"./xml/browser_parser":423,_process:439,"buffer/":434,"querystring/":446,"url/":448}],342:[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,""),{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)},S=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 S(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 S(n,t)}}),t.exports=a.CloudFront.Signer},{"../core":345}],343:[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"))},getToken:function(e){function t(t){e(t,t?null:i.token)}function r(e,t){return new a.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}var i=this;i.token?"function"==typeof i.token.get?function(){i.token.get(function(e){e&&(e=r("Could not load token from "+i.token.constructor.name,e)),t(e)})}():function(){var e=null;i.token.token||(e=r("Missing token")),t(e)}():i.tokenProvider?i.tokenProvider.resolve(function(e,a){e&&(e=r("Could not load token from any providers",e)),i.token=a,t(e)}):t(r("No token 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,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},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&&(t.push(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":345,"./credentials":346,"./credentials/credential_provider_chain":349}],344:[function(e,t,r){(function(r){(function(){function a(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function i(e,t){e=e||{};var i;if(e[t.clientConfig]&&(i=a(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!s.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(i=a(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return i}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(i=a(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return i}return i}var s=e("./core");t.exports=i}).call(this)}).call(this,e("_process"))},{"./core":345,_process:439}],345:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.1236.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"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":459,"./api_loader":334,"./config":343,"./event_listeners":366,"./http":367,"./json/builder":369,"./json/parser":370,"./model/api":371,"./model/operation":373,"./model/paginator":374,"./model/resource_waiter":375,"./model/shape":376,"./param_validator":377,"./protocol/json":380,"./protocol/query":381,"./protocol/rest":382,"./protocol/rest_json":383,"./protocol/rest_xml":384,"./request":391,"./resource_waiter":392,"./response":393,"./sequential_executor":395,"./service":396,"./signers/request_signer":414,"./util":422,"./xml/builder":424}],346:[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,this.refreshCallbacks=[],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()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){a.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):a.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){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":345}],347:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=a.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=a.util.merge({params:t,credentials:e.masterCredentials||a.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(a,i){var s={};if(a)return void e(a);i&&(s.TokenCode=i),t.service[r](s,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(a.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,i)}):e(null)}})},{"../../clients/sts":329,"../core":345}],348:[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){this.coalesceRefresh(e||a.util.fn.callback)},load: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":260,"../../clients/sts":329,"../core":345}],349:[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),this.resolveCallbacks=[]},resolve:function(e){function t(e,o){if(!e&&o||i===s.length)return a.util.arrayEach(r.resolveCallbacks,function(t){t(e,o)}),void(r.resolveCallbacks.length=0);var n=s[i++];o="function"==typeof n?n.call():n,o.get?o.get(function(e){t(e,e?null:o)}):t(null,o)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var i=0,s=r.providers.slice(0);t()}return r}}),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":345}],350:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],351:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],352:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],353:[function(e,t,r){(function(r){(function(){function a(e){var t=e.service,r=t.api||{},a={};return t.config.region&&(a.region=t.config.region),r.serviceId&&(a.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(a.accessKeyId=t.config.credentials.accessKeyId),a}function i(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&b.arrayEach(r.required,function(a){var s=r.members[a];if(!0===s.endpointDiscoveryId){var o=s.isLocationName?s.name:a;e[o]=String(t[a])}else i(e,t[a],s)})}function s(e,t){var r={};return i(r,e.params,t),r}function o(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,o=i?i.input:void 0,n=s(e,o),p=a(e);Object.keys(n).length>0&&(p=b.update(p,n),i&&(p.operation=i.name));var m=y.endpointCache.get(p);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address);else{var c=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:n});u(c),c.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),c.removeListener("retry",y.EventListeners.Core.RETRY_CHECK),y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}]),c.send(function(e,t){t&&t.Endpoints?y.endpointCache.put(p,t.Endpoints):e&&y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}])})}}function n(e,t){var r=e.service,i=r.api,o=i.operations?i.operations[e.operation]:void 0,n=o?o.input:void 0,p=s(e,n),m=a(e);Object.keys(p).length>0&&(m=b.update(m,p),o&&(m.operation=o.name));var c=y.EndpointCache.getKeyString(m),l=y.endpointCache.get(c);if(l&&1===l.length&&""===l[0].Address)return g[c]||(g[c]=[]),void g[c].push({request:e,callback:t});if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address),t();else{var d=r.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:p});d.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),u(d),y.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:60}]),d.send(function(r,a){if(r){if(e.response.error=b.error(r,{retryable:!1}),y.endpointCache.remove(m),g[c]){var i=g[c];b.arrayEach(i,function(e){e.request.response.error=b.error(r,{retryable:!1}),e.callback()}),delete g[c]}}else if(a&&(y.endpointCache.put(c,a.Endpoints),e.httpRequest.updateEndpoint(a.Endpoints[0].Address),g[c])){var i=g[c];b.arrayEach(i,function(e){e.request.httpRequest.updateEndpoint(a.Endpoints[0].Address),e.callback()}),delete g[c]}t()})}}function u(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function p(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,o=i.service.api.operations||{},n=o[i.operation]?o[i.operation].input:void 0,u=s(i,n),p=a(i);Object.keys(u).length>0&&(p=b.update(p,u),o[i.operation]&&(p.operation=o[i.operation].name)),y.endpointCache.remove(p)}}function m(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw b.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=y.config[e.serviceIdentifier]||{};return Boolean(y.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function c(e){return["false","0"].indexOf(e)>=0}function l(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!b.isBrowser()){for(var a=0;a-1&&0===++e[t];t--);}var s=e("../core").util,o=s.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":345}],363:[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=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();a.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=r(e),i=a.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var s=a.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=s}catch(r){if(i&&i.isStreaming){if(i.requiresLength)throw r;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw r}throw r}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("SET_TRACE_ID","afterBuild",function(e){if(a.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,"X-Amzn-Trace-Id")){var r=t.env.AWS_LAMBDA_FUNCTION_NAME,i=t.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof i&&i.length>0&&(e.httpRequest.headers["X-Amzn-Trace-Id"]=i)}}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=a.util.buffer.toBuffer(""),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(a.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(a.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=a.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 a.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=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new i).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=a.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new i).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var i={};return a.util.each(t,function(t,a){Object.prototype.hasOwnProperty.call(e.members,t)?i[t]=r(e.members[t],a):i[t]=a}),i;case"list":var s=[];return a.util.arrayEach(t,function(t,a){s.push(r(e.member,t))}),s;case"map":var o={};return a.util.each(t,function(t,a){o[t]=r(e.value,a)}),o;default:return t}}var i=t.request,s=i.service.config.logger;if(s){var o=function(){var o=t.request.service.getSkewCorrectedDate().getTime(),n=(o-i.startTime.getTime())/1e3,u=!!s.isTTY,p=t.httpResponse.statusCode,m=i.params;if(i.service.api.operations&&i.service.api.operations[i.operation]&&i.service.api.operations[i.operation].input){m=r(i.service.api.operations[i.operation].input,i.params)}var c=e("util").inspect(m,!0,null),l="";return u&&(l+=""),l+="[AWS "+i.service.serviceIdentifier+" "+p,l+=" "+n.toString()+"s "+t.retryCount+" retries]",u&&(l+=""),l+=" "+a.util.string.lowerFirst(i.operation),l+="("+c+")",u&&(l+=""),l}();"function"==typeof s.log?s.log(o):"function"==typeof s.write&&s.write(o+"\n")}})}),Json:(new i).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 i).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 i).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),t("UNSET_CONTENT_LENGTH","afterBuild",r.unsetContentLength)}),RestXml:(new i).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 i).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)})}}).call(this)}).call(this,e("_process"))},{"./core":345,"./discover_endpoint":353,"./protocol/json":380,"./protocol/query":381,"./protocol/rest":382,"./protocol/rest_json":383,"./protocol/rest_xml":384,"./sequential_executor":395,_process:439,util:433}],367:[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)):""},updateEndpoint:function(e){var t=new a.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),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":345}],368:[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-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=function(e){var t=h.base64.decode(e);if(this.isSensitive&&h.isNode()&&"function"==typeof h.Buffer.alloc){var r=h.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=h.base64.encode}function b(){y.apply(this,arguments)}function S(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),h=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:S,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:S,Base64Shape:b},t.exports=s},{"../util":422,"./collection":372}],377:[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){if(e.isDocument)return!0;this.validateType(t,r,["object"],"structure");for(var a,i=0;e.required&&i= 1, but found "'+t+'" for '+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+", 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;o63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw p.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),p=e("../core");t.exports={populateHostPrefix:a}},{"../core":345,"../util":422}],380:[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,p(e)}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()),i=a.__type||a.code||a.Code;i&&(t.code=i.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"),p=e("./helpers").populateHostPrefix;t.exports={buildRequest:a,extractError:i,extractData:s}},{"../json/builder":369,"../json/parser":370,"../util":422,"./helpers":379}],381:[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),m(e)}function i(e){var t,r=e.httpResponse.body.toString();if(r.match("=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t=0&&delete e.httpRequest.headers["Content-Length"]}function i(e){var t=new l,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},i=r.members[r.payload];a=e.params[r.payload],"structure"===i.type?(e.httpRequest.body=t.build(a||{},i),s(e)):void 0!==a&&(e.httpRequest.body=a,("binary"===i.type||i.isStreaming)&&s(e,!0))}else e.httpRequest.body=t.build(e.params,r),s(e)}function s(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function o(e){m.buildRequest(e),y.indexOf(e.httpRequest.method)<0&&i(e)}function n(e){c.extractError(e)}function u(e){m.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 d,e.data[payload]=p.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new d;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;c.extractData(e),e.data=p.merge(n,e.data)}}var p=e("../util"),m=e("./rest"),c=e("./json"),l=e("../json/builder"),d=e("../json/parser"),y=["GET","HEAD","DELETE"];t.exports={buildRequest:o,extractError:n,extractData:u,unsetContentLength:a}},{"../json/builder":369,"../json/parser":370,"../util":422,"./json":380,"./rest":382}],384:[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":345,"../util":422,"./rest":382}],385:[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":422}],386:[function(e,t,r){var a=e("../core"),i=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},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":345}],387:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],388:[function(e,t,r){function a(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))}function i(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)}function s(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}t.exports={isFipsRegion:a,isGlobalRegion:i,getRealRegion:s}},{}],389:[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){u.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=e.config.useFipsEndpoint,a=e.config.useDualstackEndpoint,o=0;o=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._unAuthenticated=!0,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)}).call(this,e("_process"))},{"./core":345,"./state_machine":421,_process:439,jmespath:438}],392:[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=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.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=a.util.buffer.toBuffer(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),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}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)){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),t.singlePart=s,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-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,a){return this[e]=r,this.addListener(t,r,a),this},addNamedAsyncListener:function(e,t,r,a){return r._isAsync=!0,this.addNamedListener(e,t,r,a)},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":345}],396:[function(e,t,r){(function(r){(function(){var a=e("./core"),i=e("./model/api"),s=e("./region_config"),o=a.util.inherit,n=0,u=e("./region/utils");a.Service=o({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;u.isFipsRegion(t)&&(e.region=u.getRealRegion(t),e.useFipsEndpoint=!0),u.isGlobalRegion(t)&&(e.region=u.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var i=a.util.copy(e),s=new r(e);return Object.defineProperty(s,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),s._clientId=++n,s}this.initialize(e)},initialize:function(e){var t=a.config[this.serviceIdentifier];if(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.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),a.SequentialExecutor.call(this),a.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||a.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){i.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){i.eventHandler(e)})})}},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),this.attachMonitoringEmitter(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;r299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},a=e.response;return a.httpResponse.statusCode&&(r.HttpStatusCode=a.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),a.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),a.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=a.httpResponse.headers["x-amzn-requestid"]),a.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=a.httpResponse.headers["x-amz-request-id"]),a.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=a.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,a=r.error;return r.httpResponse.statusCode>299?(a.code&&(t.AwsException=a.code),a.message&&(t.AwsExceptionMessage=a.message)):((a.code||a.name)&&(t.SdkException=a.code||a.name),a.message&&(t.SdkExceptionMessage=a.message)),t},attachMonitoringEmitter:function(e){var t,r,i,s,o,n,u=0,p=this;e.on("validate",function(){s=a.util.realClock.now(),n=Date.now()},!0),e.on("sign",function(){r=a.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(a.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=p.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=o,p.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var s=p.attemptFailEvent(e);s.Timestamp=t,i=i||Math.round(a.util.realClock.now()-r),s.AttemptLatency=i>=0?i:0,s.Region=o,p.emit("apiCallAttempt",[s])}),e.addNamedListener("API_CALL","complete",function(){var t=p.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=n;var r=Math.round(a.util.realClock.now()-s);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),p.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},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":"bearer"===i?"bearer":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,t){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},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)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":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);if(a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var n=a.util.clientSideMonitoring.Publisher,u=a.util.clientSideMonitoring.configProvider,p=u();this.prototype.publisher=new n(p),p.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(i.prototype),a.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r=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":345}],402:[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":345}],403:[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":345}],404:[function(e,t,r){e("../polly/presigner")},{"../polly/presigner":378}],405:[function(e,t,r){var a=e("../core"),i=e("./rdsutil");e("../rds/signer");var s=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];a.util.update(a.RDS.prototype,{setupRequestListeners:function(e){i.setupRequestListeners(this,e,s)}})},{"../core":345,"../rds/signer":386,"./rdsutil":406}],406:[function(e,t,r){var a=e("../core"),i={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=a.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var s=!!e.config.paramValidation;s&&t.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",i.buildCrossRegionPresignedUrl),s&&t.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())})}};t.exports=i},{"../core":345}],407:[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":345}],408:[function(e,t,r){var a=e("../core"),i=e("../signers/v4_credentials"),s=e("../config_regional_endpoint"),o=e("./s3util"),n=e("../region_config");e("../s3/managed_upload");var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},p=["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)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=a.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},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){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",a.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",a.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=a.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI), -"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn),e.addListener("validate",o.validateArnRegion)),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),a.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},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."})}},validateArnRegion:function(e){o.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw a.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service,r=t.getSignatureVersion(e),i=e.params&&e.params.Bucket,s=e.params&&e.params.Key,o=i&&i.indexOf("/");if(i&&o>=0)if("string"==typeof s&&o>0){e.params=a.util.copy(e.params);var n=i.substr(o+1)||"";e.params.Key=n+"/"+s,e.params.Bucket=i.substr(0,o)}else if("v4"===r){var u="Bucket names cannot contain forward slashes. Bucket: "+i;throw a.util.error(new Error,{code:"InvalidBucket",message:u})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=s(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var a=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,a)+".us-east-1"+r.endpoint.substring(a),e.httpRequest.updateEndpoint(regionalEndpoint)}},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.useDualstackEndpoint?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;if(r&&t.path){if(e.params&&e.params.Key){var i="/"+a.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(i)&&(t.path.length===i.length||"?"===t.path[i.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,i="s3-object-lambda"===t.service,s=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useFipsEndpoint?"-fips":"",p=!r&&e.service.config.useDualstackEndpoint?".dualstack":"",m=e.httpRequest.endpoint,c=n.getEndpointSuffix(t.region),l=e.service.config.s3UseArnRegion;if(m.hostname=[t.accessPoint+"-"+t.accountId+s,o+u+p,l?t.region:e.service.config.region,c].join("."),i){var o="s3-object-lambda",d=t.resource.split("/")[1],u=e.service.config.useFipsEndpoint?"-fips":"";m.hostname=[d+"-"+t.accountId,o+u,l?t.region:e.service.config.region,c].join(".")}m.host=m.hostname;var y=a.util.uriEscape(e.params.Bucket),b=e.httpRequest.path;e.httpRequest.path=b.replace(new RegExp("/"+y),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];a.util.isNode()&&(t>=1048576||e.params.Body instanceof a.util.stream.Stream)&&(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"}},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,i=e.service.config.computeChecksums&&t.ContentMD5&&!e.params.ContentMD5&&r&&(a.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!i||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!i||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},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&&(!o.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match("")){e.data=null;throw(this.service?this.service:this).extractError(e),e.error}if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,a.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=p.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===p.indexOf(r.code))return t();var o=a.util.isNode()?"headBucket":"listObjects",n={Bucket:s};"listObjects"===o&&(n.MaxKeys=0);var u=i.service[o](n);u._requestRegionForBucket=s,u.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 n=i.service,u=n.bucketRegionCache,p=u[s]||null;if(p&&p!==i.httpRequest.region)n.updateReqBucketRegion(i,p),t();else if(o.dnsCompatibleBucketName(s))if(i.httpRequest.virtualHostedBucket){var m=n.listObjects({Bucket:s,MaxKeys:0});n.updateReqBucketRegion(m,"us-east-1"),m._requestRegionForBucket=s,m.send(function(){var e=n.bucketRegionCache[s]||null;e&&e!==i.httpRequest.region&&n.updateReqBucketRegion(i,e),t()})}else t();else n.updateReqBucketRegion(i,"us-east-1"),"us-east-1"!==u[s]&&(u[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=0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!r&&o!==n)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(r&&i.getEndpointSuffix(o)!==i.getEndpointSuffix(n))throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstackEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Dualstack is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",i="s3_use_arn_region",s=!0,o=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==o.s3UseArnRegion)s=!0===o.s3UseArnRegion;else if(a.util.isNode())if(r.env[t]){var n=r.env[t].trim().toLowerCase();if(["false","true"].indexOf(n)<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+r.env[t],retryable:!1});s="true"===n}else{var u={},p={};try{u=a.util.getProfilesFromSharedConfig(a.util.iniLoader),p=u[r.env.AWS_PROFILE||a.util.defaultProfile]}catch(e){}if(p[i]){if(["false","true"].indexOf(p[i].trim().toLowerCase())<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:i+" only accepts true or false. Got "+p[i],retryable:!1});s="true"===p[i].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=s,s},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},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))}};t.exports=s}).call(this)}).call(this,e("_process"))},{"../core":345,"../region_config":389,_process:439}],410:[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":345}],411:[function(e,t,r){var a=e("../core"),i=e("../config_regional_endpoint");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)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var s=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,s)+"."+r.region+r.endpoint.substring(s);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},{"../config_regional_endpoint":344,"../core":345}],412:[function(e,t,r){var a=e("../core");a.Signers.Bearer=a.util.inherit(a.Signers.RequestSigner,{constructor:function(e){a.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.httpRequest.headers.Authorization="Bearer "+e.token}})},{"../core":345}],413:[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.Signature=i.pop(),a.AWSAccessKeyId=i.join(":"),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":345}],414:[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"s3v4":case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https;case"bearer":return a.Signers.Bearer}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign"),e("./bearer")},{"../core":345,"./bearer":412,"./presign":413,"./s3":415,"./v2":416,"./v3":417,"./v3https":418,"./v4":419}],415:[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()=0?"&":"?";this.request.path+=s+a.util.queryParamsToString(i)},authorization:function(e,t){var r=[],a=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+a),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=a.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];a.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers["presigned-expires"]}}),t.exports=a.Signers.V4},{"../core":345,"./v4_credentials":420}],420:[function(e,t,r){var a=e("../core"),i={},s=[];t.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,"aws4_request"].join("/")},getSigningKey:function(e,t,r,o,n){var u=a.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),p=[u,t,r,o].join("_");if((n=!1!==n)&&p in i)return i[p];var m=a.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),c=a.util.crypto.hmac(m,r,"buffer"),l=a.util.crypto.hmac(c,o,"buffer"),d=a.util.crypto.hmac(l,"aws4_request","buffer");return n&&(i[p]=d,s.push(p),s.length>50&&delete i[s.shift()]),d},emptyCache:function(){i={},s=[]}}},{"../core":345}],421:[function(e,t,r){function a(e,t){this.currentState=t||null,this.states=e||{}}a.prototype.runTo=function(e,t,r,a){"function"==typeof e&&(a=r,r=t,t=e,e=null);var i=this,s=i.states[i.currentState];s.fn.call(r||i,a,function(a){if(a){if(!s.fail)return t?t.call(r,a):null;i.currentState=s.fail}else{if(!s.accept)return t?t.call(r):null;i.currentState=s.accept}if(i.currentState===e)return t?t.call(r,a):null;i.runTo(e,t,r,a)})},a.prototype.addState=function(e,t,r,a){return"function"==typeof t?(a=t,t=null,r=null):"function"==typeof r&&(a=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:a},this},t.exports=a},{}],422:[function(e,t,r){(function(r,a){(function(){var i,s={environment:"nodejs",engine:function(){if(s.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=r.platform+"/"+r.version;return r.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+r.env.AWS_EXECUTION_ENV),e},userAgent:function(){var t=s.environment,r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+s.engine()),r},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return s.arrayEach(e.split("/"),function(e){t.push(s.uriEscape(e))}),t.join("/")},urlParse:function(e){return s.url.parse(e)},urlFormat:function(e){return s.url.format(e)},queryStringParse:function(e){return s.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=s.uriEscape,a=Object.keys(e).sort();return s.arrayEach(a,function(a){var i=e[a],o=r(a),n=o+"=";if(Array.isArray(i)){var u=[];s.arrayEach(i,function(e){u.push(r(e))}),n=o+"="+u.sort().join("&"+o+"=")}else void 0!==i&&null!==i&&(n=o+"="+r(i));t.push(n)}),t.join("&")},readFileSync:function(t){return s.isBrowser()?null:e("fs").readFileSync(t,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e,t):new s.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof s.Buffer.alloc)return s.Buffer.alloc(e,t,r);var a=new s.Buffer(e);return void 0!==t&&"function"==typeof a.fill&&a.fill(t,void 0,void 0,r),a},toStream:function(e){s.Buffer.isBuffer(e)||(e=s.buffer.toBuffer(e));var t=new s.stream.Readable,r=0;return t._read=function(a){if(r>=e.length)return t.push(null);var i=r+a;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r=0,a=0,i=null;for(t=0;t>>8^t[255&(r^e.readUInt8(a))]}return(-1^r)>>>0},hmac:function(e,t,r,a){return r||(r="binary"),"buffer"===r&&(r=void 0),a||(a="sha256"),"string"==typeof t&&(t=s.buffer.toBuffer(t)),s.crypto.lib.createHmac(a,e).update(t).digest(r)},md5:function(e,t,r){return s.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return s.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,a){var i=s.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=s.buffer.toBuffer(t));var o=s.arraySliceFn(t),n=s.Buffer.isBuffer(t);if(s.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(n=!0),a&&"object"==typeof t&&"function"==typeof t.on&&!n)t.on("data",function(e){i.update(e)}),t.on("error",function(e){a(e)}),t.on("end",function(){a(null,i.digest(r))});else{if(!a||!o||n||"undefined"==typeof FileReader){s.isBrowser()&&"object"==typeof t&&!n&&(t=new s.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return a&&a(null,u),u}var p=0,m=new FileReader;m.onerror=function(){a(new Error("Failed to read data."))},m.onload=function(){var e=new s.Buffer(new Uint8Array(m.result));i.update(e),p+=e.length,m._continueReading()},m._continueReading=function(){if(p>=t.size)return void a(null,i.digest(r));var e=p+524288;e>t.size&&(e=t.size),m.readAsArrayBuffer(o.call(t,p,e))},m._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var a=0;a=0)return n++,void setTimeout(p,i+(e.retryAfter||0))}r(e)},p=function(){var t="";a.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var a=e.statusCode;if(a<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,o=s.error(new Error,{statusCode:a,retryable:a>=500||429===a});i&&o.retryable&&(o.retryAfter=i),u(o)}})},u)};i.util.defer(p)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,a=t.service.api.operations[r].output||{};a.payload&&e.data[a.payload]&&(e.data[a.payload]=e.data[a.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof a?a(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){function a(e,t){for(var r=0,a=Object.keys(t);r=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw s.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=s}).call(this)}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":165,"./core":345,_process:439,fs:430,timers:447,uuid:450}],423:[function(e,t,r){function a(){}function i(e,t){for(var r=e.getElementsByTagName(t),a=0,i=r.length;a0||a?s.toString():""},t.exports=a},{"../util":422,"./xml-node":427,"./xml-text":428}],425:[function(e,t,r){function a(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}t.exports={escapeAttribute:a}},{}],426:[function(e,t,r){function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}t.exports={escapeElement:a}},{}],427:[function(e,t,r){function a(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var i=e("./escape-attribute").escapeAttribute;a.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},a.prototype.addChildNode=function(e){return this.children.push(e),this},a.prototype.removeAttribute=function(e){return delete this.attributes[e],this},a.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,a=0,s=Object.keys(r);a"+this.children.map(function(e){return e.toString()}).join("")+"":"/>"},t.exports={XmlNode:a}},{"./escape-attribute":425}],428:[function(e,t,r){function a(e){this.value=e}var i=e("./escape-element").escapeElement;a.prototype.toString=function(){return i(""+this.value)},t.exports={XmlText:a}},{"./escape-element":426}],429:[function(e,t,r){"use strict";function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=a(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function s(e,t,r){return 3*(t+r)/4-r}function o(e){var t,r,i=a(e),o=i[0],n=i[1],u=new l(s(e,o,n)),p=0,m=n>0?o-4:o;for(r=0;r>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function n(e){return m[e>>18&63]+m[e>>12&63]+m[e>>6&63]+m[63&e]}function u(e,t,r){for(var a,i=[],s=t;so?o:s+16383));return 1===a?(t=e[r-1],i.push(m[t>>2]+m[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(m[t>>10]+m[t>>4&63]+m[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=o,r.fromByteArray=p;for(var m=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=d.length;y=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),b(t)?a.showHidden=t:t&&r._extend(a,t),f(a.showHidden)&&(a.showHidden=!1),f(a.depth)&&(a.depth=2),f(a.colors)&&(a.colors=!1),f(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=s),u(a,e,a.depth)}function s(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function o(e,t){return e}function n(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,a){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(a,e);return N(i)||(i=u(e,i,a)),i}var s=p(e,t);if(s)return s;var o=Object.keys(t),b=n(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return m(t);if(0===o.length){if(R(t)){var S=t.name?": "+t.name:"";return e.stylize("[Function"+S+"]","special")}if(T(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return m(t)}var g="",h=!1,I=["{","}"];if(y(t)&&(h=!0,I=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(T(t)&&(g=" "+RegExp.prototype.toString.call(t)),k(t)&&(g=" "+Date.prototype.toUTCString.call(t)),A(t)&&(g=" "+m(t)),0===o.length&&(!h||0==t.length))return I[0]+g+I[1];if(a<0)return T(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return f=h?c(e,t,a,b,o):o.map(function(r){return l(e,t,a,b,r,h)}),e.seen.pop(),d(f,g,I)}function p(e,t){if(f(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return h(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,r,a,i){for(var s=[],o=0,n=t.length;o-1&&(n=s?n.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+n.split("\n").map(function(e){return" "+e}).join("\n"))):n=e.stylize("[Circular]","special")),f(o)){if(s&&i.match(/^\d+$/))return n;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+n}function d(e,t,r){var a=0;return e.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function S(e){return null===e}function g(e){return null==e}function h(e){return"number"==typeof e}function N(e){return"string"==typeof e}function I(e){return"symbol"==typeof e}function f(e){return void 0===e}function T(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function k(e){return C(e)&&"[object Date]"===D(e)}function A(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function R(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}function x(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),G[e.getMonth()],t].join(" ")}function q(e,t){ -return Object.prototype.hasOwnProperty.call(e,t)}var E=/%[sdj%]/g;r.format=function(e){if(!N(e)){for(var t=[],r=0;r=s)return e;switch(e){case"%s":return String(a[r++]);case"%d":return Number(a[r++]);case"%j":try{return JSON.stringify(a[r++])}catch(e){return"[Circular]"}default:return e}}),n=a[r];r=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function S(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return q(this,t,r);case"base64":return v(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function h(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function N(e,t,r,a,i){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,a)),s.isBuffer(t))return 0===t.length?-1:I(e,t,r,a,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):I(e,[t],r,a,i);throw new TypeError("val must be string, number or Buffer")}function I(e,t,r,a,i){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,n=e.length,u=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,n/=2,u/=2,r/=2}var p;if(i){var m=-1;for(p=r;pn&&(r=n-u),p=r;p>=0;p--){for(var c=!0,l=0;li&&(a=i):a=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var o=0;o239?4:s>223?3:s>191?2:1;if(i+n<=r){var u,p,m,c;switch(n){case 1:s<128&&(o=s);break;case 2:u=e[i+1],128==(192&u)&&(c=(31&s)<<6|63&u)>127&&(o=c);break;case 3:u=e[i+1],p=e[i+2],128==(192&u)&&128==(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:u=e[i+1],p=e[i+2],m=e[i+3],128==(192&u)&&128==(192&p)&&128==(192&m)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&m)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,n=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|1023&o),a.push(o),i+=n}return P(a)}function P(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var i="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,r,a,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function w(e,t,r,a){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(a?i:1-i)}function B(e,t,r,a){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(a?i:3-i)&255}function U(e,t,r,a,i,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,a,i){return i||U(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,r,a,23,4),r+4}function F(e,t,r,a,i){return i||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,a,52,8),r+8}function O(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,a=e.length,i=null,s=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function j(e){for(var t=[],r=0;r>8,i=r%256,s.push(i),s.push(a);return s}function H(e){return Z.toByteArray(O(e))}function Q(e,t,r,a){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e){return e!==e}var Z=e("base64-js"),X=e("ieee754"),Y=e("isarray");r.Buffer=s,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return o(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return u(null,e,t,r)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,i=0,o=Math.min(r,a);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,r,a,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===i&&(i=this.length),t<0||r>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=r)return 0;if(a>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var o=i-a,n=r-t,u=Math.min(o,n),p=this.slice(a,i),m=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return f(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)a+=this[e+--t]*i;return a},s.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+i]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var i=Math.pow(2,8*r-1);G(this,e,t,r,i-1,-i)}var s=0,o=1,n=0;for(this[t]=255&e;++s>0)-n&255;return t+r},s.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var i=Math.pow(2,8*r-1);G(this,e,t,r,i-1,-i)}var s=r-1,o=1,n=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===n&&0!==this[t+s+1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function r(){this.removeListener(e,r),a||(a=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var a=!1;return r.listener=t,this.on(e,r),this},a.prototype.removeListener=function(e,t){var r,a,s,n;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,a=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(n=s;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},{}],436:[function(e,t,r){r.read=function(e,t,r,a,i){var s,o,n=8*i-a-1,u=(1<>1,m=-7,c=r?i-1:0,l=r?-1:1,d=e[t+c];for(c+=l,s=d&(1<<-m)-1,d>>=-m,m+=n;m>0;s=256*s+e[t+c],c+=l,m-=8);for(o=s&(1<<-m)-1,s>>=-m,m+=a;m>0;o=256*o+e[t+c],c+=l,m-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,a),s-=p}return(d?-1:1)*o*Math.pow(2,s-a)},r.write=function(e,t,r,a,i,s){var o,n,u,p=8*s-i-1,m=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:s-1,y=a?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,i),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&n,d+=y,n/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],437:[function(e,t,r){var a={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},{}],438:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var s=0;s="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function n(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function p(){}function m(){}function c(e){this.runtime=e}function l(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[C]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[N,I]},{types:[h]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[N]},{types:[N]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[N,I,f]}]},map:{_func:this._functionMap,_signature:[{types:[T]},{types:[I]}]},max:{_func:this._functionMax,_signature:[{types:[C,k]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[I]},{types:[T]}]},sum:{_func:this._functionSum,_signature:[{types:[C]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[N]},{types:[N]}]},min:{_func:this._functionMin,_signature:[{types:[C,k]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[I]},{types:[T]}]},type:{_func:this._functionType,_signature:[{types:[h]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[k,C]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[I]},{types:[T]}]},join:{_func:this._functionJoin,_signature:[{types:[N]},{types:[k]}]},reverse:{_func:this._functionReverse,_signature:[{types:[N,I]}]},to_array:{_func:this._functionToArray,_signature:[{types:[h]}]},to_string:{_func:this._functionToString,_signature:[{types:[h]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[h]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[h],variadic:!0}]}}}function d(e){return(new m).parse(e)}function y(e){return(new p).tokenize(e)}function b(e,t){var r=new m,a=new l,i=new c(a);a._interpreter=i;var s=r.parse(t);return i.search(s,e)}var S;S="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,h=1,N=2,I=3,f=4,T=6,C=8,k=9,A={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array",9:"Array"},R={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},v={"<":!0,">":!0,"=":!0,"!":!0},D={" ":!0,"\t":!0,"\n":!0};p.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,a,i;this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,a=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(a.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var P={};P.EOF=0,P.UnquotedIdentifier=0,P.QuotedIdentifier=0,P.Rbracket=0,P.Rparen=0,P.Comma=0,P.Rbrace=0,P.Number=0,P.Current=0,P.Expref=0,P.Pipe=1,P.Or=2,P.And=3,P.EQ=5,P.GT=5,P.LT=5,P.GTE=5,P.LTE=5,P.NE=5,P.Flatten=9,P.Star=20,P.Filter=21,P.Dot=40,P.Not=45,P.Lbrace=50,P.Lbracket=55,P.Lparen=60,m.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw a.name="ParserError",a}return t},_loadTokens:function(e){var t=new p,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),a=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(P[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw a.name="ParserError",a}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,a,i=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),a={type:"KeyValuePair",name:t,value:r},i.push(a),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null!==o&&r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b0)for(b=N;bI;b+=f)p.push(o[b]);return p;case"Projection":var T=this.visit(e.children[0],o);if(!t(T))return null;for(y=[],b=0;bc;break;case"GTE":p=m>=c;break;case"LT":p=m=e&&(t=r<0?e-1:e),t}},l.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var a;if(r[r.length-1].variadic){if(t.length=0;a--)r+=t[a];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],a=0;a=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,a=e[0],i=e[1],s=0;s0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],a=1;a0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],a=1;an?1:oo&&(o=r,t=i[n]);return t},_functionMinBy:function(e){for(var t,r,a=e[1],i=e[0],s=this.createKeyFunction(a,[g,N]),o=1/0,n=0;n1)for(var r=1;r1&&(a=r[0]+"@",e=r[1]),e=e.replace(E,"."),a+s(e.split("."),t).join(".")}function n(e){for(var t,r,a=[],i=0,s=e.length;i=55296&&t<=56319&&i65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var a=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;a+=T)e=G(e/L);return G(a+(L+1)*e/(e+A))}function l(e){var t,r,a,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=D,N=v;for(r=e.lastIndexOf(P),r<0&&(r=0),a=0;a=128&&i("not-basic"),b.push(e.charCodeAt(a));for(s=r>0?r+1:0;s=S&&i("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&i("overflow"),g+=l*n,d=m<=N?C:m>=N+k?k:m-N,!(lG(f/y)&&i("overflow"),n*=y;t=b.length+1,N=c(g-o,t,0==o),G(g/t)>f-h&&i("overflow"),h+=G(g/t),g%=t,b.splice(g++,0,h)}return u(b)}function d(e){var t,r,a,s,o,u,p,l,d,y,b,S,g,h,N,I=[];for(e=n(e),S=e.length,t=D,r=0,o=v,u=0;u=t&&bG((f-r)/g)&&i("overflow"),r+=(p-t)*g,t=p,u=0;uf&&i("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=T-C,G=Math.floor,w=String.fromCharCode;if(N={version:"1.3.2",ucs2:{decode:n,encode:u},decode:l,encode:d,toASCII:b,toUnicode:y},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return N});else if(S&&g)if(t.exports==S)g.exports=N;else for(I in N)N.hasOwnProperty(I)&&(S[I]=N[I]);else a.punycode=N}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],441:[function(e,t,r){"use strict";function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,s){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var n=/\+/g;e=e.split(t);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var p=e.length;u>0&&p>u&&(p=u);for(var m=0;m=0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),a(o,d)?i(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],442:[function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a0&&u>n&&(u=n);for(var p=0;p=0?(m=y.substr(0,b),c=y.substr(b+1)):(m=y,c=""),l=decodeURIComponent(m),d=decodeURIComponent(c),a(s,l)?Array.isArray(s[l])?s[l].push(d):s[l]=[s[l],d]:s[l]=d}return s}},{}],445:[function(e,t,r){"use strict";var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var s=encodeURIComponent(a(i))+r;return Array.isArray(e[i])?e[i].map(function(e){return s+encodeURIComponent(a(e))}).join(t):s+encodeURIComponent(a(e[i]))}).join(t):i?encodeURIComponent(a(i))+r+encodeURIComponent(a(e)):""}},{}],446:[function(e,t,r){arguments[4][443][0].apply(r,arguments)},{"./decode":444,"./encode":445,dup:443}],447:[function(e,t,r){(function(t,a){(function(){function i(e,t){this._id=e,this._clearFn=t}var s=e("process/browser.js").nextTick,o=Function.prototype.apply,n=Array.prototype.slice,u={},p=0;r.setTimeout=function(){return new i(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new i(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=p++,a=!(arguments.length<2)&&n.call(arguments,1);return u[t]=!0,s(function(){u[t]&&(a?e.apply(null,a):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof a?a:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":439,timers:447}],448:[function(e,t,r){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&p(e)&&e instanceof a)return e;var i=new a;return i.parse(e,t,r),i}function s(e){return u(e)&&(e=i(e)),e instanceof a?e.format():a.prototype.format.call(e)}function o(e,t){return i(e,!1,!0).resolve(t)}function n(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function p(e){return"object"==typeof e&&null!==e}function m(e){return null===e}function c(e){return null==e}var l=e("punycode");r.parse=i,r.resolve=o,r.resolveObject=n,r.format=s,r.Url=a;var d=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,b=["<",">",'"',"`"," ","\r","\n","\t"],S=["{","}","|","\\","^","`"].concat(b),g=["'"].concat(S),h=["%","/","?",";","#"].concat(g),N=["/","?","#"],I=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,T={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=e("querystring");a.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e;a=a.trim();var i=d.exec(a);if(i){i=i[0];var s=i.toLowerCase();this.protocol=s,a=a.substr(i.length)}if(r||i||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var o="//"===a.substr(0,2);!o||i&&C[i]||(a=a.substr(2),this.slashes=!0)}if(!C[i]&&(o||i&&!k[i])){for(var n=-1,p=0;p127?D+="x":D+=v[P];if(!D.match(I)){var q=S.slice(0,p),E=S.slice(p+1),M=v.match(f);M&&(q.push(M[1]),E.unshift(M[2])),E.length&&(a="/"+E.join(".")+a),this.hostname=q.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!b){for(var L=this.hostname.split("."),G=[],p=0;p0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return r.search=e.search,r.query=e.query,m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=y.slice(-1)[0],h=(r.host||e.host)&&("."===g||".."===g)||""===g,N=0,I=y.length;I>=0;I--)g=y[I],"."==g?y.splice(I,1):".."===g?(y.splice(I,1),N++):N&&(y.splice(I,1),N--);if(!l&&!d)for(;N--;N)y.unshift("..");!l||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""), -h&&"/"!==y.join("/").substr(-1)&&y.push("");var f=""===y[0]||y[0]&&"/"===y[0].charAt(0);if(b){r.hostname=r.host=f?"":y.length?y.shift():"";var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return l=l||r.host&&y.length,l&&!f&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=y.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:440,querystring:443}],449:[function(e,t,r){"use strict";function a(e,t){var r=t||0,a=i;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;for(var i=[],s=0;s<256;++s)i[s]=(s+256).toString(16).substr(1);var o=a;r.default=o},{}],450:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return n.default}});var i=a(e("./v1.js")),s=a(e("./v3.js")),o=a(e("./v4.js")),n=a(e("./v5.js"))},{"./v1.js":454,"./v3.js":455,"./v4.js":457,"./v5.js":458}],451:[function(e,t,r){"use strict";function a(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var r=0;r>5]>>>t%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16),i.push(a);return i}function s(e,t){e[t>>5]|=128<>>9<<4)]=t;var r,a,i,s,o,u=1732584193,p=-271733879,y=-1732584194,b=271733878;for(r=0;r>2)-1]=void 0,t=0;t>5]|=(255&e[t/8])<>16)+(t>>16)+(r>>16)<<16|65535&r}function u(e,t){return e<>>32-t}function p(e,t,r,a,i,s){return n(u(n(n(t,e),n(a,s)),i),r)}function m(e,t,r,a,i,s,o){return p(t&r|~t&a,e,t,i,s,o)}function c(e,t,r,a,i,s,o){return p(t&a|r&~a,e,t,i,s,o)}function l(e,t,r,a,i,s,o){return p(t^r^a,e,t,i,s,o)}function d(e,t,r,a,i,s,o){return p(r^(t|~a),e,t,i,s,o)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var y=a;r.default=y},{}],452:[function(e,t,r){"use strict";function a(){if(!i)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),s=new Uint8Array(16)},{}],453:[function(e,t,r){"use strict";function a(e,t,r,a){switch(e){case 0:return t&r^~t&a;case 1:return t^r^a;case 2:return t&r^t&a^r&a;case 3:return t^r^a}}function i(e,t){return e<>>32-t}function s(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var s=unescape(encodeURIComponent(e));e=new Array(s.length);for(var o=0;o>>0;g=S,S=b,b=i(y,30)>>>0,y=d,d=N}r[0]=r[0]+d>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+b>>>0,r[3]=r[3]+S>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=s;r.default=o},{}],454:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r){var a=t&&r||0,i=t||[];e=e||{};var c=e.node||s,l=void 0!==e.clockseq?e.clockseq:o;if(null==c||null==l){var d=e.random||(e.rng||n.default)();null==c&&(c=s=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==l&&(l=o=16383&(d[6]<<8|d[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),b=void 0!==e.nsecs?e.nsecs:m+1,S=y-p+(b-m)/1e4;if(S<0&&void 0===e.clockseq&&(l=l+1&16383),(S<0||y>p)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=y,m=b,o=l,y+=122192928e5;var g=(1e4*(268435455&y)+b)%4294967296;i[a++]=g>>>24&255,i[a++]=g>>>16&255,i[a++]=g>>>8&255,i[a++]=255&g;var h=y/4294967296*1e4&268435455;i[a++]=h>>>8&255,i[a++]=255&h,i[a++]=h>>>24&15|16,i[a++]=h>>>16&255,i[a++]=l>>>8|128,i[a++]=255&l;for(var N=0;N<6;++N)i[a+N]=c[N];return t||(0,u.default)(i)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s,o,n=a(e("./rng.js")),u=a(e("./bytesToUuid.js")),p=0,m=0,c=i;r.default=c},{"./bytesToUuid.js":449,"./rng.js":452}],455:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=a(e("./v35.js")),s=a(e("./md5.js"));const o=(0,i.default)("v3",48,s.default);var n=o;r.default=n},{"./md5.js":451,"./v35.js":456}],456:[function(e,t,r){"use strict";function a(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,function(e){t.push(parseInt(e,16))}),t}function i(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r=0;s--){i[s].Expire=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function i(e,t){e=e||{};var i;if(e[t.clientConfig]&&(i=a(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!s.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(i=a(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return i}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(i=a(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return i}return i}var s=e("./core");t.exports=i}).call(this)}).call(this,e("_process"))},{"./core":345,_process:439}],345:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.1237.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"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":459,"./api_loader":334,"./config":343,"./event_listeners":366,"./http":367,"./json/builder":369,"./json/parser":370,"./model/api":371,"./model/operation":373,"./model/paginator":374,"./model/resource_waiter":375,"./model/shape":376,"./param_validator":377,"./protocol/json":380,"./protocol/query":381,"./protocol/rest":382,"./protocol/rest_json":383,"./protocol/rest_xml":384,"./request":391,"./resource_waiter":392,"./response":393,"./sequential_executor":395,"./service":396,"./signers/request_signer":414,"./util":422,"./xml/builder":424}],346:[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,this.refreshCallbacks=[],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()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){a.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):a.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){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":345}],347:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=a.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=a.util.merge({params:t,credentials:e.masterCredentials||a.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(a,i){var s={};if(a)return void e(a);i&&(s.TokenCode=i),t.service[r](s,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(a.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,i)}):e(null)}})},{"../../clients/sts":329,"../core":345}],348:[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){this.coalesceRefresh(e||a.util.fn.callback)},load: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":260,"../../clients/sts":329,"../core":345}],349:[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),this.resolveCallbacks=[]},resolve:function(e){function t(e,o){if(!e&&o||i===s.length)return a.util.arrayEach(r.resolveCallbacks,function(t){t(e,o)}),void(r.resolveCallbacks.length=0);var n=s[i++];o="function"==typeof n?n.call():n,o.get?o.get(function(e){t(e,e?null:o)}):t(null,o)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var i=0,s=r.providers.slice(0);t()}return r}}),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":345}],350:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],351:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],352:[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){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),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":329,"../core":345}],353:[function(e,t,r){(function(r){(function(){function a(e){var t=e.service,r=t.api||{},a={};return t.config.region&&(a.region=t.config.region),r.serviceId&&(a.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(a.accessKeyId=t.config.credentials.accessKeyId),a}function i(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&b.arrayEach(r.required,function(a){var s=r.members[a];if(!0===s.endpointDiscoveryId){var o=s.isLocationName?s.name:a;e[o]=String(t[a])}else i(e,t[a],s)})}function s(e,t){var r={};return i(r,e.params,t),r}function o(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,o=i?i.input:void 0,n=s(e,o),p=a(e);Object.keys(n).length>0&&(p=b.update(p,n),i&&(p.operation=i.name));var m=y.endpointCache.get(p);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address);else{var c=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:n});u(c),c.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),c.removeListener("retry",y.EventListeners.Core.RETRY_CHECK),y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}]),c.send(function(e,t){t&&t.Endpoints?y.endpointCache.put(p,t.Endpoints):e&&y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}])})}}function n(e,t){var r=e.service,i=r.api,o=i.operations?i.operations[e.operation]:void 0,n=o?o.input:void 0,p=s(e,n),m=a(e);Object.keys(p).length>0&&(m=b.update(m,p),o&&(m.operation=o.name));var c=y.EndpointCache.getKeyString(m),l=y.endpointCache.get(c);if(l&&1===l.length&&""===l[0].Address)return g[c]||(g[c]=[]),void g[c].push({request:e,callback:t});if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address),t();else{var d=r.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:p});d.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),u(d),y.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:60}]),d.send(function(r,a){if(r){if(e.response.error=b.error(r,{retryable:!1}),y.endpointCache.remove(m),g[c]){var i=g[c];b.arrayEach(i,function(e){e.request.response.error=b.error(r,{retryable:!1}),e.callback()}),delete g[c]}}else if(a&&(y.endpointCache.put(c,a.Endpoints),e.httpRequest.updateEndpoint(a.Endpoints[0].Address),g[c])){var i=g[c];b.arrayEach(i,function(e){e.request.httpRequest.updateEndpoint(a.Endpoints[0].Address),e.callback()}),delete g[c]}t()})}}function u(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function p(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,o=i.service.api.operations||{},n=o[i.operation]?o[i.operation].input:void 0,u=s(i,n),p=a(i);Object.keys(u).length>0&&(p=b.update(p,u),o[i.operation]&&(p.operation=o[i.operation].name)),y.endpointCache.remove(p)}}function m(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw b.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=y.config[e.serviceIdentifier]||{};return Boolean(y.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function c(e){return["false","0"].indexOf(e)>=0}function l(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!b.isBrowser()){for(var a=0;a-1&&0===++e[t];t--);}var s=e("../core").util,o=s.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":345}],363:[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=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();a.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=r(e),i=a.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var s=a.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=s}catch(r){if(i&&i.isStreaming){if(i.requiresLength)throw r;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw r}throw r}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("SET_TRACE_ID","afterBuild",function(e){if(a.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,"X-Amzn-Trace-Id")){var r=t.env.AWS_LAMBDA_FUNCTION_NAME,i=t.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof i&&i.length>0&&(e.httpRequest.headers["X-Amzn-Trace-Id"]=i)}}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=a.util.buffer.toBuffer(""),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(a.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(a.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=a.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 a.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=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new i).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=a.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new i).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var i={};return a.util.each(t,function(t,a){Object.prototype.hasOwnProperty.call(e.members,t)?i[t]=r(e.members[t],a):i[t]=a}),i;case"list":var s=[];return a.util.arrayEach(t,function(t,a){s.push(r(e.member,t))}),s;case"map":var o={};return a.util.each(t,function(t,a){o[t]=r(e.value,a)}),o;default:return t}}var i=t.request,s=i.service.config.logger;if(s){var o=function(){var o=t.request.service.getSkewCorrectedDate().getTime(),n=(o-i.startTime.getTime())/1e3,u=!!s.isTTY,p=t.httpResponse.statusCode,m=i.params;if(i.service.api.operations&&i.service.api.operations[i.operation]&&i.service.api.operations[i.operation].input){m=r(i.service.api.operations[i.operation].input,i.params)}var c=e("util").inspect(m,!0,null),l="";return u&&(l+=""),l+="[AWS "+i.service.serviceIdentifier+" "+p,l+=" "+n.toString()+"s "+t.retryCount+" retries]",u&&(l+=""),l+=" "+a.util.string.lowerFirst(i.operation),l+="("+c+")",u&&(l+=""),l}();"function"==typeof s.log?s.log(o):"function"==typeof s.write&&s.write(o+"\n")}})}),Json:(new i).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 i).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 i).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),t("UNSET_CONTENT_LENGTH","afterBuild",r.unsetContentLength)}),RestXml:(new i).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 i).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)})}}).call(this)}).call(this,e("_process"))},{"./core":345,"./discover_endpoint":353,"./protocol/json":380,"./protocol/query":381,"./protocol/rest":382,"./protocol/rest_json":383,"./protocol/rest_xml":384,"./sequential_executor":395,_process:439,util:433}],367:[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)):""},updateEndpoint:function(e){var t=new a.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),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":345}],368:[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-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=function(e){var t=h.base64.decode(e);if(this.isSensitive&&h.isNode()&&"function"==typeof h.Buffer.alloc){var r=h.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=h.base64.encode}function b(){y.apply(this,arguments)}function S(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),h=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:S,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:S,Base64Shape:b},t.exports=s},{"../util":422,"./collection":372}],377:[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){if(e.isDocument)return!0;this.validateType(t,r,["object"],"structure");for(var a,i=0;e.required&&i= 1, but found "'+t+'" for '+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+", 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;o63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw p.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),p=e("../core");t.exports={populateHostPrefix:a}},{"../core":345,"../util":422}],380:[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,p(e)}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()),i=a.__type||a.code||a.Code;i&&(t.code=i.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"),p=e("./helpers").populateHostPrefix;t.exports={buildRequest:a,extractError:i,extractData:s}},{"../json/builder":369,"../json/parser":370,"../util":422,"./helpers":379}],381:[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),m(e)}function i(e){var t,r=e.httpResponse.body.toString();if(r.match("=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t=0&&delete e.httpRequest.headers["Content-Length"]}function i(e){var t=new l,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},i=r.members[r.payload];a=e.params[r.payload],"structure"===i.type?(e.httpRequest.body=t.build(a||{},i),s(e)):void 0!==a&&(e.httpRequest.body=a,("binary"===i.type||i.isStreaming)&&s(e,!0))}else e.httpRequest.body=t.build(e.params,r),s(e)}function s(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function o(e){m.buildRequest(e),y.indexOf(e.httpRequest.method)<0&&i(e)}function n(e){c.extractError(e)}function u(e){m.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 d,e.data[payload]=p.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new d;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;c.extractData(e),e.data=p.merge(n,e.data)}}var p=e("../util"),m=e("./rest"),c=e("./json"),l=e("../json/builder"),d=e("../json/parser"),y=["GET","HEAD","DELETE"];t.exports={buildRequest:o,extractError:n,extractData:u,unsetContentLength:a}},{"../json/builder":369,"../json/parser":370,"../util":422,"./json":380,"./rest":382}],384:[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":345,"../util":422,"./rest":382}],385:[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":422}],386:[function(e,t,r){var a=e("../core"),i=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},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":345}],387:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],388:[function(e,t,r){function a(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))}function i(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)}function s(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}t.exports={isFipsRegion:a,isGlobalRegion:i,getRealRegion:s}},{}],389:[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){u.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=e.config.useFipsEndpoint,a=e.config.useDualstackEndpoint,o=0;o=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._unAuthenticated=!0,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)}).call(this,e("_process"))},{"./core":345,"./state_machine":421,_process:439,jmespath:438}],392:[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=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.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=a.util.buffer.toBuffer(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),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}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)){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),t.singlePart=s,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-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,a){return this[e]=r,this.addListener(t,r,a),this},addNamedAsyncListener:function(e,t,r,a){return r._isAsync=!0,this.addNamedListener(e,t,r,a)},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":345}],396:[function(e,t,r){(function(r){(function(){var a=e("./core"),i=e("./model/api"),s=e("./region_config"),o=a.util.inherit,n=0,u=e("./region/utils");a.Service=o({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;u.isFipsRegion(t)&&(e.region=u.getRealRegion(t),e.useFipsEndpoint=!0),u.isGlobalRegion(t)&&(e.region=u.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var i=a.util.copy(e),s=new r(e);return Object.defineProperty(s,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),s._clientId=++n,s}this.initialize(e)},initialize:function(e){var t=a.config[this.serviceIdentifier];if(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.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),a.SequentialExecutor.call(this),a.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||a.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){i.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){i.eventHandler(e)})})}},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),this.attachMonitoringEmitter(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;r299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},a=e.response;return a.httpResponse.statusCode&&(r.HttpStatusCode=a.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),a.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),a.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=a.httpResponse.headers["x-amzn-requestid"]),a.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=a.httpResponse.headers["x-amz-request-id"]),a.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=a.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,a=r.error;return r.httpResponse.statusCode>299?(a.code&&(t.AwsException=a.code),a.message&&(t.AwsExceptionMessage=a.message)):((a.code||a.name)&&(t.SdkException=a.code||a.name),a.message&&(t.SdkExceptionMessage=a.message)),t},attachMonitoringEmitter:function(e){var t,r,i,s,o,n,u=0,p=this;e.on("validate",function(){s=a.util.realClock.now(),n=Date.now()},!0),e.on("sign",function(){r=a.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(a.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=p.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=o,p.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var s=p.attemptFailEvent(e);s.Timestamp=t,i=i||Math.round(a.util.realClock.now()-r),s.AttemptLatency=i>=0?i:0,s.Region=o,p.emit("apiCallAttempt",[s])}),e.addNamedListener("API_CALL","complete",function(){var t=p.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=n;var r=Math.round(a.util.realClock.now()-s);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),p.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},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":"bearer"===i?"bearer":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,t){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},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)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":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);if(a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var n=a.util.clientSideMonitoring.Publisher,u=a.util.clientSideMonitoring.configProvider,p=u();this.prototype.publisher=new n(p),p.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(i.prototype),a.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r=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":345}],402:[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":345}],403:[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":345}],404:[function(e,t,r){e("../polly/presigner")},{"../polly/presigner":378}],405:[function(e,t,r){var a=e("../core"),i=e("./rdsutil");e("../rds/signer");var s=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];a.util.update(a.RDS.prototype,{setupRequestListeners:function(e){i.setupRequestListeners(this,e,s)}})},{"../core":345,"../rds/signer":386,"./rdsutil":406}],406:[function(e,t,r){var a=e("../core"),i={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=a.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var s=!!e.config.paramValidation;s&&t.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",i.buildCrossRegionPresignedUrl),s&&t.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())})}};t.exports=i},{"../core":345}],407:[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":345}],408:[function(e,t,r){var a=e("../core"),i=e("../signers/v4_credentials"),s=e("../config_regional_endpoint"),o=e("./s3util"),n=e("../region_config");e("../s3/managed_upload");var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},p=["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)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=a.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},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){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",a.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",a.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)), +"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=a.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn),e.addListener("validate",o.validateArnRegion)),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),a.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},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."})}},validateArnRegion:function(e){o.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw a.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service,r=t.getSignatureVersion(e),i=e.params&&e.params.Bucket,s=e.params&&e.params.Key,o=i&&i.indexOf("/");if(i&&o>=0)if("string"==typeof s&&o>0){e.params=a.util.copy(e.params);var n=i.substr(o+1)||"";e.params.Key=n+"/"+s,e.params.Bucket=i.substr(0,o)}else if("v4"===r){var u="Bucket names cannot contain forward slashes. Bucket: "+i;throw a.util.error(new Error,{code:"InvalidBucket",message:u})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=s(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var a=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,a)+".us-east-1"+r.endpoint.substring(a),e.httpRequest.updateEndpoint(regionalEndpoint)}},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.useDualstackEndpoint?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;if(r&&t.path){if(e.params&&e.params.Key){var i="/"+a.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(i)&&(t.path.length===i.length||"?"===t.path[i.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,i="s3-object-lambda"===t.service,s=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useFipsEndpoint?"-fips":"",p=!r&&e.service.config.useDualstackEndpoint?".dualstack":"",m=e.httpRequest.endpoint,c=n.getEndpointSuffix(t.region),l=e.service.config.s3UseArnRegion;if(m.hostname=[t.accessPoint+"-"+t.accountId+s,o+u+p,l?t.region:e.service.config.region,c].join("."),i){var o="s3-object-lambda",d=t.resource.split("/")[1],u=e.service.config.useFipsEndpoint?"-fips":"";m.hostname=[d+"-"+t.accountId,o+u,l?t.region:e.service.config.region,c].join(".")}m.host=m.hostname;var y=a.util.uriEscape(e.params.Bucket),b=e.httpRequest.path;e.httpRequest.path=b.replace(new RegExp("/"+y),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];a.util.isNode()&&(t>=1048576||e.params.Body instanceof a.util.stream.Stream)&&(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"}},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,i=e.service.config.computeChecksums&&t.ContentMD5&&!e.params.ContentMD5&&r&&(a.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!i||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!i||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},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&&(!o.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match("")){e.data=null;throw(this.service?this.service:this).extractError(e),e.error}if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,a.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=p.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===p.indexOf(r.code))return t();var o=a.util.isNode()?"headBucket":"listObjects",n={Bucket:s};"listObjects"===o&&(n.MaxKeys=0);var u=i.service[o](n);u._requestRegionForBucket=s,u.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 n=i.service,u=n.bucketRegionCache,p=u[s]||null;if(p&&p!==i.httpRequest.region)n.updateReqBucketRegion(i,p),t();else if(o.dnsCompatibleBucketName(s))if(i.httpRequest.virtualHostedBucket){var m=n.listObjects({Bucket:s,MaxKeys:0});n.updateReqBucketRegion(m,"us-east-1"),m._requestRegionForBucket=s,m.send(function(){var e=n.bucketRegionCache[s]||null;e&&e!==i.httpRequest.region&&n.updateReqBucketRegion(i,e),t()})}else t();else n.updateReqBucketRegion(i,"us-east-1"),"us-east-1"!==u[s]&&(u[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=0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!r&&o!==n)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(r&&i.getEndpointSuffix(o)!==i.getEndpointSuffix(n))throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstackEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Dualstack is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",i="s3_use_arn_region",s=!0,o=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==o.s3UseArnRegion)s=!0===o.s3UseArnRegion;else if(a.util.isNode())if(r.env[t]){var n=r.env[t].trim().toLowerCase();if(["false","true"].indexOf(n)<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+r.env[t],retryable:!1});s="true"===n}else{var u={},p={};try{u=a.util.getProfilesFromSharedConfig(a.util.iniLoader),p=u[r.env.AWS_PROFILE||a.util.defaultProfile]}catch(e){}if(p[i]){if(["false","true"].indexOf(p[i].trim().toLowerCase())<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:i+" only accepts true or false. Got "+p[i],retryable:!1});s="true"===p[i].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=s,s},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},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))}};t.exports=s}).call(this)}).call(this,e("_process"))},{"../core":345,"../region_config":389,_process:439}],410:[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":345}],411:[function(e,t,r){var a=e("../core"),i=e("../config_regional_endpoint");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)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var s=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,s)+"."+r.region+r.endpoint.substring(s);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},{"../config_regional_endpoint":344,"../core":345}],412:[function(e,t,r){var a=e("../core");a.Signers.Bearer=a.util.inherit(a.Signers.RequestSigner,{constructor:function(e){a.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.httpRequest.headers.Authorization="Bearer "+e.token}})},{"../core":345}],413:[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.Signature=i.pop(),a.AWSAccessKeyId=i.join(":"),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":345}],414:[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"s3v4":case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https;case"bearer":return a.Signers.Bearer}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign"),e("./bearer")},{"../core":345,"./bearer":412,"./presign":413,"./s3":415,"./v2":416,"./v3":417,"./v3https":418,"./v4":419}],415:[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()=0?"&":"?";this.request.path+=s+a.util.queryParamsToString(i)},authorization:function(e,t){var r=[],a=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+a),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=a.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];a.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers["presigned-expires"]}}),t.exports=a.Signers.V4},{"../core":345,"./v4_credentials":420}],420:[function(e,t,r){var a=e("../core"),i={},s=[];t.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,"aws4_request"].join("/")},getSigningKey:function(e,t,r,o,n){var u=a.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),p=[u,t,r,o].join("_");if((n=!1!==n)&&p in i)return i[p];var m=a.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),c=a.util.crypto.hmac(m,r,"buffer"),l=a.util.crypto.hmac(c,o,"buffer"),d=a.util.crypto.hmac(l,"aws4_request","buffer");return n&&(i[p]=d,s.push(p),s.length>50&&delete i[s.shift()]),d},emptyCache:function(){i={},s=[]}}},{"../core":345}],421:[function(e,t,r){function a(e,t){this.currentState=t||null,this.states=e||{}}a.prototype.runTo=function(e,t,r,a){"function"==typeof e&&(a=r,r=t,t=e,e=null);var i=this,s=i.states[i.currentState];s.fn.call(r||i,a,function(a){if(a){if(!s.fail)return t?t.call(r,a):null;i.currentState=s.fail}else{if(!s.accept)return t?t.call(r):null;i.currentState=s.accept}if(i.currentState===e)return t?t.call(r,a):null;i.runTo(e,t,r,a)})},a.prototype.addState=function(e,t,r,a){return"function"==typeof t?(a=t,t=null,r=null):"function"==typeof r&&(a=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:a},this},t.exports=a},{}],422:[function(e,t,r){(function(r,a){(function(){var i,s={environment:"nodejs",engine:function(){if(s.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=r.platform+"/"+r.version;return r.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+r.env.AWS_EXECUTION_ENV),e},userAgent:function(){var t=s.environment,r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+s.engine()),r},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return s.arrayEach(e.split("/"),function(e){t.push(s.uriEscape(e))}),t.join("/")},urlParse:function(e){return s.url.parse(e)},urlFormat:function(e){return s.url.format(e)},queryStringParse:function(e){return s.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=s.uriEscape,a=Object.keys(e).sort();return s.arrayEach(a,function(a){var i=e[a],o=r(a),n=o+"=";if(Array.isArray(i)){var u=[];s.arrayEach(i,function(e){u.push(r(e))}),n=o+"="+u.sort().join("&"+o+"=")}else void 0!==i&&null!==i&&(n=o+"="+r(i));t.push(n)}),t.join("&")},readFileSync:function(t){return s.isBrowser()?null:e("fs").readFileSync(t,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e,t):new s.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof s.Buffer.alloc)return s.Buffer.alloc(e,t,r);var a=new s.Buffer(e);return void 0!==t&&"function"==typeof a.fill&&a.fill(t,void 0,void 0,r),a},toStream:function(e){s.Buffer.isBuffer(e)||(e=s.buffer.toBuffer(e));var t=new s.stream.Readable,r=0;return t._read=function(a){if(r>=e.length)return t.push(null);var i=r+a;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r=0,a=0,i=null;for(t=0;t>>8^t[255&(r^e.readUInt8(a))]}return(-1^r)>>>0},hmac:function(e,t,r,a){return r||(r="binary"),"buffer"===r&&(r=void 0),a||(a="sha256"),"string"==typeof t&&(t=s.buffer.toBuffer(t)),s.crypto.lib.createHmac(a,e).update(t).digest(r)},md5:function(e,t,r){return s.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return s.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,a){var i=s.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=s.buffer.toBuffer(t));var o=s.arraySliceFn(t),n=s.Buffer.isBuffer(t);if(s.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(n=!0),a&&"object"==typeof t&&"function"==typeof t.on&&!n)t.on("data",function(e){i.update(e)}),t.on("error",function(e){a(e)}),t.on("end",function(){a(null,i.digest(r))});else{if(!a||!o||n||"undefined"==typeof FileReader){s.isBrowser()&&"object"==typeof t&&!n&&(t=new s.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return a&&a(null,u),u}var p=0,m=new FileReader;m.onerror=function(){a(new Error("Failed to read data."))},m.onload=function(){var e=new s.Buffer(new Uint8Array(m.result));i.update(e),p+=e.length,m._continueReading()},m._continueReading=function(){if(p>=t.size)return void a(null,i.digest(r));var e=p+524288;e>t.size&&(e=t.size),m.readAsArrayBuffer(o.call(t,p,e))},m._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var a=0;a=0)return n++,void setTimeout(p,i+(e.retryAfter||0))}r(e)},p=function(){var t="";a.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var a=e.statusCode;if(a<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,o=s.error(new Error,{statusCode:a,retryable:a>=500||429===a});i&&o.retryable&&(o.retryAfter=i),u(o)}})},u)};i.util.defer(p)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,a=t.service.api.operations[r].output||{};a.payload&&e.data[a.payload]&&(e.data[a.payload]=e.data[a.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof a?a(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){function a(e,t){for(var r=0,a=Object.keys(t);r=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw s.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=s}).call(this)}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":165,"./core":345,_process:439,fs:430,timers:447,uuid:450}],423:[function(e,t,r){function a(){}function i(e,t){for(var r=e.getElementsByTagName(t),a=0,i=r.length;a0||a?s.toString():""},t.exports=a},{"../util":422,"./xml-node":427,"./xml-text":428}],425:[function(e,t,r){function a(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}t.exports={escapeAttribute:a}},{}],426:[function(e,t,r){function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}t.exports={escapeElement:a}},{}],427:[function(e,t,r){function a(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var i=e("./escape-attribute").escapeAttribute;a.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},a.prototype.addChildNode=function(e){return this.children.push(e),this},a.prototype.removeAttribute=function(e){return delete this.attributes[e],this},a.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,a=0,s=Object.keys(r);a"+this.children.map(function(e){return e.toString()}).join("")+"":"/>"},t.exports={XmlNode:a}},{"./escape-attribute":425}],428:[function(e,t,r){function a(e){this.value=e}var i=e("./escape-element").escapeElement;a.prototype.toString=function(){return i(""+this.value)},t.exports={XmlText:a}},{"./escape-element":426}],429:[function(e,t,r){"use strict";function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=a(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function s(e,t,r){return 3*(t+r)/4-r}function o(e){var t,r,i=a(e),o=i[0],n=i[1],u=new l(s(e,o,n)),p=0,m=n>0?o-4:o;for(r=0;r>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function n(e){return m[e>>18&63]+m[e>>12&63]+m[e>>6&63]+m[63&e]}function u(e,t,r){for(var a,i=[],s=t;so?o:s+16383));return 1===a?(t=e[r-1],i.push(m[t>>2]+m[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(m[t>>10]+m[t>>4&63]+m[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=o,r.fromByteArray=p;for(var m=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=d.length;y=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),b(t)?a.showHidden=t:t&&r._extend(a,t),f(a.showHidden)&&(a.showHidden=!1),f(a.depth)&&(a.depth=2),f(a.colors)&&(a.colors=!1),f(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=s),u(a,e,a.depth)}function s(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function o(e,t){return e}function n(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,a){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(a,e);return N(i)||(i=u(e,i,a)),i}var s=p(e,t);if(s)return s;var o=Object.keys(t),b=n(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return m(t);if(0===o.length){if(R(t)){var S=t.name?": "+t.name:"";return e.stylize("[Function"+S+"]","special")}if(T(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return m(t)}var g="",h=!1,I=["{","}"];if(y(t)&&(h=!0,I=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(T(t)&&(g=" "+RegExp.prototype.toString.call(t)),k(t)&&(g=" "+Date.prototype.toUTCString.call(t)),A(t)&&(g=" "+m(t)),0===o.length&&(!h||0==t.length))return I[0]+g+I[1];if(a<0)return T(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return f=h?c(e,t,a,b,o):o.map(function(r){return l(e,t,a,b,r,h)}),e.seen.pop(),d(f,g,I)}function p(e,t){if(f(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return h(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,r,a,i){for(var s=[],o=0,n=t.length;o-1&&(n=s?n.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+n.split("\n").map(function(e){return" "+e}).join("\n"))):n=e.stylize("[Circular]","special")),f(o)){if(s&&i.match(/^\d+$/))return n;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+n}function d(e,t,r){var a=0;return e.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function S(e){return null===e}function g(e){return null==e}function h(e){return"number"==typeof e}function N(e){return"string"==typeof e}function I(e){return"symbol"==typeof e}function f(e){return void 0===e}function T(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function k(e){return C(e)&&"[object Date]"===D(e)}function A(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function R(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)} +function x(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),G[e.getMonth()],t].join(" ")}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var E=/%[sdj%]/g;r.format=function(e){if(!N(e)){for(var t=[],r=0;r=s)return e;switch(e){case"%s":return String(a[r++]);case"%d":return Number(a[r++]);case"%j":try{return JSON.stringify(a[r++])}catch(e){return"[Circular]"}default:return e}}),n=a[r];r=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function S(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return q(this,t,r);case"base64":return v(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function h(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function N(e,t,r,a,i){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,a)),s.isBuffer(t))return 0===t.length?-1:I(e,t,r,a,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):I(e,[t],r,a,i);throw new TypeError("val must be string, number or Buffer")}function I(e,t,r,a,i){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,n=e.length,u=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,n/=2,u/=2,r/=2}var p;if(i){var m=-1;for(p=r;pn&&(r=n-u),p=r;p>=0;p--){for(var c=!0,l=0;li&&(a=i):a=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var o=0;o239?4:s>223?3:s>191?2:1;if(i+n<=r){var u,p,m,c;switch(n){case 1:s<128&&(o=s);break;case 2:u=e[i+1],128==(192&u)&&(c=(31&s)<<6|63&u)>127&&(o=c);break;case 3:u=e[i+1],p=e[i+2],128==(192&u)&&128==(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:u=e[i+1],p=e[i+2],m=e[i+3],128==(192&u)&&128==(192&p)&&128==(192&m)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&m)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,n=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|1023&o),a.push(o),i+=n}return P(a)}function P(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var i="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,r,a,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function w(e,t,r,a){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(a?i:1-i)}function B(e,t,r,a){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(a?i:3-i)&255}function U(e,t,r,a,i,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,a,i){return i||U(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,r,a,23,4),r+4}function F(e,t,r,a,i){return i||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,a,52,8),r+8}function O(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,a=e.length,i=null,s=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function j(e){for(var t=[],r=0;r>8,i=r%256,s.push(i),s.push(a);return s}function H(e){return Z.toByteArray(O(e))}function Q(e,t,r,a){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e){return e!==e}var Z=e("base64-js"),X=e("ieee754"),Y=e("isarray");r.Buffer=s,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return o(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return u(null,e,t,r)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,i=0,o=Math.min(r,a);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,r,a,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===i&&(i=this.length),t<0||r>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=r)return 0;if(a>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var o=i-a,n=r-t,u=Math.min(o,n),p=this.slice(a,i),m=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return f(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)a+=this[e+--t]*i;return a},s.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+i]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var i=Math.pow(2,8*r-1);G(this,e,t,r,i-1,-i)}var s=0,o=1,n=0;for(this[t]=255&e;++s>0)-n&255;return t+r},s.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var i=Math.pow(2,8*r-1);G(this,e,t,r,i-1,-i)}var s=r-1,o=1,n=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===n&&0!==this[t+s+1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function r(){this.removeListener(e,r),a||(a=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var a=!1;return r.listener=t,this.on(e,r),this},a.prototype.removeListener=function(e,t){var r,a,s,n;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,a=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(n=s;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},{}],436:[function(e,t,r){r.read=function(e,t,r,a,i){var s,o,n=8*i-a-1,u=(1<>1,m=-7,c=r?i-1:0,l=r?-1:1,d=e[t+c];for(c+=l,s=d&(1<<-m)-1,d>>=-m,m+=n;m>0;s=256*s+e[t+c],c+=l,m-=8);for(o=s&(1<<-m)-1,s>>=-m,m+=a;m>0;o=256*o+e[t+c],c+=l,m-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,a),s-=p}return(d?-1:1)*o*Math.pow(2,s-a)},r.write=function(e,t,r,a,i,s){var o,n,u,p=8*s-i-1,m=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:s-1,y=a?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,i),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&n,d+=y,n/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],437:[function(e,t,r){var a={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},{}],438:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var s=0;s="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function n(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function p(){}function m(){}function c(e){this.runtime=e}function l(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[C]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[N,I]},{types:[h]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[N]},{types:[N]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[N,I,f]}]},map:{_func:this._functionMap,_signature:[{types:[T]},{types:[I]}]},max:{_func:this._functionMax,_signature:[{types:[C,k]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[I]},{types:[T]}]},sum:{_func:this._functionSum,_signature:[{types:[C]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[N]},{types:[N]}]},min:{_func:this._functionMin,_signature:[{types:[C,k]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[I]},{types:[T]}]},type:{_func:this._functionType,_signature:[{types:[h]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[k,C]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[I]},{types:[T]}]},join:{_func:this._functionJoin,_signature:[{types:[N]},{types:[k]}]},reverse:{_func:this._functionReverse,_signature:[{types:[N,I]}]},to_array:{_func:this._functionToArray,_signature:[{types:[h]}]},to_string:{_func:this._functionToString,_signature:[{types:[h]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[h]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[h],variadic:!0}]}}}function d(e){return(new m).parse(e)}function y(e){return(new p).tokenize(e)}function b(e,t){var r=new m,a=new l,i=new c(a);a._interpreter=i;var s=r.parse(t);return i.search(s,e)}var S;S="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,h=1,N=2,I=3,f=4,T=6,C=8,k=9,A={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array",9:"Array"},R={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},v={"<":!0,">":!0,"=":!0,"!":!0},D={" ":!0,"\t":!0,"\n":!0};p.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,a,i;this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,a=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(a.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var P={};P.EOF=0,P.UnquotedIdentifier=0,P.QuotedIdentifier=0,P.Rbracket=0,P.Rparen=0,P.Comma=0,P.Rbrace=0,P.Number=0,P.Current=0,P.Expref=0,P.Pipe=1,P.Or=2,P.And=3,P.EQ=5,P.GT=5,P.LT=5,P.GTE=5,P.LTE=5,P.NE=5,P.Flatten=9,P.Star=20,P.Filter=21,P.Dot=40,P.Not=45,P.Lbrace=50,P.Lbracket=55,P.Lparen=60,m.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw a.name="ParserError",a}return t},_loadTokens:function(e){var t=new p,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),a=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(P[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw a.name="ParserError",a}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,a,i=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),a={type:"KeyValuePair",name:t,value:r},i.push(a),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null!==o&&r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b0)for(b=N;bI;b+=f)p.push(o[b]);return p;case"Projection":var T=this.visit(e.children[0],o);if(!t(T))return null;for(y=[],b=0;bc;break;case"GTE":p=m>=c;break;case"LT":p=m=e&&(t=r<0?e-1:e),t}},l.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var a;if(r[r.length-1].variadic){if(t.length=0;a--)r+=t[a];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],a=0;a=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,a=e[0],i=e[1],s=0;s0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],a=1;a0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],a=1;an?1:oo&&(o=r,t=i[n]);return t},_functionMinBy:function(e){for(var t,r,a=e[1],i=e[0],s=this.createKeyFunction(a,[g,N]),o=1/0,n=0;n1)for(var r=1;r1&&(a=r[0]+"@",e=r[1]),e=e.replace(E,"."),a+s(e.split("."),t).join(".")}function n(e){for(var t,r,a=[],i=0,s=e.length;i=55296&&t<=56319&&i65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var a=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;a+=T)e=G(e/L);return G(a+(L+1)*e/(e+A))}function l(e){var t,r,a,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=D,N=v;for(r=e.lastIndexOf(P),r<0&&(r=0),a=0;a=128&&i("not-basic"),b.push(e.charCodeAt(a));for(s=r>0?r+1:0;s=S&&i("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&i("overflow"),g+=l*n,d=m<=N?C:m>=N+k?k:m-N,!(lG(f/y)&&i("overflow"),n*=y;t=b.length+1,N=c(g-o,t,0==o),G(g/t)>f-h&&i("overflow"),h+=G(g/t),g%=t,b.splice(g++,0,h)}return u(b)}function d(e){var t,r,a,s,o,u,p,l,d,y,b,S,g,h,N,I=[];for(e=n(e),S=e.length,t=D,r=0,o=v,u=0;u=t&&bG((f-r)/g)&&i("overflow"),r+=(p-t)*g,t=p,u=0;uf&&i("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=T-C,G=Math.floor,w=String.fromCharCode;if(N={version:"1.3.2",ucs2:{decode:n,encode:u},decode:l,encode:d,toASCII:b,toUnicode:y},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return N});else if(S&&g)if(t.exports==S)g.exports=N;else for(I in N)N.hasOwnProperty(I)&&(S[I]=N[I]);else a.punycode=N}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],441:[function(e,t,r){"use strict";function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,s){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var n=/\+/g;e=e.split(t);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var p=e.length;u>0&&p>u&&(p=u);for(var m=0;m=0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),a(o,d)?i(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],442:[function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a0&&u>n&&(u=n);for(var p=0;p=0?(m=y.substr(0,b),c=y.substr(b+1)):(m=y,c=""),l=decodeURIComponent(m),d=decodeURIComponent(c),a(s,l)?Array.isArray(s[l])?s[l].push(d):s[l]=[s[l],d]:s[l]=d}return s}},{}],445:[function(e,t,r){"use strict";var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var s=encodeURIComponent(a(i))+r;return Array.isArray(e[i])?e[i].map(function(e){return s+encodeURIComponent(a(e))}).join(t):s+encodeURIComponent(a(e[i]))}).join(t):i?encodeURIComponent(a(i))+r+encodeURIComponent(a(e)):""}},{}],446:[function(e,t,r){arguments[4][443][0].apply(r,arguments)},{"./decode":444,"./encode":445,dup:443}],447:[function(e,t,r){(function(t,a){(function(){function i(e,t){this._id=e,this._clearFn=t}var s=e("process/browser.js").nextTick,o=Function.prototype.apply,n=Array.prototype.slice,u={},p=0;r.setTimeout=function(){return new i(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new i(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=p++,a=!(arguments.length<2)&&n.call(arguments,1);return u[t]=!0,s(function(){u[t]&&(a?e.apply(null,a):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof a?a:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":439,timers:447}],448:[function(e,t,r){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&p(e)&&e instanceof a)return e;var i=new a;return i.parse(e,t,r),i}function s(e){return u(e)&&(e=i(e)),e instanceof a?e.format():a.prototype.format.call(e)}function o(e,t){return i(e,!1,!0).resolve(t)}function n(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function p(e){return"object"==typeof e&&null!==e}function m(e){return null===e}function c(e){return null==e}var l=e("punycode");r.parse=i,r.resolve=o,r.resolveObject=n,r.format=s,r.Url=a;var d=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,b=["<",">",'"',"`"," ","\r","\n","\t"],S=["{","}","|","\\","^","`"].concat(b),g=["'"].concat(S),h=["%","/","?",";","#"].concat(g),N=["/","?","#"],I=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,T={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=e("querystring");a.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e;a=a.trim();var i=d.exec(a);if(i){i=i[0];var s=i.toLowerCase();this.protocol=s,a=a.substr(i.length)}if(r||i||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var o="//"===a.substr(0,2);!o||i&&C[i]||(a=a.substr(2),this.slashes=!0)}if(!C[i]&&(o||i&&!k[i])){for(var n=-1,p=0;p127?D+="x":D+=v[P];if(!D.match(I)){var q=S.slice(0,p),E=S.slice(p+1),M=v.match(f);M&&(q.push(M[1]),E.unshift(M[2])),E.length&&(a="/"+E.join(".")+a),this.hostname=q.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!b){for(var L=this.hostname.split("."),G=[],p=0;p0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return r.search=e.search,r.query=e.query,m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=y.slice(-1)[0],h=(r.host||e.host)&&("."===g||".."===g)||""===g,N=0,I=y.length;I>=0;I--)g=y[I], +"."==g?y.splice(I,1):".."===g?(y.splice(I,1),N++):N&&(y.splice(I,1),N--);if(!l&&!d)for(;N--;N)y.unshift("..");!l||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),h&&"/"!==y.join("/").substr(-1)&&y.push("");var f=""===y[0]||y[0]&&"/"===y[0].charAt(0);if(b){r.hostname=r.host=f?"":y.length?y.shift():"";var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return l=l||r.host&&y.length,l&&!f&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=y.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:440,querystring:443}],449:[function(e,t,r){"use strict";function a(e,t){var r=t||0,a=i;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;for(var i=[],s=0;s<256;++s)i[s]=(s+256).toString(16).substr(1);var o=a;r.default=o},{}],450:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return n.default}});var i=a(e("./v1.js")),s=a(e("./v3.js")),o=a(e("./v4.js")),n=a(e("./v5.js"))},{"./v1.js":454,"./v3.js":455,"./v4.js":457,"./v5.js":458}],451:[function(e,t,r){"use strict";function a(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var r=0;r>5]>>>t%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16),i.push(a);return i}function s(e,t){e[t>>5]|=128<>>9<<4)]=t;var r,a,i,s,o,u=1732584193,p=-271733879,y=-1732584194,b=271733878;for(r=0;r>2)-1]=void 0,t=0;t>5]|=(255&e[t/8])<>16)+(t>>16)+(r>>16)<<16|65535&r}function u(e,t){return e<>>32-t}function p(e,t,r,a,i,s){return n(u(n(n(t,e),n(a,s)),i),r)}function m(e,t,r,a,i,s,o){return p(t&r|~t&a,e,t,i,s,o)}function c(e,t,r,a,i,s,o){return p(t&a|r&~a,e,t,i,s,o)}function l(e,t,r,a,i,s,o){return p(t^r^a,e,t,i,s,o)}function d(e,t,r,a,i,s,o){return p(r^(t|~a),e,t,i,s,o)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var y=a;r.default=y},{}],452:[function(e,t,r){"use strict";function a(){if(!i)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),s=new Uint8Array(16)},{}],453:[function(e,t,r){"use strict";function a(e,t,r,a){switch(e){case 0:return t&r^~t&a;case 1:return t^r^a;case 2:return t&r^t&a^r&a;case 3:return t^r^a}}function i(e,t){return e<>>32-t}function s(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var s=unescape(encodeURIComponent(e));e=new Array(s.length);for(var o=0;o>>0;g=S,S=b,b=i(y,30)>>>0,y=d,d=N}r[0]=r[0]+d>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+b>>>0,r[3]=r[3]+S>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=s;r.default=o},{}],454:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r){var a=t&&r||0,i=t||[];e=e||{};var c=e.node||s,l=void 0!==e.clockseq?e.clockseq:o;if(null==c||null==l){var d=e.random||(e.rng||n.default)();null==c&&(c=s=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==l&&(l=o=16383&(d[6]<<8|d[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),b=void 0!==e.nsecs?e.nsecs:m+1,S=y-p+(b-m)/1e4;if(S<0&&void 0===e.clockseq&&(l=l+1&16383),(S<0||y>p)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=y,m=b,o=l,y+=122192928e5;var g=(1e4*(268435455&y)+b)%4294967296;i[a++]=g>>>24&255,i[a++]=g>>>16&255,i[a++]=g>>>8&255,i[a++]=255&g;var h=y/4294967296*1e4&268435455;i[a++]=h>>>8&255,i[a++]=255&h,i[a++]=h>>>24&15|16,i[a++]=h>>>16&255,i[a++]=l>>>8|128,i[a++]=255&l;for(var N=0;N<6;++N)i[a+N]=c[N];return t||(0,u.default)(i)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s,o,n=a(e("./rng.js")),u=a(e("./bytesToUuid.js")),p=0,m=0,c=i;r.default=c},{"./bytesToUuid.js":449,"./rng.js":452}],455:[function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=a(e("./v35.js")),s=a(e("./md5.js"));const o=(0,i.default)("v3",48,s.default);var n=o;r.default=n},{"./md5.js":451,"./v35.js":456}],456:[function(e,t,r){"use strict";function a(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,function(e){t.push(parseInt(e,16))}),t}function i(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r=0;s--){i[s].Expire