From a6888402bd04938fcca4fecb0c533bb60615aafe Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Tue, 31 Jan 2023 19:41:37 +0000 Subject: [PATCH] Release v1.44.191 (2023-01-31) === ### Service Client Updates * `service/accessanalyzer`: Adds new service * `service/appsync`: Updates service API and documentation * `service/cloudtrail`: Updates service API and documentation * Add new "Channel" APIs to enable users to manage channels used for CloudTrail Lake integrations, and "Resource Policy" APIs to enable users to manage the resource-based permissions policy attached to a channel. * `service/cloudtrail-data`: Adds new service * `service/codeartifact`: Updates service API and documentation * `service/connectparticipant`: Adds new service * `service/ec2`: Updates service API and documentation * This launch allows customers to associate up to 8 IP addresses to their NAT Gateways to increase the limit on concurrent connections to a single destination by eight times from 55K to 440K. * `service/groundstation`: Updates service API and documentation * `service/iot`: Updates service API and documentation * Added support for IoT Rules Engine Cloudwatch Logs action batch mode. * `service/kinesis`: Adds new service * Enabled FIPS endpoints for GovCloud (US) regions in SDK. * `service/opensearch`: Updates service API and documentation * `service/outposts`: Adds new service * `service/polly`: Updates service API * Amazon Polly adds two new neural American English voices - Ruth, Stephen * `service/sagemaker`: Updates service API and documentation * Amazon SageMaker Automatic Model Tuning now supports more completion criteria for Hyperparameter Optimization. * `service/securityhub`: Updates service API and documentation * `service/support`: Adds new service * This fixes incorrect endpoint construction when a customer is explicitly setting a region. --- CHANGELOG.md | 28 + aws/endpoints/defaults.go | 109 + aws/version.go | 2 +- .../2019-11-01/endpoint-rule-set-1.json | 126 +- .../2019-11-01/endpoint-tests-1.json | 1464 ++-------- models/apis/appsync/2017-07-25/api-2.json | 19 +- models/apis/appsync/2017-07-25/docs-2.json | 11 +- .../2017-07-25/endpoint-rule-set-1.json | 9 - .../cloudtrail-data/2021-08-11/api-2.json | 190 ++ .../cloudtrail-data/2021-08-11/docs-2.json | 131 + .../2021-08-11/endpoint-rule-set-1.json | 324 +++ .../2021-08-11/endpoint-tests-1.json | 295 ++ .../2021-08-11/examples-1.json | 5 + .../2021-08-11/paginators-1.json | 4 + models/apis/cloudtrail/2013-11-01/api-2.json | 290 +- models/apis/cloudtrail/2013-11-01/docs-2.json | 237 +- .../2013-11-01/endpoint-rule-set-1.json | 54 +- .../2013-11-01/endpoint-tests-1.json | 1550 ++-------- .../apis/codeartifact/2018-09-22/api-2.json | 64 + .../apis/codeartifact/2018-09-22/docs-2.json | 28 +- .../2018-09-07/endpoint-rule-set-1.json | 97 +- .../2018-09-07/endpoint-tests-1.json | 506 +--- models/apis/ec2/2016-11-15/api-2.json | 220 +- models/apis/ec2/2016-11-15/docs-2.json | 117 +- .../apis/ec2/2016-11-15/endpoint-tests-1.json | 414 +-- .../apis/groundstation/2019-05-23/api-2.json | 348 +++ .../apis/groundstation/2019-05-23/docs-2.json | 242 +- .../2019-05-23/endpoint-tests-1.json | 232 +- models/apis/iot/2015-05-28/api-2.json | 3 +- models/apis/iot/2015-05-28/docs-2.json | 1 + .../iot/2015-05-28/endpoint-rule-set-1.json | 9 - .../2013-12-02/endpoint-rule-set-1.json | 117 +- .../kinesis/2013-12-02/endpoint-tests-1.json | 1662 ++--------- models/apis/opensearch/2021-01-01/api-2.json | 27 +- models/apis/opensearch/2021-01-01/docs-2.json | 37 +- .../2021-01-01/endpoint-rule-set-1.json | 54 +- .../2021-01-01/endpoint-tests-1.json | 1518 ++-------- .../2019-12-03/endpoint-rule-set-1.json | 117 +- .../outposts/2019-12-03/endpoint-tests-1.json | 1128 ++------ models/apis/polly/2016-06-10/api-2.json | 4 +- models/apis/sagemaker/2017-07-24/api-2.json | 57 +- models/apis/sagemaker/2017-07-24/docs-2.json | 49 +- .../2017-07-24/endpoint-tests-1.json | 346 +-- models/apis/securityhub/2018-10-26/api-2.json | 18 +- .../apis/securityhub/2018-10-26/docs-2.json | 26 +- .../2018-10-26/endpoint-rule-set-1.json | 54 +- .../2018-10-26/endpoint-tests-1.json | 1217 ++------ .../2013-04-15/endpoint-rule-set-1.json | 894 +++++- .../support/2013-04-15/endpoint-tests-1.json | 289 +- models/endpoints/endpoints.json | 49 + service/appsync/api.go | 91 + service/cloudtrail/api.go | 2529 +++++++++++++++-- .../cloudtrail/cloudtrailiface/interface.go | 24 + service/cloudtrail/errors.go | 85 +- service/cloudtraildata/api.go | 814 ++++++ .../cloudtraildataiface/interface.go | 68 + service/cloudtraildata/doc.go | 34 + service/cloudtraildata/errors.go | 55 + service/cloudtraildata/service.go | 106 + service/codeartifact/api.go | 292 +- .../codeartifactiface/interface.go | 4 + service/ec2/api.go | 934 +++++- service/ec2/ec2iface/interface.go | 16 + service/groundstation/api.go | 1825 +++++++++++- .../groundstationiface/interface.go | 12 + service/iot/api.go | 10 + service/opensearchservice/api.go | 795 +++--- service/opensearchservice/errors.go | 36 +- service/polly/api.go | 8 + service/sagemaker/api.go | 262 +- service/securityhub/api.go | 99 +- 71 files changed, 13317 insertions(+), 9574 deletions(-) create mode 100644 models/apis/cloudtrail-data/2021-08-11/api-2.json create mode 100644 models/apis/cloudtrail-data/2021-08-11/docs-2.json create mode 100644 models/apis/cloudtrail-data/2021-08-11/endpoint-rule-set-1.json create mode 100644 models/apis/cloudtrail-data/2021-08-11/endpoint-tests-1.json create mode 100644 models/apis/cloudtrail-data/2021-08-11/examples-1.json create mode 100644 models/apis/cloudtrail-data/2021-08-11/paginators-1.json create mode 100644 service/cloudtraildata/api.go create mode 100644 service/cloudtraildata/cloudtraildataiface/interface.go create mode 100644 service/cloudtraildata/doc.go create mode 100644 service/cloudtraildata/errors.go create mode 100644 service/cloudtraildata/service.go diff --git a/CHANGELOG.md b/CHANGELOG.md index c16765da9ee..787bcda047b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +Release v1.44.191 (2023-01-31) +=== + +### Service Client Updates +* `service/accessanalyzer`: Adds new service +* `service/appsync`: Updates service API and documentation +* `service/cloudtrail`: Updates service API and documentation + * Add new "Channel" APIs to enable users to manage channels used for CloudTrail Lake integrations, and "Resource Policy" APIs to enable users to manage the resource-based permissions policy attached to a channel. +* `service/cloudtrail-data`: Adds new service +* `service/codeartifact`: Updates service API and documentation +* `service/connectparticipant`: Adds new service +* `service/ec2`: Updates service API and documentation + * This launch allows customers to associate up to 8 IP addresses to their NAT Gateways to increase the limit on concurrent connections to a single destination by eight times from 55K to 440K. +* `service/groundstation`: Updates service API and documentation +* `service/iot`: Updates service API and documentation + * Added support for IoT Rules Engine Cloudwatch Logs action batch mode. +* `service/kinesis`: Adds new service + * Enabled FIPS endpoints for GovCloud (US) regions in SDK. +* `service/opensearch`: Updates service API and documentation +* `service/outposts`: Adds new service +* `service/polly`: Updates service API + * Amazon Polly adds two new neural American English voices - Ruth, Stephen +* `service/sagemaker`: Updates service API and documentation + * Amazon SageMaker Automatic Model Tuning now supports more completion criteria for Hyperparameter Optimization. +* `service/securityhub`: Updates service API and documentation +* `service/support`: Adds new service + * This fixes incorrect endpoint construction when a customer is explicitly setting a region. + Release v1.44.190 (2023-01-30) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 4cb781fedbd..a4e81569d94 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -4938,6 +4938,76 @@ var awsPartition = partition{ }, }, }, + "cloudtrail-data": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "af-south-1", + }: endpoint{}, + endpointKey{ + Region: "ap-east-1", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-3", + }: endpoint{}, + endpointKey{ + Region: "ap-south-1", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, + endpointKey{ + Region: "ca-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-north-1", + }: endpoint{}, + endpointKey{ + Region: "eu-south-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, + endpointKey{ + Region: "eu-west-3", + }: endpoint{}, + endpointKey{ + Region: "me-south-1", + }: endpoint{}, + endpointKey{ + Region: "sa-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-east-2", + }: endpoint{}, + endpointKey{ + Region: "us-west-1", + }: endpoint{}, + endpointKey{ + Region: "us-west-2", + }: endpoint{}, + }, + }, "codeartifact": service{ Endpoints: serviceEndpoints{ endpointKey{ @@ -12230,6 +12300,9 @@ var awsPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "me-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, @@ -31351,6 +31424,24 @@ var awsusgovPartition = partition{ Region: "us-gov-east-1", }, }, + endpointKey{ + Region: "us-gov-east-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "cloudformation.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, + endpointKey{ + Region: "us-gov-east-1-fips", + }: endpoint{ + Hostname: "cloudformation.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "us-gov-west-1", }: endpoint{ @@ -31359,6 +31450,24 @@ var awsusgovPartition = partition{ Region: "us-gov-west-1", }, }, + endpointKey{ + Region: "us-gov-west-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "cloudformation.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, + endpointKey{ + Region: "us-gov-west-1-fips", + }: endpoint{ + Hostname: "cloudformation.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + Deprecated: boxedTrue, + }, }, }, "cloudhsm": service{ diff --git a/aws/version.go b/aws/version.go index 261a071a6cd..d475195cf0d 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.190" +const SDKVersion = "1.44.191" diff --git a/models/apis/accessanalyzer/2019-11-01/endpoint-rule-set-1.json b/models/apis/accessanalyzer/2019-11-01/endpoint-rule-set-1.json index 9dc09f7b75c..ace8724275f 100644 --- a/models/apis/accessanalyzer/2019-11-01/endpoint-rule-set-1.json +++ b/models/apis/accessanalyzer/2019-11-01/endpoint-rule-set-1.json @@ -52,15 +52,6 @@ "ref": "Endpoint" } ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], "type": "tree", @@ -174,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://access-analyzer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://access-analyzer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -228,6 +225,31 @@ "conditions": [], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://access-analyzer.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { @@ -284,12 +306,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://access-analyzer.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://access-analyzer.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -302,12 +330,56 @@ }, { "conditions": [], - "endpoint": { - "url": "https://access-analyzer.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://access-analyzer.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://access-analyzer.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://access-analyzer.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/accessanalyzer/2019-11-01/endpoint-tests-1.json b/models/apis/accessanalyzer/2019-11-01/endpoint-tests-1.json index dc451c170ed..cb6f22f56f8 100644 --- a/models/apis/accessanalyzer/2019-11-01/endpoint-tests-1.json +++ b/models/apis/accessanalyzer/2019-11-01/endpoint-tests-1.json @@ -1,978 +1,29 @@ { "testCases": [ { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-south-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-south-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-south-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-south-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.me-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.me-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.me-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.me-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "me-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ca-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-central-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-central-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-northeast-3.amazonaws.com" + "url": "https://access-analyzer.af-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "af-south-1" } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-northeast-2.amazonaws.com" + "url": "https://access-analyzer.ap-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-1" + "Region": "ap-east-1" } }, { @@ -983,685 +34,542 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.me-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "me-south-1" + "Region": "ap-northeast-1" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.me-south-1.amazonaws.com" + "url": "https://access-analyzer.ap-northeast-2.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.sa-east-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "sa-east-1" + "Region": "ap-northeast-2" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.sa-east-1.amazonaws.com" + "url": "https://access-analyzer.ap-northeast-3.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.ap-east-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.ap-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-east-1" + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-east-1.amazonaws.com" + "url": "https://access-analyzer.ap-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://access-analyzer.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-north-1" + "Region": "ap-south-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.cn-north-1.amazonaws.com.cn" + "url": "https://access-analyzer.ap-southeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region ca-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ca-west-1.api.aws" + "url": "https://access-analyzer.ap-southeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ca-west-1" + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region ca-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ca-west-1.amazonaws.com" + "url": "https://access-analyzer.ap-southeast-3.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-west-1" + "Region": "ap-southeast-3" } }, { - "documentation": "For region ca-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ca-west-1.api.aws" + "url": "https://access-analyzer.ca-central-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ca-west-1" + "UseDualStack": false, + "Region": "ca-central-1" } }, { - "documentation": "For region ca-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ca-west-1.amazonaws.com" + "url": "https://access-analyzer-fips.ca-central-1.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-west-1" + "Region": "ca-central-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-gov-west-1.api.aws" + "url": "https://access-analyzer.eu-central-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-west-1" + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-central-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-gov-west-1.amazonaws.com" + "url": "https://access-analyzer.eu-north-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "eu-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-gov-west-1.api.aws" + "url": "https://access-analyzer.eu-south-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-west-1" + "UseDualStack": false, + "Region": "eu-south-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-gov-west-1.amazonaws.com" + "url": "https://access-analyzer.eu-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1" + "UseDualStack": false, + "Region": "eu-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-1.api.aws" + "url": "https://access-analyzer.eu-west-2.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-1" + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-1.amazonaws.com" + "url": "https://access-analyzer.eu-west-3.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-1" + "Region": "eu-west-3" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-1.api.aws" + "url": "https://access-analyzer.me-south-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "me-south-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-1.amazonaws.com" + "url": "https://access-analyzer.sa-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "sa-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-2.api.aws" + "url": "https://access-analyzer.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-2" + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-2.amazonaws.com" + "url": "https://access-analyzer-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-2" + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-2.api.aws" + "url": "https://access-analyzer.us-east-2.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-2" + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-2.amazonaws.com" + "url": "https://access-analyzer-fips.us-east-2.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-2" + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-3.api.aws" + "url": "https://access-analyzer.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-3" + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-3.amazonaws.com" + "url": "https://access-analyzer-fips.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-3" + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-3.api.aws" + "url": "https://access-analyzer.us-west-2.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-3" + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-3.amazonaws.com" + "url": "https://access-analyzer-fips.us-west-2.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-3" + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-4.api.aws" + "url": "https://access-analyzer-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-4" + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.ap-southeast-4.amazonaws.com" + "url": "https://access-analyzer.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-4" + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-4.api.aws" + "url": "https://access-analyzer.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-4" + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.ap-southeast-4.amazonaws.com" + "url": "https://access-analyzer.cn-northwest-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-4" + "UseDualStack": false, + "Region": "cn-northwest-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-east-1.api.aws" + "url": "https://access-analyzer-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-east-1.amazonaws.com" + "url": "https://access-analyzer-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-east-1.api.aws" + "url": "https://access-analyzer.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-east-1" + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-east-1.amazonaws.com" + "url": "https://access-analyzer.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-1" + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-east-2.api.aws" + "url": "https://access-analyzer.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-2" + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.us-east-2.amazonaws.com" + "url": "https://access-analyzer.us-gov-west-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://access-analyzer.us-gov-west-1.amazonaws.com" + } + }, + "params": { "UseFIPS": true, - "Region": "us-east-2" + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-east-2.api.aws" + "url": "https://access-analyzer-fips.us-gov-east-1.api.aws" } }, "params": { + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://access-analyzer.us-east-2.amazonaws.com" + "url": "https://access-analyzer.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-2" + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://access-analyzer-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "cn-northwest-1" + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://access-analyzer.us-iso-east-1.c2s.ic.gov" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-northwest-1" + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://access-analyzer-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-northwest-1" + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://access-analyzer.cn-northwest-1.amazonaws.com.cn" + "url": "https://access-analyzer.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "cn-northwest-1" + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { @@ -1672,8 +580,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1684,8 +592,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1696,8 +604,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/appsync/2017-07-25/api-2.json b/models/apis/appsync/2017-07-25/api-2.json index a75d9d9ac25..9e895e8e92e 100644 --- a/models/apis/appsync/2017-07-25/api-2.json +++ b/models/apis/appsync/2017-07-25/api-2.json @@ -1176,7 +1176,8 @@ "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, "openSearchServiceConfig":{"shape":"OpenSearchServiceDataSourceConfig"}, "httpConfig":{"shape":"HttpDataSourceConfig"}, - "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"}, + "eventBridgeConfig":{"shape":"EventBridgeDataSourceConfig"} } }, "CreateDataSourceResponse":{ @@ -1331,7 +1332,8 @@ "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, "openSearchServiceConfig":{"shape":"OpenSearchServiceDataSourceConfig"}, "httpConfig":{"shape":"HttpDataSourceConfig"}, - "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"}, + "eventBridgeConfig":{"shape":"EventBridgeDataSourceConfig"} } }, "DataSourceType":{ @@ -1343,7 +1345,8 @@ "NONE", "HTTP", "RELATIONAL_DATABASE", - "AMAZON_OPENSEARCH_SERVICE" + "AMAZON_OPENSEARCH_SERVICE", + "AMAZON_EVENTBRIDGE" ] }, "DataSources":{ @@ -1667,6 +1670,13 @@ "min":0, "pattern":"^[\\s\\S]*$" }, + "EventBridgeDataSourceConfig":{ + "type":"structure", + "required":["eventBusArn"], + "members":{ + "eventBusArn":{"shape":"String"} + } + }, "FieldLogLevel":{ "type":"string", "enum":[ @@ -2653,7 +2663,8 @@ "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, "openSearchServiceConfig":{"shape":"OpenSearchServiceDataSourceConfig"}, "httpConfig":{"shape":"HttpDataSourceConfig"}, - "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"}, + "eventBridgeConfig":{"shape":"EventBridgeDataSourceConfig"} } }, "UpdateDataSourceResponse":{ diff --git a/models/apis/appsync/2017-07-25/docs-2.json b/models/apis/appsync/2017-07-25/docs-2.json index eb8cb72b2eb..2f7c0efeaef 100644 --- a/models/apis/appsync/2017-07-25/docs-2.json +++ b/models/apis/appsync/2017-07-25/docs-2.json @@ -433,7 +433,7 @@ "base": null, "refs": { "CreateDataSourceRequest$type": "

The type of the DataSource.

", - "DataSource$type": "

The type of the data source.

", + "DataSource$type": "

The type of the data source.

", "UpdateDataSourceRequest$type": "

The new data source type.

" } }, @@ -647,6 +647,14 @@ "EvaluateMappingTemplateResponse$evaluationResult": "

The mapping template; this can be a request or response template.

" } }, + "EventBridgeDataSourceConfig": { + "base": "

Describes an Amazon EventBridge bus data source configuration.

", + "refs": { + "CreateDataSourceRequest$eventBridgeConfig": "

Amazon EventBridge settings.

", + "DataSource$eventBridgeConfig": "

Amazon EventBridge settings.

", + "UpdateDataSourceRequest$eventBridgeConfig": "

The new Amazon EventBridge settings.

" + } + }, "FieldLogLevel": { "base": null, "refs": { @@ -1236,6 +1244,7 @@ "ElasticsearchDataSourceConfig$endpoint": "

The endpoint.

", "ElasticsearchDataSourceConfig$awsRegion": "

The Amazon Web Services Region.

", "EvaluateCodeRequest$function": "

The function within the code to be evaluated. If provided, the valid values are request and response.

", + "EventBridgeDataSourceConfig$eventBusArn": "

The ARN of the event bus. For more information about event buses, see Amazon EventBridge event buses.

", "FlushApiCacheRequest$apiId": "

The API ID.

", "FunctionConfiguration$functionId": "

A unique ID representing the Function object.

", "FunctionConfiguration$functionArn": "

The Amazon Resource Name (ARN) of the Function object.

", diff --git a/models/apis/appsync/2017-07-25/endpoint-rule-set-1.json b/models/apis/appsync/2017-07-25/endpoint-rule-set-1.json index 6919bc2e008..368a1a1429b 100644 --- a/models/apis/appsync/2017-07-25/endpoint-rule-set-1.json +++ b/models/apis/appsync/2017-07-25/endpoint-rule-set-1.json @@ -52,15 +52,6 @@ "ref": "Endpoint" } ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], "type": "tree", diff --git a/models/apis/cloudtrail-data/2021-08-11/api-2.json b/models/apis/cloudtrail-data/2021-08-11/api-2.json new file mode 100644 index 00000000000..9671e81ee23 --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/api-2.json @@ -0,0 +1,190 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2021-08-11", + "endpointPrefix":"cloudtrail-data", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"AWS CloudTrail Data Service", + "serviceId":"CloudTrail Data", + "signatureVersion":"v4", + "signingName":"cloudtrail-data", + "uid":"cloudtrail-data-2021-08-11" + }, + "operations":{ + "PutAuditEvents":{ + "name":"PutAuditEvents", + "http":{ + "method":"POST", + "requestUri":"/PutAuditEvents", + "responseCode":200 + }, + "input":{"shape":"PutAuditEventsRequest"}, + "output":{"shape":"PutAuditEventsResponse"}, + "errors":[ + {"shape":"ChannelInsufficientPermission"}, + {"shape":"ChannelNotFound"}, + {"shape":"InvalidChannelARN"}, + {"shape":"ChannelUnsupportedSchema"}, + {"shape":"DuplicatedAuditEventId"}, + {"shape":"UnsupportedOperationException"} + ] + } + }, + "shapes":{ + "AuditEvent":{ + "type":"structure", + "required":[ + "eventData", + "id" + ], + "members":{ + "eventData":{"shape":"String"}, + "eventDataChecksum":{"shape":"String"}, + "id":{"shape":"Uuid"} + } + }, + "AuditEventResultEntries":{ + "type":"list", + "member":{"shape":"AuditEventResultEntry"}, + "max":100, + "min":0 + }, + "AuditEventResultEntry":{ + "type":"structure", + "required":[ + "eventID", + "id" + ], + "members":{ + "eventID":{"shape":"Uuid"}, + "id":{"shape":"Uuid"} + } + }, + "AuditEvents":{ + "type":"list", + "member":{"shape":"AuditEvent"}, + "max":100, + "min":1 + }, + "ChannelArn":{ + "type":"string", + "pattern":"^arn:.*$" + }, + "ChannelInsufficientPermission":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ChannelNotFound":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ChannelUnsupportedSchema":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "DuplicatedAuditEventId":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ErrorCode":{ + "type":"string", + "max":128, + "min":1 + }, + "ErrorMessage":{ + "type":"string", + "max":1024, + "min":1 + }, + "ExternalId":{ + "type":"string", + "max":1224, + "min":2, + "pattern":"^[\\w+=,.@:\\/-]*$" + }, + "InvalidChannelARN":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "PutAuditEventsRequest":{ + "type":"structure", + "required":[ + "auditEvents", + "channelArn" + ], + "members":{ + "auditEvents":{"shape":"AuditEvents"}, + "channelArn":{ + "shape":"ChannelArn", + "location":"querystring", + "locationName":"channelArn" + }, + "externalId":{ + "shape":"ExternalId", + "location":"querystring", + "locationName":"externalId" + } + } + }, + "PutAuditEventsResponse":{ + "type":"structure", + "required":[ + "failed", + "successful" + ], + "members":{ + "failed":{"shape":"ResultErrorEntries"}, + "successful":{"shape":"AuditEventResultEntries"} + } + }, + "ResultErrorEntries":{ + "type":"list", + "member":{"shape":"ResultErrorEntry"}, + "max":100, + "min":0 + }, + "ResultErrorEntry":{ + "type":"structure", + "required":[ + "errorCode", + "errorMessage", + "id" + ], + "members":{ + "errorCode":{"shape":"ErrorCode"}, + "errorMessage":{"shape":"ErrorMessage"}, + "id":{"shape":"Uuid"} + } + }, + "String":{"type":"string"}, + "UnsupportedOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "Uuid":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[-_A-Za-z0-9]+$" + } + } +} diff --git a/models/apis/cloudtrail-data/2021-08-11/docs-2.json b/models/apis/cloudtrail-data/2021-08-11/docs-2.json new file mode 100644 index 00000000000..a17d60dc172 --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/docs-2.json @@ -0,0 +1,131 @@ +{ + "version": "2.0", + "service": "

The CloudTrail Data Service lets you ingest events into CloudTrail from any source in your hybrid environments, such as in-house or SaaS applications hosted on-premises or in the cloud, virtual machines, or containers. You can store, access, analyze, troubleshoot and take action on this data without maintaining multiple log aggregators and reporting tools. After you run PutAuditEvents to ingest your application activity into CloudTrail, you can use CloudTrail Lake to search, query, and analyze the data that is logged from your applications.

", + "operations": { + "PutAuditEvents": "

Ingests your application events into CloudTrail Lake. A required parameter, auditEvents, accepts the JSON records (also called payload) of events that you want CloudTrail to ingest. You can add up to 100 of these events (or up to 1 MB) per PutAuditEvents request.

" + }, + "shapes": { + "AuditEvent": { + "base": "

An event from a source outside of Amazon Web Services that you want CloudTrail to log.

", + "refs": { + "AuditEvents$member": null + } + }, + "AuditEventResultEntries": { + "base": null, + "refs": { + "PutAuditEventsResponse$successful": "

Lists events in the provided event payload that were successfully ingested into CloudTrail.

" + } + }, + "AuditEventResultEntry": { + "base": "

A response that includes successful and failed event results.

", + "refs": { + "AuditEventResultEntries$member": null + } + }, + "AuditEvents": { + "base": null, + "refs": { + "PutAuditEventsRequest$auditEvents": "

The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.

" + } + }, + "ChannelArn": { + "base": null, + "refs": { + "PutAuditEventsRequest$channelArn": "

The ARN or ID (the ARN suffix) of a channel.

" + } + }, + "ChannelInsufficientPermission": { + "base": "

The caller's account ID must be the same as the channel owner's account ID.

", + "refs": { + } + }, + "ChannelNotFound": { + "base": "

The channel could not be found.

", + "refs": { + } + }, + "ChannelUnsupportedSchema": { + "base": "

The schema type of the event is not supported.

", + "refs": { + } + }, + "DuplicatedAuditEventId": { + "base": "

Two or more entries in the request have the same event ID.

", + "refs": { + } + }, + "ErrorCode": { + "base": null, + "refs": { + "ResultErrorEntry$errorCode": "

The error code for events that could not be ingested by CloudTrail. Possible error codes include: FieldTooLong, FieldNotFound, InvalidChecksum, InvalidData, InvalidRecipient, InvalidEventSource, AccountNotSubscribed, Throttling, and InternalFailure.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "ResultErrorEntry$errorMessage": "

The message that describes the error for events that could not be ingested by CloudTrail.

" + } + }, + "ExternalId": { + "base": null, + "refs": { + "PutAuditEventsRequest$externalId": "

A unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.

" + } + }, + "InvalidChannelARN": { + "base": "

The specified channel ARN is not a valid channel ARN.

", + "refs": { + } + }, + "PutAuditEventsRequest": { + "base": null, + "refs": { + } + }, + "PutAuditEventsResponse": { + "base": null, + "refs": { + } + }, + "ResultErrorEntries": { + "base": null, + "refs": { + "PutAuditEventsResponse$failed": "

Lists events in the provided event payload that could not be ingested into CloudTrail, and includes the error code and error message returned for events that could not be ingested.

" + } + }, + "ResultErrorEntry": { + "base": "

Includes the error code and error message for events that could not be ingested by CloudTrail.

", + "refs": { + "ResultErrorEntries$member": null + } + }, + "String": { + "base": null, + "refs": { + "AuditEvent$eventData": "

The content of an audit event that comes from the event, such as userIdentity, userAgent, and eventSource.

", + "AuditEvent$eventDataChecksum": "

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches with the checksum. Calculate the checksum by running a command like the following:

printf %s $eventdata | openssl dgst -binary -sha256 | base64

", + "ChannelInsufficientPermission$message": null, + "ChannelNotFound$message": null, + "ChannelUnsupportedSchema$message": null, + "DuplicatedAuditEventId$message": null, + "InvalidChannelARN$message": null, + "UnsupportedOperationException$message": null + } + }, + "UnsupportedOperationException": { + "base": "

The operation requested is not supported in this region or account.

", + "refs": { + } + }, + "Uuid": { + "base": null, + "refs": { + "AuditEvent$id": "

The original event ID from the source event.

", + "AuditEventResultEntry$eventID": "

The event ID assigned by CloudTrail.

", + "AuditEventResultEntry$id": "

The original event ID from the source event.

", + "ResultErrorEntry$id": "

The original event ID from the source event that could not be ingested by CloudTrail.

" + } + } + } +} diff --git a/models/apis/cloudtrail-data/2021-08-11/endpoint-rule-set-1.json b/models/apis/cloudtrail-data/2021-08-11/endpoint-rule-set-1.json new file mode 100644 index 00000000000..a6a78e8737c --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/endpoint-rule-set-1.json @@ -0,0 +1,324 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": true, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail-data-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail-data.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail-data.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/cloudtrail-data/2021-08-11/endpoint-tests-1.json b/models/apis/cloudtrail-data/2021-08-11/endpoint-tests-1.json new file mode 100644 index 00000000000..a1ba4da405d --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/endpoint-tests-1.json @@ -0,0 +1,295 @@ +{ + "testCases": [ + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://cloudtrail-data.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/cloudtrail-data/2021-08-11/examples-1.json b/models/apis/cloudtrail-data/2021-08-11/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/cloudtrail-data/2021-08-11/paginators-1.json b/models/apis/cloudtrail-data/2021-08-11/paginators-1.json new file mode 100644 index 00000000000..5677bd8e4a2 --- /dev/null +++ b/models/apis/cloudtrail-data/2021-08-11/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/models/apis/cloudtrail/2013-11-01/api-2.json b/models/apis/cloudtrail/2013-11-01/api-2.json index ff247e7cc0b..4e5ecae7181 100644 --- a/models/apis/cloudtrail/2013-11-01/api-2.json +++ b/models/apis/cloudtrail/2013-11-01/api-2.json @@ -30,6 +30,7 @@ {"shape":"InvalidTagParameterException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"EventDataStoreNotFoundException"}, + {"shape":"ChannelNotFoundException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, @@ -60,6 +61,29 @@ ], "idempotent":true }, + "CreateChannel":{ + "name":"CreateChannel", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateChannelRequest"}, + "output":{"shape":"CreateChannelResponse"}, + "errors":[ + {"shape":"ChannelMaxLimitExceededException"}, + {"shape":"InvalidSourceException"}, + {"shape":"ChannelAlreadyExistsException"}, + {"shape":"EventDataStoreARNInvalidException"}, + {"shape":"EventDataStoreNotFoundException"}, + {"shape":"InvalidEventDataStoreCategoryException"}, + {"shape":"InactiveEventDataStoreException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidTagParameterException"}, + {"shape":"TagsLimitExceededException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ] + }, "CreateEventDataStore":{ "name":"CreateEventDataStore", "http":{ @@ -132,6 +156,21 @@ ], "idempotent":true }, + "DeleteChannel":{ + "name":"DeleteChannel", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteChannelRequest"}, + "output":{"shape":"DeleteChannelResponse"}, + "errors":[ + {"shape":"ChannelARNInvalidException"}, + {"shape":"ChannelNotFoundException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ] + }, "DeleteEventDataStore":{ "name":"DeleteEventDataStore", "http":{ @@ -151,9 +190,28 @@ {"shape":"UnsupportedOperationException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"NoManagementAccountSLRExistsException"}, + {"shape":"ChannelExistsForEDSException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"} ] }, + "DeleteResourcePolicy":{ + "name":"DeleteResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResourcePolicyRequest"}, + "output":{"shape":"DeleteResourcePolicyResponse"}, + "errors":[ + {"shape":"ResourceARNNotValidException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourcePolicyNotFoundException"}, + {"shape":"ResourceTypeNotSupportedException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ], + "idempotent":true + }, "DeleteTrail":{ "name":"DeleteTrail", "http":{ @@ -166,13 +224,13 @@ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"CloudTrailARNInvalidException"}, + {"shape":"ConflictException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, {"shape":"NoManagementAccountSLRExistsException"}, - {"shape":"InsufficientDependencyServiceAccessPermissionException"}, - {"shape":"ConflictException"} + {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "idempotent":true }, @@ -188,6 +246,7 @@ {"shape":"AccountNotFoundException"}, {"shape":"AccountNotRegisteredException"}, {"shape":"CloudTrailAccessNotEnabledException"}, + {"shape":"ConflictException"}, {"shape":"InsufficientDependencyServiceAccessPermissionException"}, {"shape":"InvalidParameterException"}, {"shape":"NotOrganizationManagementAccountException"}, @@ -342,6 +401,24 @@ {"shape":"NoManagementAccountSLRExistsException"} ] }, + "GetResourcePolicy":{ + "name":"GetResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourcePolicyRequest"}, + "output":{"shape":"GetResourcePolicyResponse"}, + "errors":[ + {"shape":"ResourceARNNotValidException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourcePolicyNotFoundException"}, + {"shape":"ResourceTypeNotSupportedException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ], + "idempotent":true + }, "GetTrail":{ "name":"GetTrail", "http":{ @@ -581,6 +658,24 @@ ], "idempotent":true }, + "PutResourcePolicy":{ + "name":"PutResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResourcePolicyRequest"}, + "output":{"shape":"PutResourcePolicyResponse"}, + "errors":[ + {"shape":"ResourceARNNotValidException"}, + {"shape":"ResourcePolicyNotValidException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceTypeNotSupportedException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ], + "idempotent":true + }, "RegisterOrganizationDelegatedAdmin":{ "name":"RegisterOrganizationDelegatedAdmin", "http":{ @@ -596,6 +691,7 @@ {"shape":"InvalidParameterException"}, {"shape":"CannotDelegateManagementAccountException"}, {"shape":"CloudTrailAccessNotEnabledException"}, + {"shape":"ConflictException"}, {"shape":"DelegatedAdminAccountLimitExceededException"}, {"shape":"NotOrganizationManagementAccountException"}, {"shape":"OrganizationNotInAllFeaturesModeException"}, @@ -621,6 +717,7 @@ {"shape":"InvalidTagParameterException"}, {"shape":"InactiveEventDataStoreException"}, {"shape":"EventDataStoreNotFoundException"}, + {"shape":"ChannelNotFoundException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, {"shape":"NotOrganizationMasterAccountException"}, @@ -686,6 +783,7 @@ "output":{"shape":"StartLoggingResponse"}, "errors":[ {"shape":"CloudTrailARNInvalidException"}, + {"shape":"ConflictException"}, {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"InvalidHomeRegionException"}, @@ -750,6 +848,7 @@ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, {"shape":"CloudTrailARNInvalidException"}, + {"shape":"ConflictException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"UnsupportedOperationException"}, {"shape":"OperationNotPermittedException"}, @@ -759,6 +858,28 @@ ], "idempotent":true }, + "UpdateChannel":{ + "name":"UpdateChannel", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateChannelRequest"}, + "output":{"shape":"UpdateChannelResponse"}, + "errors":[ + {"shape":"ChannelARNInvalidException"}, + {"shape":"ChannelNotFoundException"}, + {"shape":"ChannelAlreadyExistsException"}, + {"shape":"EventDataStoreARNInvalidException"}, + {"shape":"EventDataStoreNotFoundException"}, + {"shape":"InvalidEventDataStoreCategoryException"}, + {"shape":"InactiveEventDataStoreException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"UnsupportedOperationException"} + ], + "idempotent":true + }, "UpdateEventDataStore":{ "name":"UpdateEventDataStore", "http":{ @@ -811,6 +932,7 @@ {"shape":"TrailNotProvidedException"}, {"shape":"InvalidEventSelectorsException"}, {"shape":"CloudTrailARNInvalidException"}, + {"shape":"ConflictException"}, {"shape":"InvalidParameterCombinationException"}, {"shape":"InvalidHomeRegionException"}, {"shape":"KmsKeyNotFoundException"}, @@ -954,12 +1076,30 @@ }, "exception":true }, + "ChannelAlreadyExistsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ChannelArn":{ "type":"string", "max":256, "min":3, "pattern":"^[a-zA-Z0-9._/\\-:]+$" }, + "ChannelExistsForEDSException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ChannelMaxLimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ChannelName":{ "type":"string", "max":128, @@ -1006,6 +1146,30 @@ }, "exception":true }, + "CreateChannelRequest":{ + "type":"structure", + "required":[ + "Name", + "Source", + "Destinations" + ], + "members":{ + "Name":{"shape":"ChannelName"}, + "Source":{"shape":"Source"}, + "Destinations":{"shape":"Destinations"}, + "Tags":{"shape":"TagsList"} + } + }, + "CreateChannelResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChannelArn"}, + "Name":{"shape":"ChannelName"}, + "Source":{"shape":"Source"}, + "Destinations":{"shape":"Destinations"}, + "Tags":{"shape":"TagsList"} + } + }, "CreateEventDataStoreRequest":{ "type":"structure", "required":["Name"], @@ -1101,6 +1265,18 @@ }, "exception":true }, + "DeleteChannelRequest":{ + "type":"structure", + "required":["Channel"], + "members":{ + "Channel":{"shape":"ChannelArn"} + } + }, + "DeleteChannelResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], @@ -1113,6 +1289,18 @@ "members":{ } }, + "DeleteResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "DeleteResourcePolicyResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteTrailRequest":{ "type":"structure", "required":["Name"], @@ -1389,7 +1577,8 @@ "Name":{"shape":"ChannelName"}, "Source":{"shape":"Source"}, "SourceConfig":{"shape":"SourceConfig"}, - "Destinations":{"shape":"Destinations"} + "Destinations":{"shape":"Destinations"}, + "IngestionStatus":{"shape":"IngestionStatus"} } }, "GetEventDataStoreRequest":{ @@ -1489,6 +1678,20 @@ "ErrorMessage":{"shape":"ErrorMessage"} } }, + "GetResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"ResourceArn"} + } + }, + "GetResourcePolicyResponse":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"ResourceArn"}, + "ResourcePolicy":{"shape":"ResourcePolicy"} + } + }, "GetTrailRequest":{ "type":"structure", "required":["Name"], @@ -1618,6 +1821,16 @@ }, "exception":true }, + "IngestionStatus":{ + "type":"structure", + "members":{ + "LatestIngestionSuccessTime":{"shape":"Date"}, + "LatestIngestionSuccessEventID":{"shape":"UUID"}, + "LatestIngestionErrorCode":{"shape":"ErrorMessage"}, + "LatestIngestionAttemptTime":{"shape":"Date"}, + "LatestIngestionAttemptEventID":{"shape":"UUID"} + } + }, "InsightNotEnabledException":{ "type":"structure", "members":{ @@ -1792,6 +2005,12 @@ }, "exception":true }, + "InvalidSourceException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidTagParameterException":{ "type":"structure", "members":{ @@ -2164,6 +2383,24 @@ "InsightSelectors":{"shape":"InsightSelectors"} } }, + "PutResourcePolicyRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "ResourcePolicy" + ], + "members":{ + "ResourceArn":{"shape":"ResourceArn"}, + "ResourcePolicy":{"shape":"ResourcePolicy"} + } + }, + "PutResourcePolicyResponse":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"ResourceArn"}, + "ResourcePolicy":{"shape":"ResourcePolicy"} + } + }, "Queries":{ "type":"list", "member":{"shape":"Query"} @@ -2275,6 +2512,18 @@ "ResourceName":{"shape":"String"} } }, + "ResourceARNNotValidException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourceArn":{ + "type":"string", + "max":256, + "min":3, + "pattern":"^[a-zA-Z0-9._/\\-:]+$" + }, "ResourceIdList":{ "type":"list", "member":{"shape":"String"} @@ -2289,6 +2538,23 @@ }, "exception":true }, + "ResourcePolicy":{ + "type":"string", + "max":8192, + "min":1 + }, + "ResourcePolicyNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourcePolicyNotValidException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ResourceTag":{ "type":"structure", "members":{ @@ -2565,6 +2831,24 @@ }, "exception":true }, + "UpdateChannelRequest":{ + "type":"structure", + "required":["Channel"], + "members":{ + "Channel":{"shape":"ChannelArn"}, + "Destinations":{"shape":"Destinations"}, + "Name":{"shape":"ChannelName"} + } + }, + "UpdateChannelResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChannelArn"}, + "Name":{"shape":"ChannelName"}, + "Source":{"shape":"Source"}, + "Destinations":{"shape":"Destinations"} + } + }, "UpdateEventDataStoreRequest":{ "type":"structure", "required":["EventDataStore"], diff --git a/models/apis/cloudtrail/2013-11-01/docs-2.json b/models/apis/cloudtrail/2013-11-01/docs-2.json index 8219ea5f445..34bcb3f3b0f 100644 --- a/models/apis/cloudtrail/2013-11-01/docs-2.json +++ b/models/apis/cloudtrail/2013-11-01/docs-2.json @@ -2,43 +2,49 @@ "version": "2.0", "service": "CloudTrail

This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.

As an alternative to the API, you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide programmatic access to CloudTrail. For example, the SDKs handle cryptographically signing requests, managing errors, and retrying requests automatically. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools to Build on Amazon Web Services.

See the CloudTrail User Guide for information about the data that is included with each Amazon Web Services API call listed in the log files.

", "operations": { - "AddTags": "

Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home region).

", + "AddTags": "

Adds one or more tags to a trail, event data store, or channel, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home region).

", "CancelQuery": "

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.

", + "CreateChannel": "

Creates a channel for CloudTrail to ingest events from a partner or external source. After you create a channel, a CloudTrail Lake event data store can log events from the partner or source that you specify.

", "CreateEventDataStore": "

Creates a new event data store.

", "CreateTrail": "

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.

", + "DeleteChannel": "

Deletes a channel.

", "DeleteEventDataStore": "

Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store; this operation cannot work if TerminationProtectionEnabled is True.

After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.

", + "DeleteResourcePolicy": "

Deletes the resource-based policy attached to the CloudTrail channel.

", "DeleteTrail": "

Deletes a trail. This operation must be called from the region in which the trail was created. DeleteTrail cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "DeregisterOrganizationDelegatedAdmin": "

Removes CloudTrail delegated administrator permissions from a member account in an organization.

", "DescribeQuery": "

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status. You must specify an ARN for EventDataStore, and a value for QueryID.

", "DescribeTrails": "

Retrieves settings for one or more trails associated with the current region for your account.

", - "GetChannel": "

Returns information about a specific channel. Amazon Web Services services create service-linked channels to get information about CloudTrail events on your behalf. For more information about service-linked channels, see Viewing service-linked channels for CloudTrail by using the CLI.

", + "GetChannel": "

Returns information about a specific channel.

", "GetEventDataStore": "

Returns information about an event data store specified as either an ARN or the ID portion of the ARN.

", "GetEventSelectors": "

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:

For more information about logging management and data events, see the following topics in the CloudTrail User Guide:

", "GetImport": "

Returns information about a specific import.

", "GetInsightSelectors": "

Describes the settings for the Insights event selectors that you configured for your trail. GetInsightSelectors shows if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled. If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException

For more information, see Logging CloudTrail Insights Events for Trails in the CloudTrail User Guide.

", "GetQueryResults": "

Gets event data results of a query. You must specify the QueryID value returned by the StartQuery operation, and an ARN for EventDataStore.

", + "GetResourcePolicy": "

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel.

", "GetTrail": "

Returns settings information for a specified trail.

", "GetTrailStatus": "

Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.

", - "ListChannels": "

Lists the channels in the current account, and their source names. Amazon Web Services services create service-linked channels get information about CloudTrail events on your behalf. For more information about service-linked channels, see Viewing service-linked channels for CloudTrail by using the CLI.

", + "ListChannels": "

Lists the channels in the current account, and their source names.

", "ListEventDataStores": "

Returns information about all event data stores in the account, in the current region.

", "ListImportFailures": "

Returns a list of failures for the specified import.

", "ListImports": "

Returns information on all imports, or a select set of imports by ImportStatus or Destination.

", "ListPublicKeys": "

Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.

CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key unique to its region. When you validate a digest file from a specific region, you must look in the same region for its corresponding public key.

", "ListQueries": "

Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime and EndTime parameters, and a QueryStatus value. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

", - "ListTags": "

Lists the tags for the trail or event data store in the current region.

", + "ListTags": "

Lists the tags for the trail, event data store, or channel in the current region.

", "ListTrails": "

Lists trails that are in the current account.

", "LookupEvents": "

Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:

Lookup supports the following attributes for Insights events:

All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.

The rate of lookup requests is limited to two per second, per account, per region. If this limit is exceeded, a throttling error occurs.

", "PutEventSelectors": "

Configures an event selector or advanced event selectors for your trail. Use event selectors or advanced event selectors to specify management and data event settings for your trail. By default, trails created without specific event selectors are configured to log all read and write management events, and no data events.

When an event occurs in your account, CloudTrail evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

Example

  1. You create an event selector for a trail and specify that you want write-only events.

  2. The EC2 GetConsoleOutput and RunInstances API operations occur in your account.

  3. CloudTrail evaluates whether the events match your event selectors.

  4. The RunInstances is a write-only event and it matches your event selector. The trail logs the event.

  5. The GetConsoleOutput is a read-only event that doesn't match your event selector. The trail doesn't log the event.

The PutEventSelectors operation must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException exception is thrown.

You can configure up to five event selectors for each trail. For more information, see Logging management events for trails , Logging data events for trails , and Quotas in CloudTrail in the CloudTrail User Guide.

You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.

", "PutInsightSelectors": "

Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of insight types. The valid Insights event types in this release are ApiErrorRateInsight and ApiCallRateInsight.

", + "PutResourcePolicy": "

Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

", "RegisterOrganizationDelegatedAdmin": "

Registers an organization’s member account as the CloudTrail delegated administrator.

", - "RemoveTags": "

Removes the specified tags from a trail or event data store.

", + "RemoveTags": "

Removes the specified tags from a trail, event data store, or channel.

", "RestoreEventDataStore": "

Restores a deleted event data store specified by EventDataStore, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.

", - "StartImport": "

Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail only imports events contained in the S3 bucket's CloudTrail prefix and the prefixes inside the CloudTrail prefix, and does not check prefixes for other Amazon Web Services services. If you want to import CloudTrail events contained in another prefix, you must include the prefix in the S3LocationUri. For more considerations about importing trail events, see Considerations.

When you start a new import, the Destinations and ImportSource parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket. For more information about disabling ACLs, see Controlling ownership of objects and disabling ACLs for your bucket.

When you retry an import, the ImportID parameter is required.

", + "StartImport": "

Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail only imports events contained in the S3 bucket's CloudTrail prefix and the prefixes inside the CloudTrail prefix, and does not check prefixes for other Amazon Web Services services. If you want to import CloudTrail events contained in another prefix, you must include the prefix in the S3LocationUri. For more considerations about importing trail events, see Considerations.

When you start a new import, the Destinations and ImportSource parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket. For more information about disabling ACLs, see Controlling ownership of objects and disabling ACLs for your bucket.

When you retry an import, the ImportID parameter is required.

If the destination event data store is for an organization, you must use the management account to import trail events. You cannot use the delegated administrator account for the organization.

", "StartLogging": "

Starts the recording of Amazon Web Services API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

", "StartQuery": "

Starts a CloudTrail Lake query. The required QueryStatement parameter provides your SQL query, enclosed in single quotation marks. Use the optional DeliveryS3Uri parameter to deliver the query results to an S3 bucket.

", "StopImport": "

Stops a specified import.

", "StopLogging": "

Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.

", - "UpdateEventDataStore": "

Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection is enabled. AdvancedEventSelectors includes or excludes management and data events in your event data store; for more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors.

", + "UpdateChannel": "

Updates a channel specified by a required channel ARN or UUID.

", + "UpdateEventDataStore": "

Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection is enabled.

For event data stores for CloudTrail events, AdvancedEventSelectors includes or excludes management and data events in your event data store. For more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors.

For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors includes events of that type in your event data store.

", "UpdateTrail": "

Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.

" }, "shapes": { @@ -55,7 +61,7 @@ } }, "AccountNotFoundException": { - "base": "

This exception is thrown when when the specified account is not found or not part of an organization.

", + "base": "

This exception is thrown when the specified account is not found or not part of an organization.

", "refs": { } }, @@ -70,7 +76,7 @@ } }, "AddTagsRequest": { - "base": "

Specifies the tags to add to a trail or event data store.

", + "base": "

Specifies the tags to add to a trail, event data store, or channel.

", "refs": { } }, @@ -88,9 +94,9 @@ "AdvancedEventSelectors": { "base": null, "refs": { - "CreateEventDataStoreRequest$AdvancedEventSelectors": "

The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.

", + "CreateEventDataStoreRequest$AdvancedEventSelectors": "

The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store.

For more information about how to use advanced event selectors to log CloudTrail events, see Log events by using advanced event selectors in the CloudTrail User Guide.

For more information about how to use advanced event selectors to include Config configuration items in your event data store, see Create an event data store for Config configuration items in the CloudTrail User Guide.

For more information about how to use advanced event selectors to include non-Amazon Web Services events in your event data store, see Create an integration to log events from outside Amazon Web Services in the CloudTrail User Guide.

", "CreateEventDataStoreResponse$AdvancedEventSelectors": "

The advanced event selectors that were used to select the events for the data store.

", - "EventDataStore$AdvancedEventSelectors": "

This field is being deprecated. The advanced event selectors that were used to select events for the data store.

", + "EventDataStore$AdvancedEventSelectors": "

The advanced event selectors that were used to select events for the data store.

", "GetEventDataStoreResponse$AdvancedEventSelectors": "

The advanced event selectors used to select events for the data store.

", "GetEventSelectorsResponse$AdvancedEventSelectors": "

The advanced event selectors that are configured for the trail.

", "PutEventSelectorsRequest$AdvancedEventSelectors": "

Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.

", @@ -123,14 +129,14 @@ "CreateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "CreateTrailRequest$IsMultiRegionTrail": "

Specifies whether the trail is created in the current region or in all regions. The default is false, which creates a trail only in the region where you are signed in. As a best practice, consider creating trails that log events in all regions.

", "CreateTrailRequest$EnableLogFileValidation": "

Specifies whether log file integrity validation is enabled. The default is false.

When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

", - "CreateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in Organizations.

", + "CreateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account or delegated administrator account for an organization in Organizations.

", "CreateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "CreateTrailResponse$IsMultiRegionTrail": "

Specifies whether the trail exists in one region or in all regions.

", "CreateTrailResponse$LogFileValidationEnabled": "

Specifies whether log file integrity validation is enabled.

", "CreateTrailResponse$IsOrganizationTrail": "

Specifies whether the trail is an organization trail.

", "DescribeTrailsRequest$includeShadowTrails": "

Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. The default is true.

", - "EventDataStore$MultiRegionEnabled": "

This field is being deprecated. Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

", - "EventDataStore$OrganizationEnabled": "

This field is being deprecated. Indicates that an event data store is collecting logged events for an organization.

", + "EventDataStore$MultiRegionEnabled": "

Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

", + "EventDataStore$OrganizationEnabled": "

Indicates that an event data store is collecting logged events for an organization.

", "EventSelector$IncludeManagementEvents": "

Specify if you want your event selector to include management events for your trail.

For more information, see Management Events in the CloudTrail User Guide.

By default, the value is true.

The first copy of management events is free. You are charged for additional copies of management events that you are logging on any subsequent trail in the same region. For more information about CloudTrail pricing, see CloudTrail Pricing.

", "GetEventDataStoreResponse$MultiRegionEnabled": "

Indicates whether the event data store includes events from all regions, or only from the region in which it was created.

", "GetEventDataStoreResponse$OrganizationEnabled": "

Indicates whether an event data store is collecting logged events for an organization in Organizations.

", @@ -151,7 +157,7 @@ "UpdateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "UpdateTrailRequest$IsMultiRegionTrail": "

Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.

", "UpdateTrailRequest$EnableLogFileValidation": "

Specifies whether log file validation is enabled. The default is false.

When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

", - "UpdateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in Organizations. If the trail is not an organization trail and this is set to true, the trail will be created in all Amazon Web Services accounts that belong to the organization. If the trail is an organization trail and this is set to false, the trail will remain in the current Amazon Web Services account but be deleted from all member accounts in the organization.

", + "UpdateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account or delegated administrator account for an organization in Organizations. If the trail is not an organization trail and this is set to true, the trail will be created in all Amazon Web Services accounts that belong to the organization. If the trail is an organization trail and this is set to false, the trail will remain in the current Amazon Web Services account but be deleted from all member accounts in the organization.

", "UpdateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "UpdateTrailResponse$IsMultiRegionTrail": "

Specifies whether the trail exists in one region or in all regions.

", "UpdateTrailResponse$LogFileValidationEnabled": "

Specifies whether log file integrity validation is enabled.

", @@ -190,23 +196,46 @@ "refs": { } }, + "ChannelAlreadyExistsException": { + "base": "

This exception is thrown when the provided channel already exists.

", + "refs": { + } + }, "ChannelArn": { "base": null, "refs": { "Channel$ChannelArn": "

The Amazon Resource Name (ARN) of a channel.

", + "CreateChannelResponse$ChannelArn": "

The Amazon Resource Name (ARN) of the new channel.

", + "DeleteChannelRequest$Channel": "

The ARN or the UUID value of the channel that you want to delete.

", "GetChannelRequest$Channel": "

The ARN or UUID of a channel.

", - "GetChannelResponse$ChannelArn": "

The ARN of an channel returned by a GetChannel request.

" + "GetChannelResponse$ChannelArn": "

The ARN of an channel returned by a GetChannel request.

", + "UpdateChannelRequest$Channel": "

The ARN or ID (the ARN suffix) of the channel that you want to update.

", + "UpdateChannelResponse$ChannelArn": "

The ARN of the channel that was updated.

" + } + }, + "ChannelExistsForEDSException": { + "base": "

This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel.

", + "refs": { + } + }, + "ChannelMaxLimitExceededException": { + "base": "

This exception is thrown when the maximum number of channels limit is exceeded.

", + "refs": { } }, "ChannelName": { "base": null, "refs": { "Channel$Name": "

The name of the CloudTrail channel. For service-linked channels, the name is aws-service-channel/service-name/custom-suffix where service-name represents the name of the Amazon Web Services service that created the channel and custom-suffix represents the suffix created by the Amazon Web Services service.

", - "GetChannelResponse$Name": "

The name of the CloudTrail channel. For service-linked channels, the value is aws-service-channel/service-name/custom-suffix where service-name represents the name of the Amazon Web Services service that created the channel and custom-suffix represents the suffix generated by the Amazon Web Services service.

" + "CreateChannelRequest$Name": "

The name of the channel.

", + "CreateChannelResponse$Name": "

The name of the new channel.

", + "GetChannelResponse$Name": "

The name of the CloudTrail channel. For service-linked channels, the name is aws-service-channel/service-name/custom-suffix where service-name represents the name of the Amazon Web Services service that created the channel and custom-suffix represents the suffix generated by the Amazon Web Services service.

", + "UpdateChannelRequest$Name": "

Changes the name of the channel.

", + "UpdateChannelResponse$Name": "

The name of the channel that was updated.

" } }, "ChannelNotFoundException": { - "base": "

The specified channel was not found.

", + "base": "

This exception is thrown when CloudTrail cannot find the specified channel.

", "refs": { } }, @@ -217,7 +246,7 @@ } }, "CloudTrailARNInvalidException": { - "base": "

This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", + "base": "

This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

This exception is also thrown when you call AddTags or RemoveTags on a trail, event data store, or channel with a resource ARN that is not valid.

The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

", "refs": { } }, @@ -237,7 +266,17 @@ } }, "ConflictException": { - "base": "

This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource. If this exception occurs, wait a few minutes, and then try the operation again.

", + "base": "

This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again.

", + "refs": { + } + }, + "CreateChannelRequest": { + "base": null, + "refs": { + } + }, + "CreateChannelResponse": { + "base": null, "refs": { } }, @@ -262,7 +301,7 @@ } }, "DataResource": { - "base": "

The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that you specify in your event selectors for your trail to log data events. Data events provide information about the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.

The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors.

If you are using advanced event selectors, the maximum total number of values for all conditions, across all advanced event selectors for the trail, is 500.

The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named bucket-1. In this example, the CloudTrail user specified an empty prefix, and the option to log both Read and Write data events.

  1. A user uploads an image file to bucket-1.

  2. The PutObject API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.

  3. A user uploads an object to an Amazon S3 bucket named arn:aws:s3:::bucket-2.

  4. The PutObject API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.

The following example demonstrates how logging works when you configure logging of Lambda data events for a Lambda function named MyLambdaFunction, but not for all Lambda functions.

  1. A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.

  2. The Invoke API operation on MyLambdaFunction is an Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event.

  3. The Invoke API operation on MyOtherLambdaFunction is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.

", + "base": "

The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that you specify in your event selectors for your trail to log data events. Data events provide information about the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.

The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors for the trail.

If you are using advanced event selectors, the maximum total number of values for all conditions, across all advanced event selectors for the trail, is 500.

The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named bucket-1. In this example, the CloudTrail user specified an empty prefix, and the option to log both Read and Write data events.

  1. A user uploads an image file to bucket-1.

  2. The PutObject API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.

  3. A user uploads an object to an Amazon S3 bucket named arn:aws:s3:::bucket-2.

  4. The PutObject API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.

The following example demonstrates how logging works when you configure logging of Lambda data events for a Lambda function named MyLambdaFunction, but not for all Lambda functions.

  1. A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.

  2. The Invoke API operation on MyLambdaFunction is an Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event.

  3. The Invoke API operation on MyOtherLambdaFunction is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.

", "refs": { "DataResources$member": null } @@ -285,8 +324,8 @@ "CreateEventDataStoreResponse$CreatedTimestamp": "

The timestamp that shows when the event data store was created.

", "CreateEventDataStoreResponse$UpdatedTimestamp": "

The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

", "Event$EventTime": "

The date and time of the event returned.

", - "EventDataStore$CreatedTimestamp": "

This field is being deprecated. The timestamp of the event data store's creation.

", - "EventDataStore$UpdatedTimestamp": "

This field is being deprecated. The timestamp showing when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

", + "EventDataStore$CreatedTimestamp": "

The timestamp of the event data store's creation.

", + "EventDataStore$UpdatedTimestamp": "

The timestamp showing when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

", "GetEventDataStoreResponse$CreatedTimestamp": "

The timestamp of the event data store's creation.

", "GetEventDataStoreResponse$UpdatedTimestamp": "

Shows the time that an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

", "GetImportResponse$StartEventTime": "

Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.

", @@ -302,6 +341,8 @@ "ImportFailureListItem$LastUpdatedTime": "

When the import was last updated.

", "ImportsListItem$CreatedTimestamp": "

The timestamp of the import's creation.

", "ImportsListItem$UpdatedTimestamp": "

The timestamp of the import's last update.

", + "IngestionStatus$LatestIngestionSuccessTime": "

The time stamp of the most recent successful ingestion of events for the channel.

", + "IngestionStatus$LatestIngestionAttemptTime": "

The time stamp of the most recent attempt to ingest events on the channel.

", "ListPublicKeysRequest$StartTime": "

Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.

", "ListPublicKeysRequest$EndTime": "

Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.

", "ListQueriesRequest$StartTime": "

Use with EndTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period.

", @@ -333,6 +374,16 @@ "refs": { } }, + "DeleteChannelRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelResponse": { + "base": null, + "refs": { + } + }, "DeleteEventDataStoreRequest": { "base": null, "refs": { @@ -343,6 +394,16 @@ "refs": { } }, + "DeleteResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "DeleteTrailRequest": { "base": "

The request that specifies the name of a trail to delete.

", "refs": { @@ -397,7 +458,7 @@ } }, "Destination": { - "base": "

Contains information about the service where CloudTrail delivers events.

", + "base": "

Contains information about the destination receiving events.

", "refs": { "Destinations$member": null } @@ -405,20 +466,25 @@ "DestinationType": { "base": null, "refs": { - "Destination$Type": "

The type of destination for events arriving from a channel. For service-linked channels, the value is AWS_SERVICE.

" + "Destination$Type": "

The type of destination for events arriving from a channel. For channels used for a CloudTrail Lake integration, the value is EventDataStore. For service-linked channels, the value is AWS_SERVICE.

" } }, "Destinations": { "base": null, "refs": { - "GetChannelResponse$Destinations": "

The Amazon Web Services service that created the service-linked channel.

" + "CreateChannelRequest$Destinations": "

One or more event data stores to which events arriving through a channel will be logged.

", + "CreateChannelResponse$Destinations": "

The event data stores that log the events arriving through the channel.

", + "GetChannelResponse$Destinations": "

The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.

", + "UpdateChannelRequest$Destinations": "

The ARNs of event data stores that you want to log events arriving through the channel.

", + "UpdateChannelResponse$Destinations": "

The event data stores that log events arriving through the channel.

" } }, "ErrorMessage": { "base": null, "refs": { "DescribeQueryResponse$ErrorMessage": "

The error message returned if a query failed.

", - "GetQueryResultsResponse$ErrorMessage": "

The error message returned if a query failed.

" + "GetQueryResultsResponse$ErrorMessage": "

The error message returned if a query failed.

", + "IngestionStatus$LatestIngestionErrorCode": "

The error code for the most recent failure to ingest events.

" } }, "Event": { @@ -511,7 +577,7 @@ "base": null, "refs": { "CreateEventDataStoreResponse$Status": "

The status of event data store creation.

", - "EventDataStore$Status": "

This field is being deprecated. The status of an event data store. Values are ENABLED and PENDING_DELETION.

", + "EventDataStore$Status": "

The status of an event data store. Values are ENABLED and PENDING_DELETION.

", "GetEventDataStoreResponse$Status": "

The status of an event data store. Values can be ENABLED and PENDING_DELETION.

", "RestoreEventDataStoreResponse$Status": "

The status of the event data store.

", "UpdateEventDataStoreResponse$Status": "

The status of an event data store. Values can be ENABLED and PENDING_DELETION.

" @@ -614,6 +680,16 @@ "refs": { } }, + "GetResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "GetResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "GetTrailRequest": { "base": null, "refs": { @@ -715,6 +791,12 @@ "refs": { } }, + "IngestionStatus": { + "base": "

A table showing information about the most recent successful and failed attempts to ingest events.

", + "refs": { + "GetChannelResponse$IngestionStatus": "

A table showing information about the most recent successful and failed attempts to ingest events.

" + } + }, "InsightNotEnabledException": { "base": "

If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.

", "refs": { @@ -873,6 +955,11 @@ "refs": { } }, + "InvalidSourceException": { + "base": "

This exception is thrown when the specified value of Source is not valid.

", + "refs": { + } + }, "InvalidTagParameterException": { "base": "

This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.

", "refs": { @@ -1021,7 +1108,7 @@ "Location": { "base": null, "refs": { - "Destination$Location": "

For service-linked channels, the value is the name of the Amazon Web Services service.

" + "Destination$Location": "

For channels used for a CloudTrail Lake integration, the location is the ARN of an event data store that receives events from a channel. For service-linked channels, the location is the name of the Amazon Web Services service.

" } }, "Long": { @@ -1197,6 +1284,16 @@ "refs": { } }, + "PutResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "Queries": { "base": null, "refs": { @@ -1290,7 +1387,7 @@ } }, "RemoveTagsRequest": { - "base": "

Specifies the tags to remove from a trail or event data store.

", + "base": "

Specifies the tags to remove from a trail, event data store, or channel.

", "refs": { } }, @@ -1305,10 +1402,25 @@ "ResourceList$member": null } }, + "ResourceARNNotValidException": { + "base": "

This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid. The following is the valid format for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

", + "refs": { + } + }, + "ResourceArn": { + "base": null, + "refs": { + "DeleteResourcePolicyRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the CloudTrail channel you're deleting the resource-based policy from. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

", + "GetResourcePolicyRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

", + "GetResourcePolicyResponse$ResourceArn": "

The Amazon Resource Name (ARN) of the CloudTrail channel attached to resource-based policy.

", + "PutResourcePolicyRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

", + "PutResourcePolicyResponse$ResourceArn": "

The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.

" + } + }, "ResourceIdList": { "base": null, "refs": { - "ListTagsRequest$ResourceIdList": "

Specifies a list of trail and event data store ARNs whose tags will be listed. The list has a limit of 20 ARNs.

" + "ListTagsRequest$ResourceIdList": "

Specifies a list of trail, event data store, or channel ARNs whose tags will be listed. The list has a limit of 20 ARNs.

" } }, "ResourceList": { @@ -1322,6 +1434,24 @@ "refs": { } }, + "ResourcePolicy": { + "base": null, + "refs": { + "GetResourcePolicyResponse$ResourcePolicy": "

A JSON-formatted string that contains the resource-based policy attached to the CloudTrail channel.

", + "PutResourcePolicyRequest$ResourcePolicy": "

A JSON-formatted string for an Amazon Web Services resource-based policy.

The following are requirements for the resource policy:

", + "PutResourcePolicyResponse$ResourcePolicy": "

The JSON-formatted string of the Amazon Web Services resource-based policy attached to the CloudTrail channel.

" + } + }, + "ResourcePolicyNotFoundException": { + "base": "

This exception is thrown when the specified resource policy is not found.

", + "refs": { + } + }, + "ResourcePolicyNotValidException": { + "base": "

This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.

The following are requirements for the resource policy:

", + "refs": { + } + }, "ResourceTag": { "base": "

A resource tag.

", "refs": { @@ -1354,7 +1484,7 @@ "refs": { "CreateEventDataStoreRequest$RetentionPeriod": "

The retention period of the event data store, in days. You can set a retention period of up to 2557 days, the equivalent of seven years.

", "CreateEventDataStoreResponse$RetentionPeriod": "

The retention period of an event data store, in days.

", - "EventDataStore$RetentionPeriod": "

This field is being deprecated. The retention period, in days.

", + "EventDataStore$RetentionPeriod": "

The retention period, in days.

", "GetEventDataStoreResponse$RetentionPeriod": "

The retention period of the event data store, in days.

", "RestoreEventDataStoreResponse$RetentionPeriod": "

The retention period, in days.

", "UpdateEventDataStoreRequest$RetentionPeriod": "

The retention period, in days.

", @@ -1375,7 +1505,7 @@ "SelectorField": { "base": null, "refs": { - "AdvancedFieldSelector$Field": "

A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.

" + "AdvancedFieldSelector$Field": "

A field in a CloudTrail event record on which to filter events to be logged. For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the field is used only for selecting events as filtering is not supported.

For CloudTrail event records, supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.

For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the only supported field is eventCategory.

" } }, "SelectorName": { @@ -1387,7 +1517,10 @@ "Source": { "base": null, "refs": { - "GetChannelResponse$Source": "

The event source for the CloudTrail channel.

" + "CreateChannelRequest$Source": "

The name of the partner or external event source. You cannot change this name after you create the channel. A maximum of one channel is allowed per source.

A source can be either Custom for all valid non-Amazon Web Services events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.

", + "CreateChannelResponse$Source": "

The partner or external event source name.

", + "GetChannelResponse$Source": "

The source for the CloudTrail channel.

", + "UpdateChannelResponse$Source": "

The event source of the channel that was updated.

" } }, "SourceConfig": { @@ -1449,13 +1582,13 @@ "String": { "base": null, "refs": { - "AddTagsRequest$ResourceId": "

Specifies the ARN of the trail or event data store to which one or more tags will be added. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", + "AddTagsRequest$ResourceId": "

Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.

The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

The format of an event data store ARN is: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

", "CreateTrailRequest$Name": "

Specifies the name of the trail. The name must meet the following requirements:

", "CreateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

", "CreateTrailRequest$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.

", "CreateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

", - "CreateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

", - "CreateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", + "CreateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. You must use a log group that exists in your account.

Not required unless you specify CloudWatchLogsRoleArn.

", + "CreateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.

", "CreateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by alias/, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

Examples:

", "CreateTrailResponse$Name": "

Specifies the name of the trail.

", "CreateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", @@ -1466,7 +1599,7 @@ "CreateTrailResponse$CloudWatchLogsLogGroupArn": "

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

", "CreateTrailResponse$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", "CreateTrailResponse$KmsKeyId": "

Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.

arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012

", - "DataResource$Type": "

The resource type in which you want to log data events. You can specify the following basic event selector resource types:

The following resource types are also available through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector$Field.

", + "DataResource$Type": "

The resource type in which you want to log data events. You can specify the following basic event selector resource types:

The following resource types are also available through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector$Field.

", "DataResourceValues$member": null, "DeleteTrailRequest$Name": "

Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a trail ARN. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "Event$EventId": "

The CloudTrail ID of the event returned.

", @@ -1507,7 +1640,7 @@ "PutEventSelectorsResponse$TrailARN": "

Specifies the ARN of the trail that was updated with event selectors. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "PutInsightSelectorsRequest$TrailName": "

The name of the CloudTrail trail for which you want to change or add Insights selectors.

", "PutInsightSelectorsResponse$TrailARN": "

The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.

", - "RemoveTagsRequest$ResourceId": "

Specifies the ARN of the trail or event data store from which tags should be removed.

Example trail ARN format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Example event data store ARN format: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

", + "RemoveTagsRequest$ResourceId": "

Specifies the ARN of the trail, event data store, or channel from which tags should be removed.

Example trail ARN format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Example event data store ARN format: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

Example channel ARN format: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

", "Resource$ResourceType": "

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and AccessKey for IAM. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.

", "Resource$ResourceName": "

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.

", "ResourceIdList$member": null, @@ -1535,8 +1668,8 @@ "UpdateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

", "UpdateTrailRequest$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.

", "UpdateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

", - "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. Not required unless you specify CloudWatchLogsRoleArn.

", - "UpdateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", + "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account.

Not required unless you specify CloudWatchLogsRoleArn.

", + "UpdateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.

", "UpdateTrailRequest$KmsKeyId": "

Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

Examples:

", "UpdateTrailResponse$Name": "

Specifies the name of the trail.

", "UpdateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", @@ -1550,7 +1683,7 @@ } }, "Tag": { - "base": "

A custom key-value pair associated with a resource such as a CloudTrail trail.

", + "base": "

A custom key-value pair associated with a resource such as a CloudTrail trail, event data store, or channel.

", "refs": { "TagsList$member": null } @@ -1568,7 +1701,7 @@ } }, "TagsLimitExceededException": { - "base": "

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.

", + "base": "

The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is 50.

", "refs": { } }, @@ -1576,6 +1709,8 @@ "base": "

A list of tags.

", "refs": { "AddTagsRequest$TagsList": "

Contains a list of tags, up to a limit of 50

", + "CreateChannelRequest$Tags": null, + "CreateChannelResponse$Tags": null, "CreateEventDataStoreRequest$TagsList": null, "CreateEventDataStoreResponse$TagsList": null, "CreateTrailRequest$TagsList": null, @@ -1588,7 +1723,7 @@ "refs": { "CreateEventDataStoreRequest$TerminationProtectionEnabled": "

Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.

", "CreateEventDataStoreResponse$TerminationProtectionEnabled": "

Indicates whether termination protection is enabled for the event data store.

", - "EventDataStore$TerminationProtectionEnabled": "

This field is being deprecated. Indicates whether the event data store is protected from termination.

", + "EventDataStore$TerminationProtectionEnabled": "

Indicates whether the event data store is protected from termination.

", "GetEventDataStoreResponse$TerminationProtectionEnabled": "

Indicates that termination protection is enabled.

", "RestoreEventDataStoreResponse$TerminationProtectionEnabled": "

Indicates that termination protection is enabled and the event data store cannot be automatically deleted.

", "UpdateEventDataStoreRequest$TerminationProtectionEnabled": "

Indicates that termination protection is enabled and the event data store cannot be automatically deleted.

", @@ -1622,7 +1757,7 @@ "TrailNameList": { "base": null, "refs": { - "DescribeTrailsRequest$trailNameList": "

Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

If an empty list is specified, information for the trail in the current region is returned.

If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

" + "DescribeTrailsRequest$trailNameList": "

Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

If an empty list is specified, information for the trail in the current region is returned.

If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region and current account. To return information about a trail in another region, you must specify its trail ARN.

" } }, "TrailNotFoundException": { @@ -1652,6 +1787,8 @@ "GetImportResponse$ImportId": "

The ID of the import.

", "GetQueryResultsRequest$QueryId": "

The ID of the query for which you want to get results.

", "ImportsListItem$ImportId": "

The ID of the import.

", + "IngestionStatus$LatestIngestionSuccessEventID": "

The event ID of the most recent successful ingestion of events.

", + "IngestionStatus$LatestIngestionAttemptEventID": "

The event ID of the most recent attempt to ingest events.

", "ListImportFailuresRequest$ImportId": "

The ID of the import.

", "Query$QueryId": "

The ID of a query.

", "StartImportRequest$ImportId": "

The ID of the import. Use this parameter when you are retrying an import.

", @@ -1666,6 +1803,16 @@ "refs": { } }, + "UpdateChannelRequest": { + "base": null, + "refs": { + } + }, + "UpdateChannelResponse": { + "base": null, + "refs": { + } + }, "UpdateEventDataStoreRequest": { "base": null, "refs": { diff --git a/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json b/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json index 4463311fe91..25d32768fe9 100644 --- a/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json +++ b/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json @@ -165,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -313,12 +319,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -331,12 +343,18 @@ }, { "conditions": [], - "endpoint": { - "url": "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/cloudtrail/2013-11-01/endpoint-tests-1.json b/models/apis/cloudtrail/2013-11-01/endpoint-tests-1.json index f8b6638885c..0beb2a8909c 100644 --- a/models/apis/cloudtrail/2013-11-01/endpoint-tests-1.json +++ b/models/apis/cloudtrail/2013-11-01/endpoint-tests-1.json @@ -1,1580 +1,392 @@ { "testCases": [ { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-south-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-south-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-south-2" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-south-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-south-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-south-2" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "me-central-1" - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "me-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-iso-west-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "us-iso-west-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-iso-west-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "us-iso-west-1" - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-central-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-central-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-central-2" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-northeast-1.amazonaws.com" + "url": "https://cloudtrail.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-northeast-1.amazonaws.com" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.me-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "me-south-1" + "Region": "us-iso-east-1" } }, { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.me-south-1.amazonaws.com" + "url": "https://cloudtrail.us-iso-west-1.c2s.ic.gov" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.me-south-1.api.aws" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": true, - "Region": "me-south-1" + "Region": "us-iso-west-1" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.me-south-1.amazonaws.com" + "url": "https://cloudtrail-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.sa-east-1.api.aws" - } - }, - "params": { "UseFIPS": true, - "UseDualStack": true, - "Region": "sa-east-1" + "Region": "us-iso-east-1" } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.sa-east-1.amazonaws.com" + "url": "https://cloudtrail.ap-northeast-3.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.sa-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.sa-east-1.amazonaws.com" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": false, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.ap-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-east-1" + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-east-1.amazonaws.com" + "url": "https://cloudtrail.us-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.ap-east-1.api.aws" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-east-1" + "Region": "us-east-1" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-east-1.amazonaws.com" + "url": "https://cloudtrail-fips.us-east-1.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { "UseFIPS": true, - "UseDualStack": true, - "Region": "cn-north-1" + "Region": "us-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.cn-north-1.amazonaws.com.cn" + "url": "https://cloudtrail.eu-west-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.cn-north-1.amazonaws.com.cn" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail-fips.us-gov-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-gov-west-1" + "Region": "eu-west-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-gov-west-1.amazonaws.com" + "url": "https://cloudtrail.eu-west-2.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-gov-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cloudtrail.us-gov-west-1.amazonaws.com" - } - }, - "params": { "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-west-1" + "Region": "eu-west-2" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-1.api.aws" + "url": "https://cloudtrail.eu-west-3.amazonaws.com" } }, - "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-southeast-1" + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-west-3" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-1.amazonaws.com" + "url": "https://cloudtrail.me-south-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-southeast-1" + "UseFIPS": false, + "Region": "me-south-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-1.api.aws" + "url": "https://cloudtrail.eu-north-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-southeast-1" + "Region": "eu-north-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-1.amazonaws.com" + "url": "https://cloudtrail.us-east-2.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "ap-southeast-1" + "UseFIPS": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-2.api.aws" + "url": "https://cloudtrail-fips.us-east-2.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-southeast-2" + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-2.amazonaws.com" + "url": "https://cloudtrail.sa-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-southeast-2" + "UseFIPS": false, + "Region": "sa-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-2.api.aws" + "url": "https://cloudtrail.ap-east-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-southeast-2" + "Region": "ap-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-2.amazonaws.com" + "url": "https://cloudtrail.eu-south-1.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "ap-southeast-2" + "UseFIPS": false, + "Region": "eu-south-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://cloudtrail.eu-central-1.amazonaws.com" + } }, "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-iso-east-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-central-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://cloudtrail.ap-southeast-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "us-iso-east-1" + "UseFIPS": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://cloudtrail.ap-southeast-2.amazonaws.com" + } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": true, - "Region": "us-iso-east-1" + "Region": "ap-southeast-2" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-iso-east-1.c2s.ic.gov" + "url": "https://cloudtrail.ap-southeast-3.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "us-iso-east-1" + "UseFIPS": false, + "Region": "ap-southeast-3" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-3.api.aws" + "url": "https://cloudtrail.ca-central-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-southeast-3" + "UseDualStack": false, + "UseFIPS": false, + "Region": "ca-central-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-3.amazonaws.com" + "url": "https://cloudtrail.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-southeast-3" + "UseFIPS": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-3.api.aws" + "url": "https://cloudtrail-fips.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-southeast-3" + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-3.amazonaws.com" + "url": "https://cloudtrail.us-west-2.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "ap-southeast-3" + "UseFIPS": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-4.api.aws" + "url": "https://cloudtrail-fips.us-west-2.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "UseDualStack": true, - "Region": "ap-southeast-4" + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.ap-southeast-4.amazonaws.com" + "url": "https://cloudtrail.af-south-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "ap-southeast-4" + "UseFIPS": false, + "Region": "af-south-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-4.api.aws" + "url": "https://cloudtrail.ap-south-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": true, - "Region": "ap-southeast-4" + "Region": "ap-south-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.ap-southeast-4.amazonaws.com" + "url": "https://cloudtrail.ap-northeast-1.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "ap-southeast-4" + "UseFIPS": false, + "Region": "ap-northeast-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-east-1.api.aws" + "url": "https://cloudtrail.ap-northeast-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-northeast-2" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-east-1.amazonaws.com" + "url": "https://cloudtrail-fips.us-east-1.api.aws" } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "UseDualStack": false, "Region": "us-east-1" } }, @@ -1586,113 +398,113 @@ } }, "params": { - "UseFIPS": false, "UseDualStack": true, + "UseFIPS": false, "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-east-1.amazonaws.com" + "url": "https://cloudtrail.us-gov-west-1.amazonaws.com" } }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1" + "UseFIPS": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-east-2.api.aws" + "url": "https://cloudtrail.us-gov-west-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-2" + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-east-2.amazonaws.com" + "url": "https://cloudtrail.us-gov-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "us-east-2" + "UseFIPS": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-east-2.api.aws" + "url": "https://cloudtrail.us-gov-east-1.amazonaws.com" } }, "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-east-2" + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-east-2.amazonaws.com" + "url": "https://cloudtrail-fips.us-gov-east-1.api.aws" } }, "params": { - "UseFIPS": false, - "UseDualStack": false, - "Region": "us-east-2" + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://cloudtrail.us-gov-east-1.api.aws" } }, "params": { - "UseFIPS": true, "UseDualStack": true, - "Region": "cn-northwest-1" + "UseFIPS": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://cloudtrail.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseFIPS": true, "UseDualStack": false, - "Region": "cn-northwest-1" + "UseFIPS": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cloudtrail.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://cloudtrail-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "cn-northwest-1" + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" } }, { @@ -1703,57 +515,61 @@ } }, "params": { - "UseFIPS": false, "UseDualStack": false, + "UseFIPS": false, "Region": "cn-northwest-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://cloudtrail.cn-north-1.amazonaws.com.cn" + } }, "params": { - "UseFIPS": true, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cloudtrail-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://cloudtrail-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "UseDualStack": false, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://cloudtrail-fips.cn-north-1.amazonaws.com.cn" + } }, "params": { - "UseFIPS": false, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": false, + "UseFIPS": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cloudtrail.us-isob-east-1.sc2s.sgov.gov" + "url": "https://cloudtrail.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "UseDualStack": false, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { @@ -1764,8 +580,8 @@ } }, "params": { - "UseFIPS": false, "UseDualStack": false, + "UseFIPS": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1776,8 +592,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseFIPS": true, "UseDualStack": false, + "UseFIPS": true, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1788,8 +604,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseFIPS": false, "UseDualStack": true, + "UseFIPS": false, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/codeartifact/2018-09-22/api-2.json b/models/apis/codeartifact/2018-09-22/api-2.json index 58612adef0b..2e1d1fc48f5 100644 --- a/models/apis/codeartifact/2018-09-22/api-2.json +++ b/models/apis/codeartifact/2018-09-22/api-2.json @@ -117,6 +117,23 @@ {"shape":"ValidationException"} ] }, + "DeletePackage":{ + "name":"DeletePackage", + "http":{ + "method":"DELETE", + "requestUri":"/v1/package" + }, + "input":{"shape":"DeletePackageRequest"}, + "output":{"shape":"DeletePackageResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] + }, "DeletePackageVersions":{ "name":"DeletePackageVersions", "http":{ @@ -885,6 +902,53 @@ "domain":{"shape":"DomainDescription"} } }, + "DeletePackageRequest":{ + "type":"structure", + "required":[ + "domain", + "repository", + "format", + "package" + ], + "members":{ + "domain":{ + "shape":"DomainName", + "location":"querystring", + "locationName":"domain" + }, + "domainOwner":{ + "shape":"AccountId", + "location":"querystring", + "locationName":"domain-owner" + }, + "repository":{ + "shape":"RepositoryName", + "location":"querystring", + "locationName":"repository" + }, + "format":{ + "shape":"PackageFormat", + "location":"querystring", + "locationName":"format" + }, + "namespace":{ + "shape":"PackageNamespace", + "location":"querystring", + "locationName":"namespace" + }, + "package":{ + "shape":"PackageName", + "location":"querystring", + "locationName":"package" + } + } + }, + "DeletePackageResult":{ + "type":"structure", + "members":{ + "deletedPackage":{"shape":"PackageSummary"} + } + }, "DeletePackageVersionsRequest":{ "type":"structure", "required":[ diff --git a/models/apis/codeartifact/2018-09-22/docs-2.json b/models/apis/codeartifact/2018-09-22/docs-2.json index 0aa3558778d..9042ea7f19f 100644 --- a/models/apis/codeartifact/2018-09-22/docs-2.json +++ b/models/apis/codeartifact/2018-09-22/docs-2.json @@ -8,7 +8,8 @@ "CreateRepository": "

Creates a repository.

", "DeleteDomain": "

Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.

", "DeleteDomainPermissionsPolicy": "

Deletes the resource policy set on a domain.

", - "DeletePackageVersions": "

Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListPackageVersions), but you can restore them using UpdatePackageVersionsStatus.

", + "DeletePackage": "

Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the DeletePackageVersions API.

", + "DeletePackageVersions": "

Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions), but you can restore them using UpdatePackageVersionsStatus.

", "DeleteRepository": "

Deletes a repository.

", "DeleteRepositoryPermissionsPolicy": "

Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate.

Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, Amazon Web Services users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.

", "DescribeDomain": "

Returns a DomainDescription object that contains information about the requested domain.

", @@ -26,7 +27,7 @@ "ListDomains": "

Returns a list of DomainSummary objects for all domains owned by the Amazon Web Services account that makes this call. Each returned DomainSummary object contains information about a domain.

", "ListPackageVersionAssets": "

Returns a list of AssetSummary objects for assets in a package version.

", "ListPackageVersionDependencies": "

Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.

", - "ListPackageVersions": "

Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.

", + "ListPackageVersions": "

Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling list-package-versions with no --status parameter.

", "ListPackages": "

Returns a list of PackageSummary objects for packages in a repository that match the request parameters.

", "ListRepositories": "

Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified Amazon Web Services account and that matches the input parameters.

", "ListRepositoriesInDomain": "

Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters.

", @@ -53,6 +54,7 @@ "CreateRepositoryRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", "DeleteDomainPermissionsPolicyRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", "DeleteDomainRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", + "DeletePackageRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", "DeletePackageVersionsRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", "DeleteRepositoryPermissionsPolicyRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", "DeleteRepositoryRequest$domainOwner": "

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

", @@ -228,6 +230,16 @@ "refs": { } }, + "DeletePackageRequest": { + "base": null, + "refs": { + } + }, + "DeletePackageResult": { + "base": null, + "refs": { + } + }, "DeletePackageVersionsRequest": { "base": null, "refs": { @@ -350,6 +362,7 @@ "CreateRepositoryRequest$domain": "

The name of the domain that contains the created repository.

", "DeleteDomainPermissionsPolicyRequest$domain": "

The name of the domain associated with the resource policy to be deleted.

", "DeleteDomainRequest$domain": "

The name of the domain to delete.

", + "DeletePackageRequest$domain": "

The name of the domain that contains the package to delete.

", "DeletePackageVersionsRequest$domain": "

The name of the domain that contains the package to delete.

", "DeleteRepositoryPermissionsPolicyRequest$domain": "

The name of the domain that contains the repository associated with the resource policy to be deleted.

", "DeleteRepositoryRequest$domain": "

The name of the domain that contains the repository to delete.

", @@ -666,6 +679,7 @@ "base": null, "refs": { "CopyPackageVersionsRequest$format": "

The format of the package versions to be copied.

", + "DeletePackageRequest$format": "

The format of the requested package to delete.

", "DeletePackageVersionsRequest$format": "

The format of the package versions to delete.

", "DescribePackageRequest$format": "

A format that specifies the type of the requested package.

", "DescribePackageVersionRequest$format": "

A format that specifies the type of the requested package version.

", @@ -693,6 +707,7 @@ "base": null, "refs": { "CopyPackageVersionsRequest$package": "

The name of the package that contains the versions to be copied.

", + "DeletePackageRequest$package": "

The name of the package to delete.

", "DeletePackageVersionsRequest$package": "

The name of the package with the versions to delete.

", "DescribePackageRequest$package": "

The name of the requested package.

", "DescribePackageVersionRequest$package": "

The name of the requested package version.

", @@ -719,6 +734,7 @@ "base": null, "refs": { "CopyPackageVersionsRequest$namespace": "

The namespace of the package versions to be copied. The package version component that specifies its namespace depends on its type. For example:

", + "DeletePackageRequest$namespace": "

The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:

", "DeletePackageVersionsRequest$namespace": "

The namespace of the package versions to be deleted. The package version component that specifies its namespace depends on its type. For example:

", "DescribePackageRequest$namespace": "

The namespace of the requested package. The package component that specifies its namespace depends on its type. For example:

", "DescribePackageVersionRequest$namespace": "

The namespace of the requested package version. The package version component that specifies its namespace depends on its type. For example:

", @@ -732,7 +748,7 @@ "ListPackageVersionDependenciesResult$namespace": "

The namespace of the package version that contains the returned dependencies. The package version component that specifies its namespace depends on its type. For example:

", "ListPackageVersionsRequest$namespace": "

The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:

", "ListPackageVersionsResult$namespace": "

The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:

", - "ListPackagesRequest$namespace": "

The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

Each package format uses namespace as follows:

", + "ListPackagesRequest$namespace": "

The namespace used to filter requested packages. Only packages with the provided namespace will be returned. The package component that specifies its namespace depends on its type. For example:

", "PackageDependency$namespace": "

The namespace of the package that this package depends on. The package component that specifies its namespace depends on its type. For example:

", "PackageDescription$namespace": "

The namespace of the package. The package component that specifies its namespace depends on its type. For example:

", "PackageSummary$namespace": "

The namespace of the package. The package component that specifies its namespace depends on its type. For example:

", @@ -757,8 +773,9 @@ } }, "PackageSummary": { - "base": "

Details about a package, including its format, namespace, and name. The ListPackages operation returns a list of PackageSummary objects.

", + "base": "

Details about a package, including its format, namespace, and name.

", "refs": { + "DeletePackageResult$deletedPackage": null, "PackageSummaryList$member": null } }, @@ -988,6 +1005,7 @@ "CopyPackageVersionsRequest$sourceRepository": "

The name of the repository that contains the package versions to be copied.

", "CopyPackageVersionsRequest$destinationRepository": "

The name of the repository into which package versions are copied.

", "CreateRepositoryRequest$repository": "

The name of the repository to create.

", + "DeletePackageRequest$repository": "

The name of the repository that contains the package to delete.

", "DeletePackageVersionsRequest$repository": "

The name of the repository that contains the package versions to delete.

", "DeleteRepositoryPermissionsPolicyRequest$repository": "

The name of the repository that is associated with the resource policy to be deleted

", "DeleteRepositoryRequest$repository": "

The name of the repository to delete.

", @@ -1077,7 +1095,7 @@ "InternalServerException$message": null, "LicenseInfo$name": "

Name of the license.

", "LicenseInfo$url": "

The URL for license data.

", - "PackageDependency$dependencyType": "

The type of a package dependency. The possible values depend on the package type.

", + "PackageDependency$dependencyType": "

The type of a package dependency. The possible values depend on the package type. Example types are compile, runtime, and test for Maven packages, and dev, prod, and optional for npm packages.

", "PackageDependency$versionRequirement": "

The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: 1.2.3, ^2.3.4, or 4.x.

", "PackageVersionDescription$summary": "

A summary of the package version. The summary is extracted from the package. The information in and detail level of the summary depends on the package version's format.

", "PackageVersionDescription$homePage": "

The homepage associated with the package.

", diff --git a/models/apis/connectparticipant/2018-09-07/endpoint-rule-set-1.json b/models/apis/connectparticipant/2018-09-07/endpoint-rule-set-1.json index e9ba24201b6..239167e963f 100644 --- a/models/apis/connectparticipant/2018-09-07/endpoint-rule-set-1.json +++ b/models/apis/connectparticipant/2018-09-07/endpoint-rule-set-1.json @@ -165,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -217,12 +223,43 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://participant.connect.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -269,12 +306,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -287,12 +330,18 @@ }, { "conditions": [], - "endpoint": { - "url": "https://participant.connect.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://participant.connect.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/connectparticipant/2018-09-07/endpoint-tests-1.json b/models/apis/connectparticipant/2018-09-07/endpoint-tests-1.json index d1f959498b7..b6732ebed46 100644 --- a/models/apis/connectparticipant/2018-09-07/endpoint-tests-1.json +++ b/models/apis/connectparticipant/2018-09-07/endpoint-tests-1.json @@ -1,627 +1,237 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.ap-south-1.api.aws" + "url": "https://participant.connect.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.ca-central-1.api.aws" + "url": "https://participant.connect.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ca-central-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect.ca-central-1.api.aws" + "url": "https://participant.connect-fips.us-gov-east-1.api.aws" } }, "params": { + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-central-1" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.eu-central-1.api.aws" + "url": "https://participant.connect.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.eu-central-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-central-1" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect.eu-central-1.api.aws" + "url": "https://participant.connect.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.us-west-2.api.aws" - } - }, - "params": { "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.us-west-2.api.aws" + "url": "https://participant.connect.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.us-west-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.af-south-1.amazonaws.com" + "url": "https://participant.connect-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.af-south-1.api.aws" - } - }, - "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "af-south-1" + "Region": "us-east-1" } }, { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.eu-west-2.api.aws" + "url": "https://participant.connect-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.eu-west-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-2" + "Region": "us-east-1" } }, { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect.eu-west-2.amazonaws.com" + "url": "https://participant.connect.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-northeast-2.api.aws" - } - }, - "params": { "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-2" + "Region": "us-east-1" } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.ap-northeast-2.api.aws" + "url": "https://participant.connect.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-northeast-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "us-east-1" } }, { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.ap-northeast-1.api.aws" + "url": "https://participant.connect-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-1" + "Region": "us-iso-east-1" } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.ap-northeast-1.api.aws" + "url": "https://participant.connect.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-northeast-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.us-gov-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.us-gov-west-1.amazonaws.com" + "url": "https://participant.connect-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.us-gov-west-1.api.aws" - } - }, - "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-west-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.us-gov-west-1.amazonaws.com" + "url": "https://participant.connect-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-southeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-southeast-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-southeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-southeast-1" + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://participant.connect.ap-southeast-1.amazonaws.com" + "url": "https://participant.connect.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.ap-southeast-2.api.aws" - } - }, - "params": { "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-2" + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.ap-southeast-2.amazonaws.com" + "url": "https://participant.connect.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-southeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.ap-southeast-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-2" + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect-fips.us-east-1.api.aws" + "url": "https://participant.connect-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect-fips.us-east-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-1" + "Region": "us-isob-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://participant.connect.us-east-1.api.aws" + "url": "https://participant.connect.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://participant.connect.us-east-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-1" + "Region": "us-isob-east-1" } }, { @@ -632,8 +242,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -644,8 +254,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -656,8 +266,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 2d62c13d026..60139ce2867 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -138,6 +138,15 @@ "input":{"shape":"AssignPrivateIpAddressesRequest"}, "output":{"shape":"AssignPrivateIpAddressesResult"} }, + "AssignPrivateNatGatewayAddress":{ + "name":"AssignPrivateNatGatewayAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssignPrivateNatGatewayAddressRequest"}, + "output":{"shape":"AssignPrivateNatGatewayAddressResult"} + }, "AssociateAddress":{ "name":"AssociateAddress", "http":{ @@ -200,6 +209,15 @@ "input":{"shape":"AssociateIpamResourceDiscoveryRequest"}, "output":{"shape":"AssociateIpamResourceDiscoveryResult"} }, + "AssociateNatGatewayAddress":{ + "name":"AssociateNatGatewayAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateNatGatewayAddressRequest"}, + "output":{"shape":"AssociateNatGatewayAddressResult"} + }, "AssociateRouteTable":{ "name":"AssociateRouteTable", "http":{ @@ -3408,6 +3426,15 @@ "input":{"shape":"DisassociateIpamResourceDiscoveryRequest"}, "output":{"shape":"DisassociateIpamResourceDiscoveryResult"} }, + "DisassociateNatGatewayAddress":{ + "name":"DisassociateNatGatewayAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateNatGatewayAddressRequest"}, + "output":{"shape":"DisassociateNatGatewayAddressResult"} + }, "DisassociateRouteTable":{ "name":"DisassociateRouteTable", "http":{ @@ -5185,6 +5212,15 @@ }, "input":{"shape":"UnassignPrivateIpAddressesRequest"} }, + "UnassignPrivateNatGatewayAddress":{ + "name":"UnassignPrivateNatGatewayAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnassignPrivateNatGatewayAddressRequest"}, + "output":{"shape":"UnassignPrivateNatGatewayAddressResult"} + }, "UnmonitorInstances":{ "name":"UnmonitorInstances", "http":{ @@ -6470,6 +6506,32 @@ } } }, + "AssignPrivateNatGatewayAddressRequest":{ + "type":"structure", + "required":["NatGatewayId"], + "members":{ + "NatGatewayId":{"shape":"NatGatewayId"}, + "PrivateIpAddresses":{ + "shape":"IpList", + "locationName":"PrivateIpAddress" + }, + "PrivateIpAddressCount":{"shape":"PrivateIpAddressCount"}, + "DryRun":{"shape":"Boolean"} + } + }, + "AssignPrivateNatGatewayAddressResult":{ + "type":"structure", + "members":{ + "NatGatewayId":{ + "shape":"NatGatewayId", + "locationName":"natGatewayId" + }, + "NatGatewayAddresses":{ + "shape":"NatGatewayAddressList", + "locationName":"natGatewayAddressSet" + } + } + }, "AssignedPrivateIpAddress":{ "type":"structure", "members":{ @@ -6658,6 +6720,38 @@ } } }, + "AssociateNatGatewayAddressRequest":{ + "type":"structure", + "required":[ + "NatGatewayId", + "AllocationIds" + ], + "members":{ + "NatGatewayId":{"shape":"NatGatewayId"}, + "AllocationIds":{ + "shape":"AllocationIdList", + "locationName":"AllocationId" + }, + "PrivateIpAddresses":{ + "shape":"IpList", + "locationName":"PrivateIpAddress" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "AssociateNatGatewayAddressResult":{ + "type":"structure", + "members":{ + "NatGatewayId":{ + "shape":"NatGatewayId", + "locationName":"natGatewayId" + }, + "NatGatewayAddresses":{ + "shape":"NatGatewayAddressList", + "locationName":"natGatewayAddressSet" + } + } + }, "AssociateRouteTableRequest":{ "type":"structure", "required":["RouteTableId"], @@ -9415,7 +9509,7 @@ "locationName":"kmsKeyId" }, "PresignedUrl":{ - "shape":"String", + "shape":"CopySnapshotRequestPSU", "locationName":"presignedUrl" }, "SourceRegion":{"shape":"String"}, @@ -9430,6 +9524,10 @@ } } }, + "CopySnapshotRequestPSU":{ + "type":"string", + "sensitive":true + }, "CopySnapshotResult":{ "type":"structure", "members":{ @@ -10527,7 +10625,16 @@ "locationName":"TagSpecification" }, "ConnectivityType":{"shape":"ConnectivityType"}, - "PrivateIpAddress":{"shape":"String"} + "PrivateIpAddress":{"shape":"String"}, + "SecondaryAllocationIds":{ + "shape":"AllocationIdList", + "locationName":"SecondaryAllocationId" + }, + "SecondaryPrivateIpAddresses":{ + "shape":"IpList", + "locationName":"SecondaryPrivateIpAddress" + }, + "SecondaryPrivateIpAddressCount":{"shape":"PrivateIpAddressCount"} } }, "CreateNatGatewayResult":{ @@ -19220,6 +19327,35 @@ } } }, + "DisassociateNatGatewayAddressRequest":{ + "type":"structure", + "required":[ + "NatGatewayId", + "AssociationIds" + ], + "members":{ + "NatGatewayId":{"shape":"NatGatewayId"}, + "AssociationIds":{ + "shape":"EipAssociationIdList", + "locationName":"AssociationId" + }, + "MaxDrainDurationSeconds":{"shape":"DrainSeconds"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DisassociateNatGatewayAddressResult":{ + "type":"structure", + "members":{ + "NatGatewayId":{ + "shape":"NatGatewayId", + "locationName":"natGatewayId" + }, + "NatGatewayAddresses":{ + "shape":"NatGatewayAddressList", + "locationName":"natGatewayAddressSet" + } + } + }, "DisassociateRouteTableRequest":{ "type":"structure", "required":["AssociationId"], @@ -19557,6 +19693,11 @@ "max":99.999, "min":0.001 }, + "DrainSeconds":{ + "type":"integer", + "max":4000, + "min":1 + }, "DynamicRoutingValue":{ "type":"string", "enum":[ @@ -19754,6 +19895,13 @@ "locationName":"item" } }, + "EipAssociationIdList":{ + "type":"list", + "member":{ + "shape":"ElasticIpAssociationId", + "locationName":"item" + } + }, "ElasticGpuAssociation":{ "type":"structure", "members":{ @@ -26928,6 +27076,13 @@ "ipv6" ] }, + "IpList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, "IpPermission":{ "type":"structure", "members":{ @@ -31836,6 +31991,22 @@ "PublicIp":{ "shape":"String", "locationName":"publicIp" + }, + "AssociationId":{ + "shape":"String", + "locationName":"associationId" + }, + "IsPrimary":{ + "shape":"Boolean", + "locationName":"isPrimary" + }, + "FailureMessage":{ + "shape":"String", + "locationName":"failureMessage" + }, + "Status":{ + "shape":"NatGatewayAddressStatus", + "locationName":"status" } } }, @@ -31846,6 +32017,17 @@ "locationName":"item" } }, + "NatGatewayAddressStatus":{ + "type":"string", + "enum":[ + "assigning", + "unassigning", + "associating", + "disassociating", + "succeeded", + "failed" + ] + }, "NatGatewayId":{"type":"string"}, "NatGatewayIdStringList":{ "type":"list", @@ -33881,6 +34063,11 @@ "locationName":"PrivateIpAddressConfigSet" } }, + "PrivateIpAddressCount":{ + "type":"integer", + "max":7, + "min":1 + }, "PrivateIpAddressSpecification":{ "type":"structure", "members":{ @@ -41766,6 +41953,35 @@ } } }, + "UnassignPrivateNatGatewayAddressRequest":{ + "type":"structure", + "required":[ + "NatGatewayId", + "PrivateIpAddresses" + ], + "members":{ + "NatGatewayId":{"shape":"NatGatewayId"}, + "PrivateIpAddresses":{ + "shape":"IpList", + "locationName":"PrivateIpAddress" + }, + "MaxDrainDurationSeconds":{"shape":"DrainSeconds"}, + "DryRun":{"shape":"Boolean"} + } + }, + "UnassignPrivateNatGatewayAddressResult":{ + "type":"structure", + "members":{ + "NatGatewayId":{ + "shape":"NatGatewayId", + "locationName":"natGatewayId" + }, + "NatGatewayAddresses":{ + "shape":"NatGatewayAddressList", + "locationName":"natGatewayAddressSet" + } + } + }, "UnlimitedSupportedInstanceFamily":{ "type":"string", "enum":[ diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 6486279bf2c..84a1d322131 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -16,6 +16,7 @@ "ApplySecurityGroupsToClientVpnTargetNetwork": "

Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.

", "AssignIpv6Addresses": "

Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

You must specify either the IPv6 addresses or the IPv6 address count in the request.

You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.

", "AssignPrivateIpAddresses": "

Assigns one or more secondary private IP addresses to the specified network interface.

You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.

Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that the remapping is complete.

You must specify either the IP addresses or the IP address count in the request.

You can optionally use Prefix Delegation on the network interface. You must specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.

", + "AssignPrivateNatGatewayAddress": "

Assigns one or more private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon Virtual Private Cloud User Guide.

", "AssociateAddress": "

Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

[VPC in an EC2-Classic account] If you don't specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.

[Subnets in Wavelength Zones] You can associate an IP address from the telecommunication carrier to the instance or network interface.

You cannot associate an Elastic IP address with an interface in a different network border group.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

", "AssociateClientVpnTargetNetwork": "

Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that's in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that's associated with it.

", "AssociateDhcpOptions": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.

", @@ -23,6 +24,7 @@ "AssociateIamInstanceProfile": "

Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

", "AssociateInstanceEventWindow": "

Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.

For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

", "AssociateIpamResourceDiscovery": "

Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.

", + "AssociateNatGatewayAddress": "

Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, see Work with NAT gateways in the Amazon Virtual Private Cloud User Guide.

By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. For more information, see Elastic IP address quotas in the Amazon Virtual Private Cloud User Guide.

", "AssociateRouteTable": "

Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.

For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.

", "AssociateSubnetCidrBlock": "

Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.

", "AssociateTransitGatewayMulticastDomain": "

Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.

The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.

", @@ -383,6 +385,7 @@ "DisassociateIamInstanceProfile": "

Disassociates an IAM instance profile from a running or stopped instance.

Use DescribeIamInstanceProfileAssociations to get the association ID.

", "DisassociateInstanceEventWindow": "

Disassociates one or more targets from an event window.

For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

", "DisassociateIpamResourceDiscovery": "

Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM Service to manage and monitor resources that belong to the owning account.

", + "DisassociateNatGatewayAddress": "

Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. You cannot disassociate your primary EIP. For more information, see Edit secondary IP address associations in the Amazon Virtual Private Cloud User Guide.

While disassociating is in progress, you cannot associate/disassociate additional EIPs while the connections are being drained. You are, however, allowed to delete the NAT gateway.

An EIP will only be released at the end of MaxDrainDurationSeconds. The EIPs stay associated and support the existing connections but do not support any new connections (new connections are distributed across the remaining associated EIPs). As the existing connections drain out, the EIPs (and the corresponding private IPs mapped to them) get released.

", "DisassociateRouteTable": "

Disassociates a subnet or gateway from a route table.

After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.

", "DisassociateSubnetCidrBlock": "

Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

", "DisassociateTransitGatewayMulticastDomain": "

Disassociates the specified subnets from the transit gateway multicast domain.

", @@ -583,6 +586,7 @@ "TerminateInstances": "

Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:

For example, say you have the following instances:

If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:

Terminated instances remain visible after termination (for approximately one hour).

By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.

For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.

", "UnassignIpv6Addresses": "

Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

", "UnassignPrivateIpAddresses": "

Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

", + "UnassignPrivateNatGatewayAddress": "

Unassigns secondary private NAT gateway IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see Edit secondary IP address associations in the Amazon Virtual Private Cloud User Guide.

While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.

A private IP address will only be released at the end of MaxDrainDurationSeconds. The private IP addresses stay associated and support the existing connections but do not support any new connections (new connections are distributed across the remaining assigned private IP address). After the existing connections drain out, the private IP addresses get released.

", "UnmonitorInstances": "

Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.

", "UpdateSecurityGroupRuleDescriptionsEgress": "

[VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

", "UpdateSecurityGroupRuleDescriptionsIngress": "

Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

", @@ -998,6 +1002,8 @@ "AllocationIdList": { "base": null, "refs": { + "AssociateNatGatewayAddressRequest$AllocationIds": "

The allocation IDs of EIPs that you want to associate with your NAT gateway.

", + "CreateNatGatewayRequest$SecondaryAllocationIds": "

Secondary EIP allocation IDs. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide.

", "DescribeAddressTransfersRequest$AllocationIds": "

The allocation IDs of Elastic IP addresses.

", "DescribeAddressesRequest$AllocationIds": "

[EC2-VPC] Information about the allocation IDs.

" } @@ -1240,6 +1246,16 @@ "refs": { } }, + "AssignPrivateNatGatewayAddressRequest": { + "base": null, + "refs": { + } + }, + "AssignPrivateNatGatewayAddressResult": { + "base": null, + "refs": { + } + }, "AssignedPrivateIpAddress": { "base": "

Describes the private IP addresses assigned to a network interface.

", "refs": { @@ -1317,6 +1333,16 @@ "refs": { } }, + "AssociateNatGatewayAddressRequest": { + "base": null, + "refs": { + } + }, + "AssociateNatGatewayAddressResult": { + "base": null, + "refs": { + } + }, "AssociateRouteTableRequest": { "base": null, "refs": { @@ -1828,6 +1854,7 @@ "AnalysisAclRule$Egress": "

Indicates whether the rule is an outbound rule.

", "ApplySecurityGroupsToClientVpnTargetNetworkRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssignPrivateIpAddressesRequest$AllowReassignment": "

Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

", + "AssignPrivateNatGatewayAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateAddressRequest$AllowReassociation": "

[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.

", "AssociateAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateClientVpnTargetNetworkRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1835,6 +1862,7 @@ "AssociateEnclaveCertificateIamRoleRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateInstanceEventWindowRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateIpamResourceDiscoveryRequest$DryRun": "

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "AssociateNatGatewayAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateTransitGatewayMulticastDomainRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "AssociateTransitGatewayPolicyTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -2257,6 +2285,7 @@ "DisassociateEnclaveCertificateIamRoleResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "DisassociateInstanceEventWindowRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DisassociateIpamResourceDiscoveryRequest$DryRun": "

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "DisassociateNatGatewayAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DisassociateRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DisassociateTransitGatewayMulticastDomainRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DisassociateTransitGatewayPolicyTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -2506,6 +2535,7 @@ "MonitorInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "MoveAddressToVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "MoveByoipCidrToIpamRequest$DryRun": "

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "NatGatewayAddress$IsPrimary": "

Defines if the IP address is the primary address.

", "NetworkAcl$IsDefault": "

Indicates whether this is the default network ACL for the VPC.

", "NetworkAclEntry$Egress": "

Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

", "NetworkInsightsAnalysis$NetworkPathFound": "

Indicates whether the destination is reachable from the source.

", @@ -2660,6 +2690,7 @@ "TransitGatewayPrefixListReference$Blackhole": "

Indicates whether traffic that matches this route is dropped.

", "TransitGatewayRouteTable$DefaultAssociationRouteTable": "

Indicates whether this is the default association route table for the transit gateway.

", "TransitGatewayRouteTable$DefaultPropagationRouteTable": "

Indicates whether this is the default propagation route table for the transit gateway.

", + "UnassignPrivateNatGatewayAddressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "UnmonitorInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "UpdateSecurityGroupRuleDescriptionsEgressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "UpdateSecurityGroupRuleDescriptionsEgressResult$Return": "

Returns true if the request succeeds; otherwise, returns an error.

", @@ -3704,6 +3735,12 @@ "refs": { } }, + "CopySnapshotRequestPSU": { + "base": null, + "refs": { + "CopySnapshotRequest$PresignedUrl": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a pre-signed URL. This parameter is optional for unencrypted snapshots. For more information, see Query requests.

The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using Amazon Web Services Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

" + } + }, "CopySnapshotResult": { "base": null, "refs": { @@ -7825,6 +7862,16 @@ "refs": { } }, + "DisassociateNatGatewayAddressRequest": { + "base": null, + "refs": { + } + }, + "DisassociateNatGatewayAddressResult": { + "base": null, + "refs": { + } + }, "DisassociateRouteTableRequest": { "base": null, "refs": { @@ -8076,6 +8123,13 @@ "ReservationFleetInstanceSpecification$Weight": "

The number of capacity units provided by the specified instance type. This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.

" } }, + "DrainSeconds": { + "base": null, + "refs": { + "DisassociateNatGatewayAddressRequest$MaxDrainDurationSeconds": "

The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds.

", + "UnassignPrivateNatGatewayAddressRequest$MaxDrainDurationSeconds": "

The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds.

" + } + }, "DynamicRoutingValue": { "base": null, "refs": { @@ -8172,6 +8226,12 @@ "DescribeEgressOnlyInternetGatewaysResult$EgressOnlyInternetGateways": "

Information about the egress-only internet gateways.

" } }, + "EipAssociationIdList": { + "base": null, + "refs": { + "DisassociateNatGatewayAddressRequest$AssociationIds": "

The association IDs of EIPs that have been associated with the NAT gateway.

" + } + }, "ElasticGpuAssociation": { "base": "

Describes the association between an instance and an Elastic Graphics accelerator.

", "refs": { @@ -8291,7 +8351,8 @@ "ElasticIpAssociationId": { "base": null, "refs": { - "DisassociateAddressRequest$AssociationId": "

[EC2-VPC] The association ID. Required for EC2-VPC.

" + "DisassociateAddressRequest$AssociationId": "

[EC2-VPC] The association ID. Required for EC2-VPC.

", + "EipAssociationIdList$member": null } }, "EnaSrdSpecification": { @@ -11710,6 +11771,15 @@ "VpcEndpointConnection$IpAddressType": "

The IP address type for the endpoint.

" } }, + "IpList": { + "base": null, + "refs": { + "AssignPrivateNatGatewayAddressRequest$PrivateIpAddresses": "

The private IPv4 addresses you want to assign to the private NAT gateway.

", + "AssociateNatGatewayAddressRequest$PrivateIpAddresses": "

The private IPv4 addresses that you want to assign to the NAT gateway.

", + "CreateNatGatewayRequest$SecondaryPrivateIpAddresses": "

Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide.

", + "UnassignPrivateNatGatewayAddressRequest$PrivateIpAddresses": "

The private IPv4 addresses you want to unassign.

" + } + }, "IpPermission": { "base": "

Describes a set of permissions for a security group rule.

", "refs": { @@ -14327,16 +14397,34 @@ "NatGatewayAddressList": { "base": null, "refs": { - "NatGateway$NatGatewayAddresses": "

Information about the IP addresses and network interface associated with the NAT gateway.

" + "AssignPrivateNatGatewayAddressResult$NatGatewayAddresses": "

NAT gateway IP addresses.

", + "AssociateNatGatewayAddressResult$NatGatewayAddresses": "

The IP addresses.

", + "DisassociateNatGatewayAddressResult$NatGatewayAddresses": "

Information about the NAT gateway IP addresses.

", + "NatGateway$NatGatewayAddresses": "

Information about the IP addresses and network interface associated with the NAT gateway.

", + "UnassignPrivateNatGatewayAddressResult$NatGatewayAddresses": "

Information about the NAT gateway IP addresses.

" + } + }, + "NatGatewayAddressStatus": { + "base": null, + "refs": { + "NatGatewayAddress$Status": "

The address status.

" } }, "NatGatewayId": { "base": null, "refs": { + "AssignPrivateNatGatewayAddressRequest$NatGatewayId": "

The NAT gateway ID.

", + "AssignPrivateNatGatewayAddressResult$NatGatewayId": "

The NAT gateway ID.

", + "AssociateNatGatewayAddressRequest$NatGatewayId": "

The NAT gateway ID.

", + "AssociateNatGatewayAddressResult$NatGatewayId": "

The NAT gateway ID.

", "CreateRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", "DeleteNatGatewayRequest$NatGatewayId": "

The ID of the NAT gateway.

", + "DisassociateNatGatewayAddressRequest$NatGatewayId": "

The NAT gateway ID.

", + "DisassociateNatGatewayAddressResult$NatGatewayId": "

The NAT gateway ID.

", "NatGatewayIdStringList$member": null, - "ReplaceRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

" + "ReplaceRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", + "UnassignPrivateNatGatewayAddressRequest$NatGatewayId": "

The NAT gateway ID.

", + "UnassignPrivateNatGatewayAddressResult$NatGatewayId": "

The NAT gateway ID.

" } }, "NatGatewayIdStringList": { @@ -15609,6 +15697,13 @@ "ScheduledInstancesNetworkInterface$PrivateIpAddressConfigs": "

The private IPv4 addresses.

" } }, + "PrivateIpAddressCount": { + "base": null, + "refs": { + "AssignPrivateNatGatewayAddressRequest$PrivateIpAddressCount": "

The number of private IP addresses to assign to the NAT gateway. You can't specify this parameter when also specifying private IP addresses.

", + "CreateNatGatewayRequest$SecondaryPrivateIpAddressCount": "

[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide.

" + } + }, "PrivateIpAddressSpecification": { "base": "

Describes a secondary private IPv4 address for a network interface.

", "refs": { @@ -18063,7 +18158,6 @@ "CopySnapshotRequest$Description": "

A description for the EBS snapshot.

", "CopySnapshotRequest$DestinationOutpostArn": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. Only specify this parameter when copying a snapshot from an Amazon Web Services Region to an Outpost. The snapshot must be in the Region for the destination Outpost. You cannot copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.

For more information, see Copy snapshots from an Amazon Web Services Region to an Outpost in the Amazon Elastic Compute Cloud User Guide.

", "CopySnapshotRequest$DestinationRegion": "

The destination Region to use in the PresignedUrl parameter of a snapshot copy operation. This parameter is only valid for specifying the destination Region in a PresignedUrl parameter, where it is required.

The snapshot copy is sent to the regional endpoint that you sent the HTTP request to (for example, ec2.us-east-1.amazonaws.com). With the CLI, this is specified using the --region parameter or the default Region in your Amazon Web Services configuration file.

", - "CopySnapshotRequest$PresignedUrl": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a pre-signed URL. This parameter is optional for unencrypted snapshots. For more information, see Query requests.

The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using Amazon Web Services Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

", "CopySnapshotRequest$SourceRegion": "

The ID of the Region that contains the snapshot to be copied.

", "CopySnapshotRequest$SourceSnapshotId": "

The ID of the EBS snapshot to copy.

", "CopySnapshotResult$SnapshotId": "

The ID of the new snapshot.

", @@ -18859,6 +18953,7 @@ "InternetGateway$InternetGatewayId": "

The ID of the internet gateway.

", "InternetGateway$OwnerId": "

The ID of the Amazon Web Services account that owns the internet gateway.

", "InternetGatewayAttachment$VpcId": "

The ID of the VPC.

", + "IpList$member": null, "IpPermission$IpProtocol": "

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

", "IpPrefixList$member": null, "IpRange$CidrIp": "

The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.

", @@ -19112,6 +19207,8 @@ "NatGatewayAddress$NetworkInterfaceId": "

The ID of the network interface associated with the NAT gateway.

", "NatGatewayAddress$PrivateIp": "

The private IP address associated with the NAT gateway.

", "NatGatewayAddress$PublicIp": "

[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.

", + "NatGatewayAddress$AssociationId": "

[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.

", + "NatGatewayAddress$FailureMessage": "

The address failure message.

", "NetworkAcl$NetworkAclId": "

The ID of the network ACL.

", "NetworkAcl$VpcId": "

The ID of the VPC for the network ACL.

", "NetworkAcl$OwnerId": "

The ID of the Amazon Web Services account that owns the network ACL.

", @@ -19917,7 +20014,7 @@ "AssociateRouteTableRequest$SubnetId": "

The ID of the subnet.

", "AssociateSubnetCidrBlockRequest$SubnetId": "

The ID of your subnet.

", "CreateClientVpnRouteRequest$TargetVpcSubnetId": "

The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.

Alternatively, if you're adding a route for the local network, specify local.

", - "CreateNatGatewayRequest$SubnetId": "

The subnet in which to create the NAT gateway.

", + "CreateNatGatewayRequest$SubnetId": "

The ID of the subnet in which to create the NAT gateway.

", "CreateNetworkInterfaceRequest$SubnetId": "

The ID of the subnet to associate with the network interface.

", "CreateSubnetCidrReservationRequest$SubnetId": "

The ID of the subnet.

", "CreateVerifiedAccessEndpointSubnetIdList$member": null, @@ -21495,6 +21592,16 @@ "refs": { } }, + "UnassignPrivateNatGatewayAddressRequest": { + "base": null, + "refs": { + } + }, + "UnassignPrivateNatGatewayAddressResult": { + "base": null, + "refs": { + } + }, "UnlimitedSupportedInstanceFamily": { "base": null, "refs": { diff --git a/models/apis/ec2/2016-11-15/endpoint-tests-1.json b/models/apis/ec2/2016-11-15/endpoint-tests-1.json index 03e3eda0213..1bbbe994a99 100644 --- a/models/apis/ec2/2016-11-15/endpoint-tests-1.json +++ b/models/apis/ec2/2016-11-15/endpoint-tests-1.json @@ -1,263 +1,263 @@ { "testCases": [ { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-isob-east-1.sc2s.sgov.gov" + "url": "https://ec2.af-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-isob-east-1" + "Region": "af-south-1", + "UseFIPS": false } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://ec2.ap-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-isob-east-1" + "Region": "ap-east-1", + "UseFIPS": false } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-gov-west-1.amazonaws.com" + "url": "https://ec2.ap-northeast-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-west-1" + "Region": "ap-northeast-1", + "UseFIPS": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-gov-east-1.amazonaws.com" + "url": "https://ec2.ap-northeast-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "ap-northeast-2", + "UseFIPS": false } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-gov-east-1.api.aws" + "url": "https://ec2.ap-northeast-3.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": false, + "Region": "ap-northeast-3", + "UseFIPS": false } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-gov-east-1.amazonaws.com" + "url": "https://ec2.ap-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-east-1" + "Region": "ap-south-1", + "UseFIPS": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.us-gov-east-1.api.aws" + "url": "https://ec2.ap-south-1.api.aws" } }, "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "ap-south-1", + "UseFIPS": false } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-west-2.amazonaws.com" + "url": "https://ec2.ap-southeast-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" + "Region": "ap-southeast-1", + "UseFIPS": false } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-west-2.amazonaws.com" + "url": "https://ec2.ap-southeast-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" + "Region": "ap-southeast-2", + "UseFIPS": false } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-west-2.api.aws" + "url": "https://ec2.ap-southeast-3.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-2" + "UseDualStack": false, + "Region": "ap-southeast-3", + "UseFIPS": false } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-west-1.amazonaws.com" + "url": "https://ec2.ca-central-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-1" + "Region": "ca-central-1", + "UseFIPS": false } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-west-1.amazonaws.com" + "url": "https://ec2-fips.ca-central-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" + "Region": "ca-central-1", + "UseFIPS": true } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ca-central-1.amazonaws.com" + "url": "https://ec2.eu-central-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-central-1" + "Region": "eu-central-1", + "UseFIPS": false } }, { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.ca-central-1.amazonaws.com" + "url": "https://ec2.eu-north-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" + "Region": "eu-north-1", + "UseFIPS": false } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-southeast-3.amazonaws.com" + "url": "https://ec2.eu-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-3" + "Region": "eu-south-1", + "UseFIPS": false } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-southeast-2.amazonaws.com" + "url": "https://ec2.eu-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-2" + "Region": "eu-west-1", + "UseFIPS": false } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.ap-southeast-1.amazonaws.com" + "url": "https://ec2.eu-west-1.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": true, + "Region": "eu-west-1", + "UseFIPS": false } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-central-1.amazonaws.com" + "url": "https://ec2.eu-west-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-central-1" + "Region": "eu-west-2", + "UseFIPS": false } }, { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-south-1.amazonaws.com" + "url": "https://ec2.eu-west-3.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-south-1" + "Region": "eu-west-3", + "UseFIPS": false } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-east-1.amazonaws.com" + "url": "https://ec2.me-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-east-1" + "Region": "me-south-1", + "UseFIPS": false } }, { @@ -269,8 +269,8 @@ }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseFIPS": false } }, { @@ -282,359 +282,359 @@ }, "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseFIPS": false } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-east-2.amazonaws.com" + "url": "https://ec2.us-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-2" + "Region": "us-east-1", + "UseFIPS": false } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-east-2.amazonaws.com" + "url": "https://ec2-fips.us-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-2" + "Region": "us-east-1", + "UseFIPS": true } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.us-east-2.api.aws" + "url": "https://ec2.us-east-1.api.aws" } }, "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-2" + "Region": "us-east-1", + "UseFIPS": false } }, { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-north-1.amazonaws.com" + "url": "https://ec2.us-east-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-north-1" + "Region": "us-east-2", + "UseFIPS": false } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.me-south-1.amazonaws.com" + "url": "https://ec2-fips.us-east-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "me-south-1" + "Region": "us-east-2", + "UseFIPS": true } }, { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.eu-west-3.amazonaws.com" + "url": "https://ec2.us-east-2.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-3" + "UseDualStack": true, + "Region": "us-east-2", + "UseFIPS": false } }, { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-west-2.amazonaws.com" + "url": "https://ec2.us-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" + "Region": "us-west-1", + "UseFIPS": false } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-west-1.amazonaws.com" + "url": "https://ec2-fips.us-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-1" + "Region": "us-west-1", + "UseFIPS": true } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.eu-west-1.api.aws" + "url": "https://ec2.us-west-2.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-1" + "UseDualStack": false, + "Region": "us-west-2", + "UseFIPS": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-east-1.amazonaws.com" + "url": "https://ec2-fips.us-west-2.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-1" + "Region": "us-west-2", + "UseFIPS": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-east-1.amazonaws.com" + "url": "https://ec2.us-west-2.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": true, + "Region": "us-west-2", + "UseFIPS": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.us-east-1.api.aws" + "url": "https://ec2-fips.us-east-1.api.aws" } }, "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-1" + "Region": "us-east-1", + "UseFIPS": true } }, { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-northeast-3.amazonaws.com" + "url": "https://ec2.cn-north-1.amazonaws.com.cn" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-3" + "Region": "cn-north-1", + "UseFIPS": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-northeast-2.amazonaws.com" + "url": "https://ec2.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "cn-northwest-1", + "UseFIPS": false } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.ap-northeast-1.amazonaws.com" + "url": "https://ec2-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-1" + "UseDualStack": true, + "Region": "cn-north-1", + "UseFIPS": true } }, { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.ap-south-1.amazonaws.com" + "url": "https://ec2-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-1" + "Region": "cn-north-1", + "UseFIPS": true } }, { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.ap-south-1.api.aws" + "url": "https://ec2.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-south-1" + "Region": "cn-north-1", + "UseFIPS": false } }, { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.af-south-1.amazonaws.com" + "url": "https://ec2.us-gov-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "af-south-1" + "Region": "us-gov-east-1", + "UseFIPS": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-east-1.api.aws" + "url": "https://ec2.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": false, + "Region": "us-gov-west-1", + "UseFIPS": false } }, { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2.us-iso-west-1.c2s.ic.gov" + "url": "https://ec2-fips.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-iso-west-1" + "UseDualStack": true, + "Region": "us-gov-east-1", + "UseFIPS": true } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.us-iso-east-1.c2s.ic.gov" + "url": "https://ec2.us-gov-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-iso-east-1" + "Region": "us-gov-east-1", + "UseFIPS": true } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://ec2-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://ec2.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-iso-east-1" + "UseDualStack": true, + "Region": "us-gov-east-1", + "UseFIPS": false } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.cn-northwest-1.amazonaws.com.cn" + "url": "https://ec2.us-iso-east-1.c2s.ic.gov" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "cn-northwest-1" + "Region": "us-iso-east-1", + "UseFIPS": false } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.cn-north-1.amazonaws.com.cn" + "url": "https://ec2.us-iso-west-1.c2s.ic.gov" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "cn-north-1" + "Region": "us-iso-west-1", + "UseFIPS": false } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://ec2-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-iso-east-1", + "UseFIPS": true } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2-fips.cn-north-1.amazonaws.com.cn" + "url": "https://ec2.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-north-1" + "Region": "us-isob-east-1", + "UseFIPS": false } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://ec2.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://ec2-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-isob-east-1", + "UseFIPS": true } }, { @@ -646,8 +646,8 @@ }, "params": { "UseDualStack": false, - "UseFIPS": false, "Region": "us-east-1", + "UseFIPS": false, "Endpoint": "https://example.com" } }, @@ -658,8 +658,8 @@ }, "params": { "UseDualStack": false, - "UseFIPS": true, "Region": "us-east-1", + "UseFIPS": true, "Endpoint": "https://example.com" } }, @@ -670,8 +670,8 @@ }, "params": { "UseDualStack": true, - "UseFIPS": false, "Region": "us-east-1", + "UseFIPS": false, "Endpoint": "https://example.com" } } diff --git a/models/apis/groundstation/2019-05-23/api-2.json b/models/apis/groundstation/2019-05-23/api-2.json index ed013c78913..60d7888c4a1 100644 --- a/models/apis/groundstation/2019-05-23/api-2.json +++ b/models/apis/groundstation/2019-05-23/api-2.json @@ -183,6 +183,21 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetAgentConfiguration":{ + "name":"GetAgentConfiguration", + "http":{ + "method":"GET", + "requestUri":"/agent/{agentId}/configuration", + "responseCode":200 + }, + "input":{"shape":"GetAgentConfigurationRequest"}, + "output":{"shape":"GetAgentConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"DependencyException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "GetConfig":{ "name":"GetConfig", "http":{ @@ -378,6 +393,21 @@ {"shape":"ResourceNotFoundException"} ] }, + "RegisterAgent":{ + "name":"RegisterAgent", + "http":{ + "method":"POST", + "requestUri":"/agent", + "responseCode":200 + }, + "input":{"shape":"RegisterAgentRequest"}, + "output":{"shape":"RegisterAgentResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"DependencyException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ReserveContact":{ "name":"ReserveContact", "http":{ @@ -424,6 +454,22 @@ ], "idempotent":true }, + "UpdateAgentStatus":{ + "name":"UpdateAgentStatus", + "http":{ + "method":"PUT", + "requestUri":"/agent/{agentId}", + "responseCode":200 + }, + "input":{"shape":"UpdateAgentStatusRequest"}, + "output":{"shape":"UpdateAgentStatusResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"DependencyException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, "UpdateConfig":{ "name":"UpdateConfig", "http":{ @@ -480,6 +526,40 @@ "min":1, "pattern":"^[\\w-]+$" }, + "AgentDetails":{ + "type":"structure", + "required":[ + "agentVersion", + "componentVersions", + "instanceId", + "instanceType", + "reservedCpuCores" + ], + "members":{ + "agentVersion":{"shape":"VersionString"}, + "componentVersions":{"shape":"ComponentVersionList"}, + "instanceId":{"shape":"InstanceId"}, + "instanceType":{"shape":"InstanceType"}, + "reservedCpuCores":{"shape":"ReservedCpuCoresList"} + } + }, + "AgentStatus":{ + "type":"string", + "enum":[ + "SUCCESS", + "FAILED", + "ACTIVE", + "INACTIVE" + ] + }, + "AggregateStatus":{ + "type":"structure", + "required":["status"], + "members":{ + "signatureMap":{"shape":"SignatureMap"}, + "status":{"shape":"AgentStatus"} + } + }, "AngleUnits":{ "type":"string", "enum":[ @@ -531,6 +611,28 @@ "min":5, "pattern":"^(arn:aws:)[\\s\\S]{0,1024}$" }, + "AuditResults":{ + "type":"string", + "enum":[ + "HEALTHY", + "UNHEALTHY" + ] + }, + "AwsGroundStationAgentEndpoint":{ + "type":"structure", + "required":[ + "egressAddress", + "ingressAddress", + "name" + ], + "members":{ + "agentStatus":{"shape":"AgentStatus"}, + "auditResults":{"shape":"AuditResults"}, + "egressAddress":{"shape":"ConnectionDetails"}, + "ingressAddress":{"shape":"RangedConnectionDetails"}, + "name":{"shape":"SafeName"} + } + }, "BandwidthUnits":{ "type":"string", "enum":[ @@ -555,6 +657,62 @@ } } }, + "CapabilityArn":{"type":"string"}, + "CapabilityArnList":{ + "type":"list", + "member":{"shape":"CapabilityArn"}, + "max":20, + "min":1 + }, + "ComponentStatusData":{ + "type":"structure", + "required":[ + "capabilityArn", + "componentType", + "dataflowId", + "status" + ], + "members":{ + "bytesReceived":{"shape":"Long"}, + "bytesSent":{"shape":"Long"}, + "capabilityArn":{"shape":"CapabilityArn"}, + "componentType":{"shape":"ComponentType"}, + "dataflowId":{"shape":"Uuid"}, + "packetsDropped":{"shape":"Long"}, + "status":{"shape":"AgentStatus"} + } + }, + "ComponentStatusList":{ + "type":"list", + "member":{"shape":"ComponentStatusData"}, + "max":20, + "min":1 + }, + "ComponentType":{ + "type":"string", + "enum":[ + "LAMINAR_FLOW", + "PRISM", + "DIGITIZER" + ] + }, + "ComponentVersion":{ + "type":"structure", + "required":[ + "componentType", + "versions" + ], + "members":{ + "componentType":{"shape":"ComponentType"}, + "versions":{"shape":"VersionStringList"} + } + }, + "ComponentVersionList":{ + "type":"list", + "member":{"shape":"ComponentVersion"}, + "max":20, + "min":1 + }, "ConfigArn":{"type":"string"}, "ConfigCapabilityType":{ "type":"string", @@ -611,6 +769,14 @@ }, "union":true }, + "ConnectionDetails":{ + "type":"structure", + "required":["socketAddress"], + "members":{ + "mtu":{"shape":"Integer"}, + "socketAddress":{"shape":"SocketAddress"} + } + }, "ContactData":{ "type":"structure", "members":{ @@ -710,6 +876,8 @@ "dataflowEdges":{"shape":"DataflowEdgeList"}, "minimumViableContactDurationSeconds":{"shape":"PositiveDurationInSeconds"}, "name":{"shape":"SafeName"}, + "streamsKmsKey":{"shape":"KmsKey"}, + "streamsKmsRole":{"shape":"RoleArn"}, "tags":{"shape":"TagsMap"}, "trackingConfigArn":{"shape":"ConfigArn"} } @@ -940,6 +1108,19 @@ "dataflowDestinationRegion":{"shape":"String"} } }, + "DiscoveryData":{ + "type":"structure", + "required":[ + "capabilityArns", + "privateIpAddresses", + "publicIpAddresses" + ], + "members":{ + "capabilityArns":{"shape":"CapabilityArnList"}, + "privateIpAddresses":{"shape":"IpAddressList"}, + "publicIpAddresses":{"shape":"IpAddressList"} + } + }, "Double":{ "type":"double", "box":true @@ -979,6 +1160,7 @@ "EndpointDetails":{ "type":"structure", "members":{ + "awsGroundStationAgentEndpoint":{"shape":"AwsGroundStationAgentEndpoint"}, "endpoint":{"shape":"DataflowEndpoint"}, "securityDetails":{"shape":"SecurityDetails"} } @@ -1126,6 +1308,24 @@ "kHz" ] }, + "GetAgentConfigurationRequest":{ + "type":"structure", + "required":["agentId"], + "members":{ + "agentId":{ + "shape":"Uuid", + "location":"uri", + "locationName":"agentId" + } + } + }, + "GetAgentConfigurationResponse":{ + "type":"structure", + "members":{ + "agentId":{"shape":"Uuid"}, + "taskingDocument":{"shape":"String"} + } + }, "GetConfigRequest":{ "type":"structure", "required":[ @@ -1227,6 +1427,8 @@ "missionProfileId":{"shape":"Uuid"}, "name":{"shape":"SafeName"}, "region":{"shape":"AWSRegion"}, + "streamsKmsKey":{"shape":"KmsKey"}, + "streamsKmsRole":{"shape":"RoleArn"}, "tags":{"shape":"TagsMap"}, "trackingConfigArn":{"shape":"ConfigArn"} } @@ -1276,10 +1478,33 @@ "min":4, "pattern":"^[ a-zA-Z0-9-._:=]{4,256}$" }, + "InstanceId":{ + "type":"string", + "max":64, + "min":10, + "pattern":"^[a-z0-9-]{10,64}$" + }, + "InstanceType":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-z0-9.-]{1,64}$" + }, "Integer":{ "type":"integer", "box":true }, + "IntegerRange":{ + "type":"structure", + "required":[ + "maximum", + "minimum" + ], + "members":{ + "maximum":{"shape":"Integer"}, + "minimum":{"shape":"Integer"} + } + }, "InvalidParameterException":{ "type":"structure", "members":{ @@ -1292,13 +1517,39 @@ }, "exception":true }, + "IpAddressList":{ + "type":"list", + "member":{"shape":"IpV4Address"}, + "max":20, + "min":1 + }, + "IpV4Address":{ + "type":"string", + "max":16, + "min":7, + "pattern":"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$" + }, "JsonString":{ "type":"string", "max":8192, "min":2, "pattern":"^[{}\\[\\]:.,\"0-9A-z\\-_\\s]{2,8192}$" }, + "KeyAliasArn":{ + "type":"string", + "max":512, + "min":1, + "pattern":"^arn:aws[a-zA-Z-]{0,16}:kms:[a-z]{2}(-[a-z]{1,16}){1,3}-\\d{1}:\\d{12}:((alias/[a-zA-Z0-9:/_-]{1,256}))$" + }, "KeyArn":{"type":"string"}, + "KmsKey":{ + "type":"structure", + "members":{ + "kmsAliasArn":{"shape":"KeyAliasArn"}, + "kmsKeyArn":{"shape":"KeyArn"} + }, + "union":true + }, "ListConfigsRequest":{ "type":"structure", "members":{ @@ -1487,6 +1738,10 @@ "tags":{"shape":"TagsMap"} } }, + "Long":{ + "type":"long", + "box":true + }, "MissionProfileArn":{"type":"string"}, "MissionProfileIdResponse":{ "type":"structure", @@ -1546,6 +1801,48 @@ "max":21600, "min":1 }, + "RangedConnectionDetails":{ + "type":"structure", + "required":["socketAddress"], + "members":{ + "mtu":{"shape":"RangedConnectionDetailsMtuInteger"}, + "socketAddress":{"shape":"RangedSocketAddress"} + } + }, + "RangedConnectionDetailsMtuInteger":{ + "type":"integer", + "box":true, + "max":1500, + "min":1400 + }, + "RangedSocketAddress":{ + "type":"structure", + "required":[ + "name", + "portRange" + ], + "members":{ + "name":{"shape":"IpV4Address"}, + "portRange":{"shape":"IntegerRange"} + } + }, + "RegisterAgentRequest":{ + "type":"structure", + "required":[ + "agentDetails", + "discoveryData" + ], + "members":{ + "agentDetails":{"shape":"AgentDetails"}, + "discoveryData":{"shape":"DiscoveryData"} + } + }, + "RegisterAgentResponse":{ + "type":"structure", + "members":{ + "agentId":{"shape":"Uuid"} + } + }, "ReserveContactRequest":{ "type":"structure", "required":[ @@ -1564,6 +1861,12 @@ "tags":{"shape":"TagsMap"} } }, + "ReservedCpuCoresList":{ + "type":"list", + "member":{"shape":"Integer"}, + "max":256, + "min":1 + }, "ResourceLimitExceededException":{ "type":"structure", "members":{ @@ -1676,6 +1979,11 @@ "type":"list", "member":{"shape":"String"} }, + "SignatureMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"Boolean"} + }, "SocketAddress":{ "type":"structure", "required":[ @@ -1836,6 +2144,32 @@ "members":{ } }, + "UpdateAgentStatusRequest":{ + "type":"structure", + "required":[ + "agentId", + "aggregateStatus", + "componentStatuses", + "taskId" + ], + "members":{ + "agentId":{ + "shape":"Uuid", + "location":"uri", + "locationName":"agentId" + }, + "aggregateStatus":{"shape":"AggregateStatus"}, + "componentStatuses":{"shape":"ComponentStatusList"}, + "taskId":{"shape":"Uuid"} + } + }, + "UpdateAgentStatusResponse":{ + "type":"structure", + "required":["agentId"], + "members":{ + "agentId":{"shape":"Uuid"} + } + }, "UpdateConfigRequest":{ "type":"structure", "required":[ @@ -1890,6 +2224,8 @@ "locationName":"missionProfileId" }, "name":{"shape":"SafeName"}, + "streamsKmsKey":{"shape":"KmsKey"}, + "streamsKmsRole":{"shape":"RoleArn"}, "trackingConfigArn":{"shape":"ConfigArn"} } }, @@ -1918,6 +2254,18 @@ "min":1, "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" }, + "VersionString":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*))*$" + }, + "VersionStringList":{ + "type":"list", + "member":{"shape":"VersionString"}, + "max":20, + "min":1 + }, "Year":{ "type":"integer", "box":true, diff --git a/models/apis/groundstation/2019-05-23/docs-2.json b/models/apis/groundstation/2019-05-23/docs-2.json index c2e5cecda9a..71d6a3adfea 100644 --- a/models/apis/groundstation/2019-05-23/docs-2.json +++ b/models/apis/groundstation/2019-05-23/docs-2.json @@ -13,6 +13,7 @@ "DeleteMissionProfile": "

Deletes a mission profile.

", "DescribeContact": "

Describes an existing contact.

", "DescribeEphemeris": "

Describes an existing ephemeris.

", + "GetAgentConfiguration": "

Gets the latest configuration information for a registered agent.

", "GetConfig": "

Returns Config information.

Only one Config response can be returned.

", "GetDataflowEndpointGroup": "

Returns the dataflow endpoint group.

", "GetMinuteUsage": "

Returns the number of minutes used by account.

", @@ -26,9 +27,11 @@ "ListMissionProfiles": "

Returns a list of mission profiles.

", "ListSatellites": "

Returns a list of satellites.

", "ListTagsForResource": "

Returns a list of tags for a specified resource.

", + "RegisterAgent": "

Registers a new agent with AWS Groundstation.

", "ReserveContact": "

Reserves a contact using specified parameters.

", "TagResource": "

Assigns a tag to a resource.

", "UntagResource": "

Deassigns a resource tag.

", + "UpdateAgentStatus": "

Update the status of the agent.

", "UpdateConfig": "

Updates the Config used when scheduling contacts.

Updating a Config will not update the execution parameters for existing future contacts scheduled with this Config.

", "UpdateEphemeris": "

Updates an existing ephemeris

", "UpdateMissionProfile": "

Updates a mission profile.

Updating a mission profile will not update the execution parameters for existing future contacts.

" @@ -42,6 +45,26 @@ "MissionProfileListItem$region": "

Region of a mission profile.

" } }, + "AgentDetails": { + "base": "

Detailed information about the agent.

", + "refs": { + "RegisterAgentRequest$agentDetails": "

Detailed information about the agent being registered.

" + } + }, + "AgentStatus": { + "base": null, + "refs": { + "AggregateStatus$status": "

Aggregate status.

", + "AwsGroundStationAgentEndpoint$agentStatus": "

The status of AgentEndpoint.

", + "ComponentStatusData$status": "

Component status.

" + } + }, + "AggregateStatus": { + "base": "

Aggregate status of Agent components.

", + "refs": { + "UpdateAgentStatusRequest$aggregateStatus": "

Aggregate status for agent.

" + } + }, "AngleUnits": { "base": null, "refs": { @@ -80,6 +103,18 @@ "UntagResourceRequest$resourceArn": "

ARN of a resource.

" } }, + "AuditResults": { + "base": null, + "refs": { + "AwsGroundStationAgentEndpoint$auditResults": "

The results of the audit.

" + } + }, + "AwsGroundStationAgentEndpoint": { + "base": "

Information about AwsGroundStationAgentEndpoint.

", + "refs": { + "EndpointDetails$awsGroundStationAgentEndpoint": "

An agent endpoint.

" + } + }, "BandwidthUnits": { "base": null, "refs": { @@ -94,6 +129,7 @@ "DescribeEphemerisResponse$enabled": "

Whether or not the ephemeris is enabled.

", "EphemerisItem$enabled": "

Whether or not the ephemeris is enabled.

", "GetMinuteUsageResponse$isReservedMinutesCustomer": "

Returns whether or not an account has signed up for the reserved minutes pricing plan, specific to the month being requested.

", + "SignatureMap$value": null, "UpdateEphemerisRequest$enabled": "

Whether the ephemeris is enabled or not. Changing this value will not require the ephemeris to be re-validated.

", "UplinkEchoConfig$enabled": "

Whether or not an uplink Config is enabled.

" } @@ -110,6 +146,50 @@ "refs": { } }, + "CapabilityArn": { + "base": null, + "refs": { + "CapabilityArnList$member": null, + "ComponentStatusData$capabilityArn": "

Capability ARN of the component.

" + } + }, + "CapabilityArnList": { + "base": null, + "refs": { + "DiscoveryData$capabilityArns": "

List of capabilities to associate with agent.

" + } + }, + "ComponentStatusData": { + "base": "

Data on the status of agent components.

", + "refs": { + "ComponentStatusList$member": null + } + }, + "ComponentStatusList": { + "base": null, + "refs": { + "UpdateAgentStatusRequest$componentStatuses": "

List of component statuses for agent.

" + } + }, + "ComponentType": { + "base": null, + "refs": { + "ComponentStatusData$componentType": "

The Component type.

", + "ComponentVersion$componentType": "

Component type.

" + } + }, + "ComponentVersion": { + "base": "

Version information for agent components.

", + "refs": { + "ComponentVersionList$member": null + } + }, + "ComponentVersionList": { + "base": null, + "refs": { + "AgentDetails$componentVersions": "

List of versions being used by agent components.

" + } + }, "ConfigArn": { "base": null, "refs": { @@ -168,6 +248,12 @@ "UpdateConfigRequest$configData": "

Parameters of a Config.

" } }, + "ConnectionDetails": { + "base": "

Egress address of AgentEndpoint with an optional mtu.

", + "refs": { + "AwsGroundStationAgentEndpoint$egressAddress": "

The egress address of AgentEndpoint.

" + } + }, "ContactData": { "base": "

Data describing a contact.

", "refs": { @@ -365,6 +451,12 @@ "DataflowDetail$destination": null } }, + "DiscoveryData": { + "base": "

Data for agent discovery.

", + "refs": { + "RegisterAgentRequest$discoveryData": "

Data for associating and agent with the capabilities it is managing.

" + } + }, "Double": { "base": null, "refs": { @@ -520,6 +612,16 @@ "Frequency$units": "

Frequency units.

" } }, + "GetAgentConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetAgentConfigurationResponse": { + "base": null, + "refs": { + } + }, "GetConfigRequest": { "base": "

", "refs": { @@ -599,21 +701,57 @@ "ReserveContactRequest$groundStation": "

Name of a ground station.

" } }, + "InstanceId": { + "base": null, + "refs": { + "AgentDetails$instanceId": "

ID of EC2 instance agent is running on.

" + } + }, + "InstanceType": { + "base": null, + "refs": { + "AgentDetails$instanceType": "

Type of EC2 instance agent is running on.

" + } + }, "Integer": { "base": null, "refs": { + "ConnectionDetails$mtu": "

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

", "GetMinuteUsageResponse$estimatedMinutesRemaining": "

Estimated number of minutes remaining for an account, specific to the month being requested.

", "GetMinuteUsageResponse$totalReservedMinuteAllocation": "

Total number of reserved minutes allocated, specific to the month being requested.

", "GetMinuteUsageResponse$totalScheduledMinutes": "

Total scheduled minutes for an account, specific to the month being requested.

", "GetMinuteUsageResponse$upcomingMinutesScheduled": "

Upcoming minutes scheduled for an account, specific to the month being requested.

", + "IntegerRange$maximum": "

A maximum value.

", + "IntegerRange$minimum": "

A minimum value.

", + "ReservedCpuCoresList$member": null, "SocketAddress$port": "

Port of a socket address.

" } }, + "IntegerRange": { + "base": "

An integer range that has a minimum and maximum value.

", + "refs": { + "RangedSocketAddress$portRange": "

Port range of a socket address.

" + } + }, "InvalidParameterException": { "base": "

One or more parameters are not valid.

", "refs": { } }, + "IpAddressList": { + "base": null, + "refs": { + "DiscoveryData$privateIpAddresses": "

List of private IP addresses to associate with agent.

", + "DiscoveryData$publicIpAddresses": "

List of public IP addresses to associate with agent.

" + } + }, + "IpV4Address": { + "base": null, + "refs": { + "IpAddressList$member": null, + "RangedSocketAddress$name": "

IPv4 socket address.

" + } + }, "JsonString": { "base": null, "refs": { @@ -621,10 +759,25 @@ "DemodulationConfig$unvalidatedJSON": "

Unvalidated JSON of a demodulation Config.

" } }, + "KeyAliasArn": { + "base": null, + "refs": { + "KmsKey$kmsAliasArn": "

KMS Alias Arn.

" + } + }, "KeyArn": { "base": null, "refs": { - "CreateEphemerisRequest$kmsKeyArn": "

The ARN of a KMS key used to encrypt the ephemeris in Ground Station.

" + "CreateEphemerisRequest$kmsKeyArn": "

The ARN of a KMS key used to encrypt the ephemeris in Ground Station.

", + "KmsKey$kmsKeyArn": "

KMS Key Arn.

" + } + }, + "KmsKey": { + "base": "

AWS Key Management Service (KMS) Key.

", + "refs": { + "CreateMissionProfileRequest$streamsKmsKey": "

KMS key to use for encrypting streams.

", + "GetMissionProfileResponse$streamsKmsKey": "

KMS key to use for encrypting streams.

", + "UpdateMissionProfileRequest$streamsKmsKey": "

KMS key to use for encrypting streams.

" } }, "ListConfigsRequest": { @@ -707,6 +860,14 @@ "refs": { } }, + "Long": { + "base": null, + "refs": { + "ComponentStatusData$bytesReceived": "

Bytes received by the component.

", + "ComponentStatusData$bytesSent": "

Bytes sent by the component.

", + "ComponentStatusData$packetsDropped": "

Packets dropped by component.

" + } + }, "MissionProfileArn": { "base": null, "refs": { @@ -793,11 +954,45 @@ "UpdateMissionProfileRequest$minimumViableContactDurationSeconds": "

Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station will not present you with contacts shorter than this duration.

" } }, + "RangedConnectionDetails": { + "base": "

Ingress address of AgentEndpoint with a port range and an optional mtu.

", + "refs": { + "AwsGroundStationAgentEndpoint$ingressAddress": "

The ingress address of AgentEndpoint.

" + } + }, + "RangedConnectionDetailsMtuInteger": { + "base": null, + "refs": { + "RangedConnectionDetails$mtu": "

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

" + } + }, + "RangedSocketAddress": { + "base": "

A socket address with a port range.

", + "refs": { + "RangedConnectionDetails$socketAddress": "

A ranged socket address.

" + } + }, + "RegisterAgentRequest": { + "base": null, + "refs": { + } + }, + "RegisterAgentResponse": { + "base": null, + "refs": { + } + }, "ReserveContactRequest": { "base": "

", "refs": { } }, + "ReservedCpuCoresList": { + "base": null, + "refs": { + "AgentDetails$reservedCpuCores": "

Number of Cpu cores reserved for agent.

" + } + }, "ResourceLimitExceededException": { "base": "

Account limits for this resource have been exceeded.

", "refs": { @@ -811,8 +1006,11 @@ "RoleArn": { "base": null, "refs": { + "CreateMissionProfileRequest$streamsKmsRole": "

Role to use for encrypting streams with KMS key.

", + "GetMissionProfileResponse$streamsKmsRole": "

Role to use for encrypting streams with KMS key.

", "S3RecordingConfig$roleArn": "

ARN of the role Ground Station assumes to write data to the bucket.

", - "SecurityDetails$roleArn": "

ARN to a role needed for connecting streams to your instances.

" + "SecurityDetails$roleArn": "

ARN to a role needed for connecting streams to your instances.

", + "UpdateMissionProfileRequest$streamsKmsRole": "

Role to use for encrypting streams with KMS key.

" } }, "S3BucketName": { @@ -863,6 +1061,7 @@ "SafeName": { "base": null, "refs": { + "AwsGroundStationAgentEndpoint$name": "

Name string associated with AgentEndpoint. Used as a human-readable identifier for AgentEndpoint.

", "CreateConfigRequest$name": "

Name of a Config.

", "CreateEphemerisRequest$name": "

A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris.

", "CreateMissionProfileRequest$name": "

Name of a mission profile.

", @@ -901,9 +1100,16 @@ "SecurityDetails$securityGroupIds": "

The security groups to attach to the elastic network interfaces.

" } }, + "SignatureMap": { + "base": null, + "refs": { + "AggregateStatus$signatureMap": "

Sparse map of failure signatures.

" + } + }, "SocketAddress": { "base": "

Information about the socket address.

", "refs": { + "ConnectionDetails$socketAddress": "

A socket address.

", "DataflowEndpoint$address": "

Socket address of a dataflow endpoint.

" } }, @@ -945,6 +1151,7 @@ "DescribeContactResponse$groundStation": "

Ground station for a contact.

", "DescribeContactResponse$region": "

Region of a contact.

", "Destination$dataflowDestinationRegion": "

Region of a dataflow destination.

", + "GetAgentConfigurationResponse$taskingDocument": "

Tasking document for agent.

", "GetConfigResponse$configId": "

UUID of a Config.

", "GetConfigResponse$name": "

Name of a Config.

", "InvalidParameterException$message": null, @@ -954,6 +1161,7 @@ "ResourceNotFoundException$message": null, "S3RecordingDetails$keyTemplate": "

Key template used for the S3 Recording Configuration

", "SecurityGroupIdList$member": null, + "SignatureMap$key": null, "SocketAddress$name": "

Name of a socket address.

", "Source$configId": "

UUID of a Config.

", "Source$dataflowSourceRegion": "

Region of a dataflow source.

", @@ -1087,6 +1295,16 @@ "refs": { } }, + "UpdateAgentStatusRequest": { + "base": null, + "refs": { + } + }, + "UpdateAgentStatusResponse": { + "base": null, + "refs": { + } + }, "UpdateConfigRequest": { "base": "

", "refs": { @@ -1118,6 +1336,7 @@ "base": null, "refs": { "CancelContactRequest$contactId": "

UUID of a contact.

", + "ComponentStatusData$dataflowId": "

Dataflow UUID associated with the component.

", "ContactData$contactId": "

UUID of a contact.

", "ContactIdResponse$contactId": "

UUID of a contact.

", "CreateEphemerisRequest$satelliteId": "

AWS Ground Station satellite ID for this ephemeris.

", @@ -1136,6 +1355,8 @@ "EphemerisIdResponse$ephemerisId": "

The AWS Ground Station ephemeris ID.

", "EphemerisItem$ephemerisId": "

The AWS Ground Station ephemeris ID.

", "EphemerisMetaData$ephemerisId": "

UUID of a customer-provided ephemeris.

This field is not populated for default ephemerides from Space Track.

", + "GetAgentConfigurationRequest$agentId": "

UUID of agent to get configuration information for.

", + "GetAgentConfigurationResponse$agentId": "

UUID of agent.

", "GetConfigRequest$configId": "

UUID of a Config.

", "GetDataflowEndpointGroupRequest$dataflowEndpointGroupId": "

UUID of a dataflow endpoint group.

", "GetDataflowEndpointGroupResponse$dataflowEndpointGroupId": "

UUID of a dataflow endpoint group.

", @@ -1147,12 +1368,29 @@ "ListGroundStationsRequest$satelliteId": "

Satellite ID to retrieve on-boarded ground stations.

", "MissionProfileIdResponse$missionProfileId": "

UUID of a mission profile.

", "MissionProfileListItem$missionProfileId": "

UUID of a mission profile.

", + "RegisterAgentResponse$agentId": "

UUID of registered agent.

", "SatelliteListItem$satelliteId": "

UUID of a satellite.

", + "UpdateAgentStatusRequest$agentId": "

UUID of agent to update.

", + "UpdateAgentStatusRequest$taskId": "

GUID of agent task.

", + "UpdateAgentStatusResponse$agentId": "

UUID of updated agent.

", "UpdateConfigRequest$configId": "

UUID of a Config.

", "UpdateEphemerisRequest$ephemerisId": "

The AWS Ground Station ephemeris ID.

", "UpdateMissionProfileRequest$missionProfileId": "

UUID of a mission profile.

" } }, + "VersionString": { + "base": null, + "refs": { + "AgentDetails$agentVersion": "

Current agent version.

", + "VersionStringList$member": null + } + }, + "VersionStringList": { + "base": null, + "refs": { + "ComponentVersion$versions": "

List of versions.

" + } + }, "Year": { "base": null, "refs": { diff --git a/models/apis/groundstation/2019-05-23/endpoint-tests-1.json b/models/apis/groundstation/2019-05-23/endpoint-tests-1.json index 503e1d369a4..6a17ce7a7c6 100644 --- a/models/apis/groundstation/2019-05-23/endpoint-tests-1.json +++ b/models/apis/groundstation/2019-05-23/endpoint-tests-1.json @@ -1,133 +1,133 @@ { "testCases": [ { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://groundstation-fips.us-gov-east-1.api.aws" } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.cn-north-1.amazonaws.com.cn" + "url": "https://groundstation-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://groundstation.us-gov-east-1.api.aws" } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.cn-north-1.amazonaws.com.cn" + "url": "https://groundstation.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://groundstation.af-south-1.amazonaws.com" } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true + "Region": "af-south-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-iso-east-1.c2s.ic.gov" + "url": "https://groundstation.us-west-2.amazonaws.com" } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.eu-central-1.amazonaws.com" + "url": "https://groundstation-fips.us-west-2.amazonaws.com" } }, "params": { - "Region": "eu-central-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-east-2.amazonaws.com" + "url": "https://groundstation.sa-east-1.amazonaws.com" } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "sa-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-east-2.amazonaws.com" + "url": "https://groundstation.eu-north-1.amazonaws.com" } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true + "Region": "eu-north-1" } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.eu-west-1.amazonaws.com" + "url": "https://groundstation.ap-southeast-2.amazonaws.com" } }, "params": { - "Region": "eu-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-2" } }, { @@ -138,204 +138,204 @@ } }, "params": { - "Region": "me-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "me-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.ap-southeast-2.amazonaws.com" + "url": "https://groundstation.eu-west-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-1" } }, { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.eu-north-1.amazonaws.com" + "url": "https://groundstation.us-east-2.amazonaws.com" } }, "params": { - "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.sa-east-1.amazonaws.com" + "url": "https://groundstation-fips.us-east-2.amazonaws.com" } }, "params": { - "Region": "sa-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-west-2.amazonaws.com" + "url": "https://groundstation.eu-central-1.amazonaws.com" } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-central-1" } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-west-2.amazonaws.com" + "url": "https://groundstation.ap-northeast-2.amazonaws.com" } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true + "Region": "ap-northeast-2" } }, { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.af-south-1.amazonaws.com" + "url": "https://groundstation.us-east-1.amazonaws.com" } }, "params": { - "Region": "af-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-east-1.amazonaws.com" + "url": "https://groundstation-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-east-1.amazonaws.com" + "url": "https://groundstation-fips.us-east-1.api.aws" } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation.ap-northeast-2.amazonaws.com" + "url": "https://groundstation.us-east-1.api.aws" } }, "params": { - "Region": "ap-northeast-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-east-1.api.aws" + "url": "https://groundstation-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-east-1.api.aws" + "url": "https://groundstation.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-gov-east-1.api.aws" + "url": "https://groundstation-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation-fips.us-gov-east-1.amazonaws.com" + "url": "https://groundstation-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://groundstation.us-gov-east-1.api.aws" + "url": "https://groundstation.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://groundstation.us-gov-east-1.amazonaws.com" + "url": "https://groundstation.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -346,9 +346,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1" } }, { @@ -359,9 +359,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1" } }, { @@ -372,9 +372,9 @@ } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -384,9 +384,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -396,9 +396,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/iot/2015-05-28/api-2.json b/models/apis/iot/2015-05-28/api-2.json index 3582efccb45..5f601c05c83 100644 --- a/models/apis/iot/2015-05-28/api-2.json +++ b/models/apis/iot/2015-05-28/api-2.json @@ -5133,7 +5133,8 @@ ], "members":{ "roleArn":{"shape":"AwsArn"}, - "logGroupName":{"shape":"LogGroupName"} + "logGroupName":{"shape":"LogGroupName"}, + "batchMode":{"shape":"BatchMode"} } }, "CloudwatchMetricAction":{ diff --git a/models/apis/iot/2015-05-28/docs-2.json b/models/apis/iot/2015-05-28/docs-2.json index 9b3d6029e6c..3b22106dbbf 100644 --- a/models/apis/iot/2015-05-28/docs-2.json +++ b/models/apis/iot/2015-05-28/docs-2.json @@ -1175,6 +1175,7 @@ "BatchMode": { "base": null, "refs": { + "CloudwatchLogsAction$batchMode": "

Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include true or false (default).

", "FirehoseAction$batchMode": "

Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch . The default value is false.

When batchMode is true and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch request. The resulting array can't have more than 500 records.

", "IotAnalyticsAction$batchMode": "

Whether to process the action as a batch. The default value is false.

When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by BatchPutMessage to the IoT Analytics channel. The resulting array can't have more than 100 messages.

", "IotEventsAction$batchMode": "

Whether to process the event actions as a batch. The default value is false.

When batchMode is true, you can't specify a messageId.

When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it's sent to IoT Events by calling BatchPutMessage . The resulting array can't have more than 10 messages.

" diff --git a/models/apis/iot/2015-05-28/endpoint-rule-set-1.json b/models/apis/iot/2015-05-28/endpoint-rule-set-1.json index 6df9a0b7d38..cc821ce0b35 100644 --- a/models/apis/iot/2015-05-28/endpoint-rule-set-1.json +++ b/models/apis/iot/2015-05-28/endpoint-rule-set-1.json @@ -52,15 +52,6 @@ "ref": "Endpoint" } ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], "type": "tree", diff --git a/models/apis/kinesis/2013-12-02/endpoint-rule-set-1.json b/models/apis/kinesis/2013-12-02/endpoint-rule-set-1.json index aaa20c5f68e..f8dc09f1cbb 100644 --- a/models/apis/kinesis/2013-12-02/endpoint-rule-set-1.json +++ b/models/apis/kinesis/2013-12-02/endpoint-rule-set-1.json @@ -1238,12 +1238,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -1292,6 +1298,31 @@ "conditions": [], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://kinesis.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { @@ -1348,12 +1379,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -1366,12 +1403,56 @@ }, { "conditions": [], - "endpoint": { - "url": "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://kinesis.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://kinesis.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/kinesis/2013-12-02/endpoint-tests-1.json b/models/apis/kinesis/2013-12-02/endpoint-tests-1.json index 369124b9c7c..052d9e96454 100644 --- a/models/apis/kinesis/2013-12-02/endpoint-tests-1.json +++ b/models/apis/kinesis/2013-12-02/endpoint-tests-1.json @@ -1,1659 +1,419 @@ { "testCases": [ { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-south-2.api.aws" - } - }, - "params": { - "Region": "ap-south-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-south-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-south-2.api.aws" - } - }, - "params": { - "Region": "ap-south-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-south-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-south-1.api.aws" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-south-1.api.aws" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-south-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-south-1.api.aws" - } - }, - "params": { - "Region": "eu-south-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-south-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-south-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-south-1.api.aws" - } - }, - "params": { - "Region": "eu-south-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-south-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-south-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-south-2.api.aws" - } - }, - "params": { - "Region": "eu-south-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-south-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-south-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-south-2.api.aws" - } - }, - "params": { - "Region": "eu-south-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-south-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-south-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.me-central-1.api.aws" - } - }, - "params": { - "Region": "me-central-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.me-central-1.amazonaws.com" - } - }, - "params": { - "Region": "me-central-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.me-central-1.api.aws" - } - }, - "params": { - "Region": "me-central-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.me-central-1.amazonaws.com" - } - }, - "params": { - "Region": "me-central-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ca-central-1.api.aws" - } - }, - "params": { - "Region": "ca-central-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "Region": "ca-central-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ca-central-1.api.aws" - } - }, - "params": { - "Region": "ca-central-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ca-central-1.amazonaws.com" - } - }, - "params": { - "Region": "ca-central-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-central-1.api.aws" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-central-1.api.aws" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-central-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-west-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-west-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-west-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-west-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-central-2.api.aws" - } - }, - "params": { - "Region": "eu-central-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-central-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-central-2.api.aws" - } - }, - "params": { - "Region": "eu-central-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-central-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-west-1.api.aws" - } - }, - "params": { - "Region": "us-west-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "Region": "us-west-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-west-1.api.aws" - } - }, - "params": { - "Region": "us-west-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-west-1.amazonaws.com" - } - }, - "params": { - "Region": "us-west-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-west-2.api.aws" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-west-2.api.aws" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-west-2.amazonaws.com" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.af-south-1.api.aws" - } - }, - "params": { - "Region": "af-south-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "Region": "af-south-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.af-south-1.api.aws" - } - }, - "params": { - "Region": "af-south-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.af-south-1.amazonaws.com" - } - }, - "params": { - "Region": "af-south-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-north-1.api.aws" - } - }, - "params": { - "Region": "eu-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-north-1.api.aws" - } - }, - "params": { - "Region": "eu-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-north-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-3.api.aws" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-3.api.aws" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-3.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-2.api.aws" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-2.api.aws" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-1.api.aws" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-1.api.aws" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.eu-west-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "Region": "ap-northeast-3", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-3", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-3.api.aws" - } - }, - "params": { - "Region": "ap-northeast-3", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-3", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-2.api.aws" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-1.api.aws" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.me-south-1.api.aws" - } - }, - "params": { - "Region": "me-south-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.me-south-1.amazonaws.com" - } - }, - "params": { - "Region": "me-south-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.me-south-1.api.aws" - } - }, - "params": { - "Region": "me-south-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.me-south-1.amazonaws.com" - } - }, - "params": { - "Region": "me-south-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.sa-east-1.api.aws" - } - }, - "params": { - "Region": "sa-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.sa-east-1.amazonaws.com" - } - }, - "params": { - "Region": "sa-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.sa-east-1.api.aws" - } - }, - "params": { - "Region": "sa-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.sa-east-1.amazonaws.com" - } - }, - "params": { - "Region": "sa-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-east-1.api.aws" - } - }, - "params": { - "Region": "ap-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.ap-east-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-east-1.api.aws" - } - }, - "params": { - "Region": "ap-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.ap-east-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://kinesis.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.cn-north-1.amazonaws.com.cn" + "url": "https://kinesis.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region ca-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ca-west-1.api.aws" + "url": "https://kinesis.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "ca-west-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region ca-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ca-west-1.amazonaws.com" + "url": "https://kinesis.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "ca-west-1", "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region ca-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://kinesis.ca-west-1.api.aws" + "url": "https://kinesis-fips.us-gov-east-1.api.aws" } }, "params": { - "Region": "ca-west-1", - "UseFIPS": false, - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region ca-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://kinesis.ca-west-1.amazonaws.com" + "url": "https://kinesis.us-gov-east-1.api.aws" } }, "params": { - "Region": "ca-west-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.us-gov-west-1.api.aws" + "url": "https://kinesis.ap-southeast-3.amazonaws.com" } }, "params": { - "Region": "us-gov-west-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-3" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.us-gov-west-1.amazonaws.com" + "url": "https://kinesis.ap-southeast-2.amazonaws.com" } }, "params": { - "Region": "us-gov-west-1", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-gov-west-1.api.aws" + "url": "https://kinesis.ap-southeast-1.amazonaws.com" } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-gov-west-1.amazonaws.com" + "url": "https://kinesis.eu-central-1.amazonaws.com" } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "eu-central-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-1.api.aws" + "url": "https://kinesis.eu-south-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-south-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-1.amazonaws.com" + "url": "https://kinesis.ap-east-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-1", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-east-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-1.api.aws" + "url": "https://kinesis.sa-east-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "sa-east-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-1.amazonaws.com" + "url": "https://kinesis.us-east-2.amazonaws.com" } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-2.api.aws" + "url": "https://kinesis-fips.us-east-2.amazonaws.com" } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": true, - "UseDualStack": true + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-2.amazonaws.com" + "url": "https://kinesis.eu-north-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-2", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-north-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-2.api.aws" + "url": "https://kinesis.me-south-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "me-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-2.amazonaws.com" + "url": "https://kinesis.eu-west-3.amazonaws.com" } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseDualStack": false, + "Region": "eu-west-3" } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://kinesis.eu-west-2.amazonaws.com" } }, "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-iso-east-1.c2s.ic.gov" + "url": "https://kinesis.eu-west-1.amazonaws.com" } }, "params": { - "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "eu-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-3.api.aws" + "url": "https://kinesis.us-east-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-3", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-3.amazonaws.com" + "url": "https://kinesis-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-3.api.aws" + "url": "https://kinesis.ap-northeast-3.amazonaws.com" } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-3.amazonaws.com" + "url": "https://kinesis.ap-northeast-2.amazonaws.com" } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "ap-northeast-2" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-4.api.aws" + "url": "https://kinesis.ap-northeast-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-4", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-northeast-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-4.amazonaws.com" + "url": "https://kinesis.ap-south-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-4", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-south-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack enabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-4.api.aws" + "url": "https://kinesis.af-south-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "af-south-1" } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-4.amazonaws.com" + "url": "https://kinesis.us-west-2.amazonaws.com" } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-5 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-5.api.aws" + "url": "https://kinesis-fips.us-west-2.amazonaws.com" } }, "params": { - "Region": "ap-southeast-5", "UseFIPS": true, - "UseDualStack": true + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-5 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.ap-southeast-5.amazonaws.com" + "url": "https://kinesis.us-west-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-5", - "UseFIPS": true, - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-5 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-5.api.aws" + "url": "https://kinesis-fips.us-west-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-5", - "UseFIPS": false, - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-5 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.ap-southeast-5.amazonaws.com" + "url": "https://kinesis.ca-central-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-5", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "ca-central-1" } }, { @@ -1664,22 +424,9 @@ } }, "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": false + "UseDualStack": true, + "Region": "us-east-1" } }, { @@ -1690,137 +437,126 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-east-1.amazonaws.com" + "url": "https://kinesis.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.us-east-2.api.aws" + "url": "https://kinesis.us-iso-west-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-2", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-west-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.us-east-2.amazonaws.com" + "url": "https://kinesis-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "Region": "us-east-2", "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-east-2.api.aws" + "url": "https://kinesis.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "us-east-2", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.us-east-2.amazonaws.com" + "url": "https://kinesis.cn-northwest-1.amazonaws.com.cn" } }, "params": { - "Region": "us-east-2", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "cn-northwest-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://kinesis-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, - "UseDualStack": true + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://kinesis-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://kinesis.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://kinesis.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://kinesis.cn-northwest-1.amazonaws.com.cn" + "url": "https://kinesis.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { @@ -1831,33 +567,9 @@ } }, "params": { - "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://kinesis.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { @@ -1868,9 +580,9 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -1880,9 +592,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -1892,9 +604,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, diff --git a/models/apis/opensearch/2021-01-01/api-2.json b/models/apis/opensearch/2021-01-01/api-2.json index 018ef10742f..8ffb291b150 100644 --- a/models/apis/opensearch/2021-01-01/api-2.json +++ b/models/apis/opensearch/2021-01-01/api-2.json @@ -1230,6 +1230,19 @@ "min":10, "pattern":"[a-z][a-z0-9\\-]+" }, + "ConnectionMode":{ + "type":"string", + "enum":[ + "DIRECT", + "VPC_ENDPOINT" + ] + }, + "ConnectionProperties":{ + "type":"structure", + "members":{ + "Endpoint":{"shape":"Endpoint"} + } + }, "ConnectionStatusMessage":{"type":"string"}, "CreateDomainRequest":{ "type":"structure", @@ -1269,7 +1282,8 @@ "members":{ "LocalDomainInfo":{"shape":"DomainInformationContainer"}, "RemoteDomainInfo":{"shape":"DomainInformationContainer"}, - "ConnectionAlias":{"shape":"ConnectionAlias"} + "ConnectionAlias":{"shape":"ConnectionAlias"}, + "ConnectionMode":{"shape":"ConnectionMode"} } }, "CreateOutboundConnectionResponse":{ @@ -1279,7 +1293,9 @@ "RemoteDomainInfo":{"shape":"DomainInformationContainer"}, "ConnectionAlias":{"shape":"ConnectionAlias"}, "ConnectionStatus":{"shape":"OutboundConnectionStatus"}, - "ConnectionId":{"shape":"ConnectionId"} + "ConnectionId":{"shape":"ConnectionId"}, + "ConnectionMode":{"shape":"ConnectionMode"}, + "ConnectionProperties":{"shape":"ConnectionProperties"} } }, "CreatePackageRequest":{ @@ -2135,7 +2151,8 @@ "LocalDomainInfo":{"shape":"DomainInformationContainer"}, "RemoteDomainInfo":{"shape":"DomainInformationContainer"}, "ConnectionId":{"shape":"ConnectionId"}, - "ConnectionStatus":{"shape":"InboundConnectionStatus"} + "ConnectionStatus":{"shape":"InboundConnectionStatus"}, + "ConnectionMode":{"shape":"ConnectionMode"} } }, "InboundConnectionStatus":{ @@ -2690,7 +2707,9 @@ "RemoteDomainInfo":{"shape":"DomainInformationContainer"}, "ConnectionId":{"shape":"ConnectionId"}, "ConnectionAlias":{"shape":"ConnectionAlias"}, - "ConnectionStatus":{"shape":"OutboundConnectionStatus"} + "ConnectionStatus":{"shape":"OutboundConnectionStatus"}, + "ConnectionMode":{"shape":"ConnectionMode"}, + "ConnectionProperties":{"shape":"ConnectionProperties"} } }, "OutboundConnectionStatus":{ diff --git a/models/apis/opensearch/2021-01-01/docs-2.json b/models/apis/opensearch/2021-01-01/docs-2.json index 19e2b560348..bd0a679e10f 100644 --- a/models/apis/opensearch/2021-01-01/docs-2.json +++ b/models/apis/opensearch/2021-01-01/docs-2.json @@ -90,7 +90,7 @@ } }, "AccessDeniedException": { - "base": "

An error occurred because user does not have permissions to access the resource. Returns HTTP status code 403.

", + "base": "

An error occurred because you don't have permissions to access the resource.

", "refs": { } }, @@ -443,7 +443,7 @@ } }, "ConflictException": { - "base": "

An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP status code 409.

", + "base": "

An error occurred because the client attempts to remove a resource that's currently in use.

", "refs": { } }, @@ -467,6 +467,22 @@ "RejectInboundConnectionRequest$ConnectionId": "

The unique identifier of the inbound connection to reject.

" } }, + "ConnectionMode": { + "base": "

The connection mode for the cross-cluster connection.

", + "refs": { + "CreateOutboundConnectionRequest$ConnectionMode": "

The connection mode.

", + "CreateOutboundConnectionResponse$ConnectionMode": "

The connection mode.

", + "InboundConnection$ConnectionMode": "

The connection mode.

", + "OutboundConnection$ConnectionMode": "

The connection mode.

" + } + }, + "ConnectionProperties": { + "base": "

The connection properties of an outbound connection.

", + "refs": { + "CreateOutboundConnectionResponse$ConnectionProperties": "

The ConnectionProperties for the newly created connection.

", + "OutboundConnection$ConnectionProperties": "

Properties for the outbound connection.

" + } + }, "ConnectionStatusMessage": { "base": null, "refs": { @@ -762,7 +778,7 @@ } }, "DisabledOperationException": { - "base": "

An error occured because the client wanted to access a not supported operation. Gives http status code of 409.

", + "base": "

An error occured because the client wanted to access an unsupported operation.

", "refs": { } }, @@ -1002,6 +1018,7 @@ "Endpoint": { "base": null, "refs": { + "ConnectionProperties$Endpoint": "

The endpoint of the remote domain.

", "VpcEndpoint$Endpoint": "

The connection endpoint ID for connecting to the domain.

" } }, @@ -1207,17 +1224,17 @@ } }, "InternalException": { - "base": "

The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.

", + "base": "

Request processing failed because of an unknown error, exception, or internal failure.

", "refs": { } }, "InvalidPaginationTokenException": { - "base": "

The request processing has failed because of invalid pagination token provided by customer. Returns an HTTP status code of 400.

", + "base": "

The request processing has failed because you provided an invalid pagination token.

", "refs": { } }, "InvalidTypeException": { - "base": "

An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409.

", + "base": "

An exception for trying to create or access a sub-resource that's either invalid or not supported.

", "refs": { } }, @@ -1248,7 +1265,7 @@ } }, "LimitExceededException": { - "base": "

An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.

", + "base": "

An exception for trying to create more than the allowed number of resources or sub-resources.

", "refs": { } }, @@ -1776,12 +1793,12 @@ } }, "ResourceAlreadyExistsException": { - "base": "

An exception for creating a resource that already exists. Gives http status code of 400.

", + "base": "

An exception for creating a resource that already exists.

", "refs": { } }, "ResourceNotFoundException": { - "base": "

An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.

", + "base": "

An exception for accessing or deleting a resource that doesn't exist.

", "refs": { } }, @@ -2200,7 +2217,7 @@ } }, "ValidationException": { - "base": "

An exception for missing / invalid input fields. Gives http status code of 400.

", + "base": "

An exception for missing or invalid input fields.

", "refs": { } }, diff --git a/models/apis/opensearch/2021-01-01/endpoint-rule-set-1.json b/models/apis/opensearch/2021-01-01/endpoint-rule-set-1.json index 543279fcfac..52831b1f5cb 100644 --- a/models/apis/opensearch/2021-01-01/endpoint-rule-set-1.json +++ b/models/apis/opensearch/2021-01-01/endpoint-rule-set-1.json @@ -165,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -275,12 +281,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -293,12 +305,18 @@ }, { "conditions": [], - "endpoint": { - "url": "https://es.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://es.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/opensearch/2021-01-01/endpoint-tests-1.json b/models/apis/opensearch/2021-01-01/endpoint-tests-1.json index 59b38b94ac8..4e66741b689 100644 --- a/models/apis/opensearch/2021-01-01/endpoint-tests-1.json +++ b/models/apis/opensearch/2021-01-01/endpoint-tests-1.json @@ -1,1759 +1,575 @@ { "testCases": [ { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ap-south-2.api.aws" + "url": "https://es.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-2" + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ap-south-2.amazonaws.com" + "url": "https://es.us-iso-west-1.c2s.ic.gov" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-2" + "UseFIPS": false, + "Region": "us-iso-west-1" } }, { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ap-south-2.api.aws" + "url": "https://es-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-south-2" + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" } }, { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ap-south-2.amazonaws.com" + "url": "https://es.ap-northeast-3.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-2" + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ap-south-1.api.aws" + "url": "https://es.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ap-south-1.amazonaws.com" + "url": "https://es-fips.us-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": true, - "Region": "ap-south-1" + "Region": "us-east-1" } }, { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ap-south-1.api.aws" + "url": "https://es.eu-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-1" + "Region": "eu-west-1" } }, { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ap-south-1.amazonaws.com" + "url": "https://es.eu-west-2.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-1" + "Region": "eu-west-2" } }, { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-south-1.api.aws" + "url": "https://es.eu-west-3.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-south-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-west-3" } }, { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-south-1.amazonaws.com" + "url": "https://es.me-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-1" + "UseFIPS": false, + "Region": "me-south-1" } }, { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-south-1.api.aws" + "url": "https://es.eu-north-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "eu-south-1" + "Region": "eu-north-1" } }, { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-south-1.amazonaws.com" + "url": "https://es.us-east-2.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "eu-south-1" + "Region": "us-east-2" } }, { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-south-2.api.aws" + "url": "https://es-fips.us-east-2.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": true, - "Region": "eu-south-2" + "Region": "us-east-2" } }, { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-south-2.amazonaws.com" + "url": "https://es.sa-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-2" + "UseFIPS": false, + "Region": "sa-east-1" } }, { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-south-2.api.aws" + "url": "https://es.ap-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "eu-south-2" + "Region": "ap-east-1" } }, { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-south-2.amazonaws.com" + "url": "https://es.eu-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "eu-south-2" + "Region": "eu-south-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.us-gov-east-1.api.aws" + "url": "https://es.eu-central-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-central-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.us-gov-east-1.amazonaws.com" + "url": "https://es.ap-southeast-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-east-1" + "UseFIPS": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.us-gov-east-1.api.aws" + "url": "https://es.ap-southeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "ap-southeast-2" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.us-gov-east-1.amazonaws.com" + "url": "https://es.ap-southeast-3.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "ap-southeast-3" } }, { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.me-central-1.api.aws" + "url": "https://es.ca-central-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-central-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "ca-central-1" } }, { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.me-central-1.amazonaws.com" + "url": "https://es.us-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "me-central-1" + "UseFIPS": false, + "Region": "us-west-1" } }, { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.me-central-1.api.aws" + "url": "https://es-fips.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "me-central-1" + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-west-1" } }, { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.me-central-1.amazonaws.com" + "url": "https://es.us-west-2.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "me-central-1" + "Region": "us-west-2" } }, { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ca-central-1.api.aws" + "url": "https://es-fips.us-west-2.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": true, - "Region": "ca-central-1" + "Region": "us-west-2" } }, { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.ca-central-1.amazonaws.com" + "url": "https://es.af-south-1.amazonaws.com" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" + "UseFIPS": false, + "Region": "af-south-1" } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ca-central-1.api.aws" + "url": "https://es.ap-south-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "ca-central-1" + "Region": "ap-south-1" } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.ca-central-1.amazonaws.com" + "url": "https://es.ap-northeast-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "ca-central-1" + "Region": "ap-northeast-1" } }, { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-central-1.api.aws" + "url": "https://es.ap-northeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-central-1" + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-northeast-2" } }, { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-central-1.amazonaws.com" + "url": "https://es-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, + "UseDualStack": true, "UseFIPS": true, - "Region": "eu-central-1" + "Region": "us-east-1" } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es.eu-central-1.api.aws" + "url": "https://es.us-east-1.api.aws" } }, "params": { "UseDualStack": true, "UseFIPS": false, - "Region": "eu-central-1" + "Region": "us-east-1" } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-central-1.amazonaws.com" + "url": "https://es.us-gov-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-iso-west-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.us-iso-west-1.c2s.ic.gov" + "url": "https://es-fips.us-gov-west-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": true, - "Region": "us-iso-west-1" - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-iso-west-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.us-iso-west-1.c2s.ic.gov" + "url": "https://es.us-gov-east-1.amazonaws.com" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "us-iso-west-1" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-central-2.api.aws" + "url": "https://es-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": true, - "Region": "eu-central-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es-fips.eu-central-2.amazonaws.com" + "url": "https://es-fips.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, + "UseDualStack": true, "UseFIPS": true, - "Region": "eu-central-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es.eu-central-2.api.aws" + "url": "https://es.us-gov-east-1.api.aws" } }, "params": { "UseDualStack": true, "UseFIPS": false, - "Region": "eu-central-2" + "Region": "us-gov-east-1" } }, { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.eu-central-2.amazonaws.com" + "url": "https://es.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-2" + "Region": "us-isob-east-1" } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.us-west-1.api.aws" + "url": "https://es-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": true, - "Region": "us-west-1" + "Region": "us-isob-east-1" } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es-fips.us-west-1.amazonaws.com" + "url": "https://es.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" + "UseFIPS": false, + "Region": "cn-northwest-1" } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.us-west-1.api.aws" + "url": "https://es.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": true, + "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.me-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.me-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.sa-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.sa-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-east-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "cn-north-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-gov-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-gov-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.us-gov-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-gov-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-west-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-1" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-3" - } - }, - { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-3" - } - }, - { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-southeast-3" - } - }, - { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-3" - } - }, - { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-4.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-4" - } - }, - { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.ap-southeast-4.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-4" - } - }, - { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-4.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-southeast-4" - } - }, - { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.ap-southeast-4.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-4" - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.us-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-east-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-2" - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.us-east-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-2" - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.us-east-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-2" - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-east-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-2" - } - }, - { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://es-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseDualStack": true, "UseFIPS": true, - "Region": "cn-northwest-1" - } - }, - { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es-fips.cn-northwest-1.amazonaws.com.cn" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "cn-northwest-1" - } - }, - { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://es.cn-northwest-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "cn-northwest-1" + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://es.cn-northwest-1.amazonaws.com.cn" + "url": "https://es-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "cn-northwest-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://es-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://es.cn-north-1.api.amazonwebservices.com.cn" } }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, "params": { "UseDualStack": true, "UseFIPS": false, - "Region": "us-isob-east-1" - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://es.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { diff --git a/models/apis/outposts/2019-12-03/endpoint-rule-set-1.json b/models/apis/outposts/2019-12-03/endpoint-rule-set-1.json index 89fb7e39b3b..5f12e35f840 100644 --- a/models/apis/outposts/2019-12-03/endpoint-rule-set-1.json +++ b/models/apis/outposts/2019-12-03/endpoint-rule-set-1.json @@ -165,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -219,6 +225,31 @@ "conditions": [], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://outposts.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { @@ -275,12 +306,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -293,12 +330,56 @@ }, { "conditions": [], - "endpoint": { - "url": "https://outposts.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://outposts.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://outposts.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://outposts.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/outposts/2019-12-03/endpoint-tests-1.json b/models/apis/outposts/2019-12-03/endpoint-tests-1.json index 095992cb7cd..6282c7c8e2f 100644 --- a/models/apis/outposts/2019-12-03/endpoint-tests-1.json +++ b/models/apis/outposts/2019-12-03/endpoint-tests-1.json @@ -1,874 +1,81 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-south-1.api.aws" + "url": "https://outposts.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.eu-south-1.api.aws" + "url": "https://outposts.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-1" + "Region": "us-gov-west-1" } }, { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.eu-south-1.api.aws" + "url": "https://outposts.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, "Region": "us-gov-east-1" } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.us-gov-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://outposts.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-gov-east-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.ca-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.af-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.af-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "af-south-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.me-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://outposts.me-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "me-south-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://outposts-fips.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "sa-east-1" + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://outposts-fips.sa-east-1.amazonaws.com" + "url": "https://outposts-fips.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "sa-east-1" + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://outposts.sa-east-1.api.aws" + "url": "https://outposts.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "sa-east-1" + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { @@ -879,329 +86,320 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "sa-east-1" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-east-1.api.aws" + "url": "https://outposts.af-south-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-east-1" + "UseFIPS": false, + "UseDualStack": false, + "Region": "af-south-1" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-east-1.amazonaws.com" + "url": "https://outposts.eu-central-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-east-1" + "Region": "eu-central-1" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-east-1.api.aws" + "url": "https://outposts.ap-southeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-east-1" + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-east-1.amazonaws.com" + "url": "https://outposts.ap-southeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-east-1" + "UseDualStack": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-gov-west-1.api.aws" + "url": "https://outposts.eu-north-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-gov-west-1" + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-gov-west-1.amazonaws.com" + "url": "https://outposts.us-west-2.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "us-west-2" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.us-gov-west-1.api.aws" + "url": "https://outposts-fips.us-west-2.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-gov-west-1" + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.us-gov-west-1.amazonaws.com" + "url": "https://outposts.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1" + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-1.api.aws" + "url": "https://outposts-fips.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-1.amazonaws.com" + "url": "https://outposts.ap-northeast-2.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-1" + "Region": "ap-northeast-2" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-1.api.aws" + "url": "https://outposts.ap-northeast-3.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-1.amazonaws.com" + "url": "https://outposts.ap-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "ap-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-2.api.aws" + "url": "https://outposts.ap-northeast-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-southeast-2" + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-northeast-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-2.amazonaws.com" + "url": "https://outposts.eu-south-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-2" + "Region": "eu-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-2.api.aws" + "url": "https://outposts.eu-west-3.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-2" + "UseDualStack": false, + "Region": "eu-west-3" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-2.amazonaws.com" + "url": "https://outposts.eu-west-2.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-2" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-iso-east-1" + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://outposts.eu-west-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-iso-east-1" + "Region": "eu-west-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://outposts.ap-east-1.amazonaws.com" + } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-iso-east-1" + "UseDualStack": false, + "Region": "ap-east-1" } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.us-iso-east-1.c2s.ic.gov" + "url": "https://outposts.ca-central-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-iso-east-1" + "UseDualStack": false, + "Region": "ca-central-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-3.api.aws" + "url": "https://outposts-fips.ca-central-1.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-3" + "UseDualStack": false, + "Region": "ca-central-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.ap-southeast-3.amazonaws.com" + "url": "https://outposts.me-south-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-southeast-3" + "Region": "me-south-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-3.api.aws" + "url": "https://outposts.us-east-2.amazonaws.com" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-3" + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.ap-southeast-3.amazonaws.com" + "url": "https://outposts-fips.us-east-2.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-southeast-3" + "Region": "us-east-2" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-east-1.api.aws" + "url": "https://outposts.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, + "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -1213,121 +411,125 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://outposts.us-east-1.api.aws" + "url": "https://outposts-fips.us-east-1.api.aws" } }, "params": { + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": false, "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://outposts.us-east-1.amazonaws.com" + "url": "https://outposts.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-east-2.api.aws" + "url": "https://outposts.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-2" + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-east-2.amazonaws.com" + "url": "https://outposts-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-east-2" + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://outposts.us-east-2.api.aws" + "url": "https://outposts-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": false, - "Region": "us-east-2" + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts.us-east-2.amazonaws.com" + "url": "https://outposts-fips.cn-north-1.amazonaws.com.cn" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-2" + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://outposts.cn-north-1.api.amazonwebservices.com.cn" + } }, "params": { + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": true, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://outposts-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://outposts.cn-north-1.amazonaws.com.cn" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-isob-east-1" + "Region": "cn-north-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://outposts-fips.us-isob-east-1.sc2s.sgov.gov" + } }, "params": { - "UseDualStack": true, - "UseFIPS": false, + "UseFIPS": true, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -1339,8 +541,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -1352,8 +554,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1364,8 +566,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -1376,8 +578,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/polly/2016-06-10/api-2.json b/models/apis/polly/2016-06-10/api-2.json index cf817e6978a..b8ebfba0ce4 100644 --- a/models/apis/polly/2016-06-10/api-2.json +++ b/models/apis/polly/2016-06-10/api-2.json @@ -853,7 +853,9 @@ "Sergio", "Remi", "Adriano", - "Thiago" + "Thiago", + "Ruth", + "Stephen" ] }, "VoiceList":{ diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 5bf3bbc7b05..a55f9db7074 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -4464,6 +4464,12 @@ "EndTimeOffset":{"shape":"MonitoringTimeOffsetString"} } }, + "BestObjectiveNotImproving":{ + "type":"structure", + "members":{ + "MaxNumberOfTrainingJobsNotImproving":{"shape":"MaxNumberOfTrainingJobsNotImproving"} + } + }, "Bias":{ "type":"structure", "members":{ @@ -5212,6 +5218,13 @@ "min":3, "pattern":".*" }, + "CompleteOnConvergence":{ + "type":"string", + "enum":[ + "Disabled", + "Enabled" + ] + }, "CompressionType":{ "type":"string", "enum":[ @@ -5398,6 +5411,12 @@ "max":30, "min":0 }, + "ConvergenceDetected":{ + "type":"structure", + "members":{ + "CompleteOnConvergence":{"shape":"CompleteOnConvergence"} + } + }, "CreateActionRequest":{ "type":"structure", "required":[ @@ -8198,7 +8217,9 @@ "BestTrainingJob":{"shape":"HyperParameterTrainingJobSummary"}, "OverallBestTrainingJob":{"shape":"HyperParameterTrainingJobSummary"}, "WarmStartConfig":{"shape":"HyperParameterTuningJobWarmStartConfig"}, - "FailureReason":{"shape":"FailureReason"} + "FailureReason":{"shape":"FailureReason"}, + "TuningJobCompletionDetails":{"shape":"HyperParameterTuningJobCompletionDetails"}, + "ConsumedResources":{"shape":"HyperParameterTuningJobConsumedResources"} } }, "DescribeImageRequest":{ @@ -11105,6 +11126,13 @@ "max":256, "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:hyper-parameter-tuning-job/.*" }, + "HyperParameterTuningJobCompletionDetails":{ + "type":"structure", + "members":{ + "NumberOfTrainingJobsObjectiveNotImproving":{"shape":"Integer"}, + "ConvergenceDetectedTime":{"shape":"Timestamp"} + } + }, "HyperParameterTuningJobConfig":{ "type":"structure", "required":[ @@ -11122,6 +11150,12 @@ "RandomSeed":{"shape":"RandomSeed"} } }, + "HyperParameterTuningJobConsumedResources":{ + "type":"structure", + "members":{ + "RuntimeInSeconds":{"shape":"Integer"} + } + }, "HyperParameterTuningJobName":{ "type":"string", "max":32, @@ -11168,7 +11202,9 @@ "OverallBestTrainingJob":{"shape":"HyperParameterTrainingJobSummary"}, "WarmStartConfig":{"shape":"HyperParameterTuningJobWarmStartConfig"}, "FailureReason":{"shape":"FailureReason"}, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "TuningJobCompletionDetails":{"shape":"HyperParameterTuningJobCompletionDetails"}, + "ConsumedResources":{"shape":"HyperParameterTuningJobConsumedResources"} } }, "HyperParameterTuningJobSortByOptions":{ @@ -11250,6 +11286,11 @@ "TransferLearning" ] }, + "HyperParameterTuningMaxRuntimeInSeconds":{ + "type":"integer", + "max":15768000, + "min":120 + }, "HyperParameterTuningResourceConfig":{ "type":"structure", "members":{ @@ -13917,6 +13958,10 @@ "type":"integer", "min":1 }, + "MaxNumberOfTrainingJobsNotImproving":{ + "type":"integer", + "min":3 + }, "MaxParallelExecutionSteps":{ "type":"integer", "min":1 @@ -17526,7 +17571,8 @@ "required":["MaxParallelTrainingJobs"], "members":{ "MaxNumberOfTrainingJobs":{"shape":"MaxNumberOfTrainingJobs"}, - "MaxParallelTrainingJobs":{"shape":"MaxParallelTrainingJobs"} + "MaxParallelTrainingJobs":{"shape":"MaxParallelTrainingJobs"}, + "MaxRuntimeInSeconds":{"shape":"HyperParameterTuningMaxRuntimeInSeconds"} } }, "ResourceNotFound":{ @@ -19560,9 +19606,10 @@ }, "TuningJobCompletionCriteria":{ "type":"structure", - "required":["TargetObjectiveMetricValue"], "members":{ - "TargetObjectiveMetricValue":{"shape":"TargetObjectiveMetricValue"} + "TargetObjectiveMetricValue":{"shape":"TargetObjectiveMetricValue"}, + "BestObjectiveNotImproving":{"shape":"BestObjectiveNotImproving"}, + "ConvergenceDetected":{"shape":"ConvergenceDetected"} } }, "TuningJobStepMetaData":{ diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index 73dd18f9afc..897293882c1 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -1201,6 +1201,12 @@ "MonitoringInput$BatchTransformInput": "

Input object for the batch transform job.

" } }, + "BestObjectiveNotImproving": { + "base": "

A structure that keeps track of which training jobs launched by your hyperparameter tuning job are not improving model performance as evaluated against an objective function.

", + "refs": { + "TuningJobCompletionCriteria$BestObjectiveNotImproving": "

A flag to stop your hyperparameter tuning job if model performance fails to improve as evaluated against an objective function.

" + } + }, "Bias": { "base": "

Contains bias metrics for a model.

", "refs": { @@ -1867,6 +1873,12 @@ "OutputConfig$CompilerOptions": "

Specifies additional parameters for compiler options in JSON format. The compiler options are TargetPlatform specific. It is required for NVIDIA accelerators and highly recommended for CPU compilations. For any other cases, it is optional to specify CompilerOptions.

" } }, + "CompleteOnConvergence": { + "base": null, + "refs": { + "ConvergenceDetected$CompleteOnConvergence": "

A flag to stop a tuning job once AMT has detected that the job has converged.

" + } + }, "CompressionType": { "base": null, "refs": { @@ -2072,6 +2084,12 @@ "ParameterRanges$ContinuousParameterRanges": "

The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

" } }, + "ConvergenceDetected": { + "base": "

A flag to indicating that automatic model tuning (AMT) has detected model convergence, defined as a lack of significant improvement (1% or less) against an objective metric.

", + "refs": { + "TuningJobCompletionCriteria$ConvergenceDetected": "

A flag to top your hyperparameter tuning job if automatic model tuning (AMT) has detected that your model has converged as evaluated against your objective function.

" + } + }, "CreateActionRequest": { "base": null, "refs": { @@ -5897,6 +5915,13 @@ "TuningJobStepMetaData$Arn": "

The Amazon Resource Name (ARN) of the tuning job that was run by this step execution.

" } }, + "HyperParameterTuningJobCompletionDetails": { + "base": "

A structure that contains runtime information about both current and completed hyperparameter tuning jobs.

", + "refs": { + "DescribeHyperParameterTuningJobResponse$TuningJobCompletionDetails": "

Tuning job completion information returned as the response from a hyperparameter tuning job. This information tells if your tuning job has or has not converged. It also includes the number of training jobs that have not improved model performance as evaluated against the objective function.

", + "HyperParameterTuningJobSearchEntity$TuningJobCompletionDetails": "

Information about either a current or completed hyperparameter tuning job.

" + } + }, "HyperParameterTuningJobConfig": { "base": "

Configures a hyperparameter tuning job.

", "refs": { @@ -5905,6 +5930,13 @@ "HyperParameterTuningJobSearchEntity$HyperParameterTuningJobConfig": null } }, + "HyperParameterTuningJobConsumedResources": { + "base": "

The total resources consumed by your hyperparameter tuning job.

", + "refs": { + "DescribeHyperParameterTuningJobResponse$ConsumedResources": null, + "HyperParameterTuningJobSearchEntity$ConsumedResources": "

The total amount of resources consumed by a hyperparameter tuning job.

" + } + }, "HyperParameterTuningJobName": { "base": null, "refs": { @@ -5968,7 +6000,7 @@ } }, "HyperParameterTuningJobStrategyType": { - "base": "

The strategy hyperparameter tuning uses to find the best combination of hyperparameters for your model. Currently, the only supported value is Bayesian.

", + "base": "

The strategy hyperparameter tuning uses to find the best combination of hyperparameters for your model.

", "refs": { "HyperParameterTuningJobConfig$Strategy": "

Specifies how hyperparameter tuning chooses the combinations of hyperparameter values to use for the training job it launches. For information about search strategies, see How Hyperparameter Tuning Works.

", "HyperParameterTuningJobSummary$Strategy": "

Specifies the search strategy hyperparameter tuning uses to choose which hyperparameters to evaluate at each iteration.

" @@ -6000,6 +6032,12 @@ "HyperParameterTuningJobWarmStartConfig$WarmStartType": "

Specifies one of the following:

IDENTICAL_DATA_AND_ALGORITHM

The new hyperparameter tuning job uses the same input data and training image as the parent tuning jobs. You can change the hyperparameter ranges to search and the maximum number of training jobs that the hyperparameter tuning job launches. You cannot use a new version of the training algorithm, unless the changes in the new version do not affect the algorithm itself. For example, changes that improve logging or adding support for a different data format are allowed. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

TRANSFER_LEARNING

The new hyperparameter tuning job can include input data, hyperparameter ranges, maximum number of concurrent training jobs, and maximum number of training jobs that are different than those of its parent hyperparameter tuning jobs. The training image can also be a different version from the version used in the parent hyperparameter tuning job. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

" } }, + "HyperParameterTuningMaxRuntimeInSeconds": { + "base": null, + "refs": { + "ResourceLimits$MaxRuntimeInSeconds": "

The maximum time in seconds that a training job launched by a hyperparameter tuning job can run.

" + } + }, "HyperParameterTuningResourceConfig": { "base": "

The configuration of resources, including compute instances and storage volumes for use in training jobs launched by hyperparameter tuning jobs. HyperParameterTuningResourceConfig is similar to ResourceConfig, but has the additional InstanceConfigs and AllocationStrategy fields to allow for flexible instance management. Specify one or more instance types, count, and the allocation strategy for instance selection.

HyperParameterTuningResourceConfig supports the capabilities of ResourceConfig with the exception of KeepAlivePeriodInSeconds. Hyperparameter tuning jobs use warm pools by default, which reuse clusters between training jobs.

", "refs": { @@ -6527,6 +6565,8 @@ "EdgeDeploymentStatus$EdgeDeploymentPendingInStage": "

The number of edge devices yet to pick up the deployment in current stage, or in progress.

", "EdgeDeploymentStatus$EdgeDeploymentFailedInStage": "

The number of edge devices that failed the deployment in current stage.

", "EndpointOutputConfiguration$InitialInstanceCount": "

The number of instances recommended to launch initially.

", + "HyperParameterTuningJobCompletionDetails$NumberOfTrainingJobsObjectiveNotImproving": "

The number of training jobs launched by a tuning job that are not improving (1% or less) as measured by model performance evaluated against an objective function.

", + "HyperParameterTuningJobConsumedResources$RuntimeInSeconds": "

The wall clock runtime in seconds used by your hyperparameter tuning job.

", "InferenceMetrics$MaxInvocations": "

The expected maximum number of requests per minute for the instance.

", "InferenceMetrics$ModelLatency": "

The expected model latency at maximum invocations per minute for the instance.

", "ListModelCardExportJobsRequest$ModelCardVersion": "

List export jobs for the model card with the specified version.

", @@ -7884,6 +7924,12 @@ "ResourceLimits$MaxNumberOfTrainingJobs": "

The maximum number of training jobs that a hyperparameter tuning job can launch.

" } }, + "MaxNumberOfTrainingJobsNotImproving": { + "base": null, + "refs": { + "BestObjectiveNotImproving$MaxNumberOfTrainingJobsNotImproving": "

The number of training jobs that have failed to improve model performance by 1% or greater over prior training jobs as evaluated against an objective function.

" + } + }, "MaxParallelExecutionSteps": { "base": null, "refs": { @@ -12970,6 +13016,7 @@ "HyperParameterTrainingJobSummary$CreationTime": "

The date and time that the training job was created.

", "HyperParameterTrainingJobSummary$TrainingStartTime": "

The date and time that the training job started.

", "HyperParameterTrainingJobSummary$TrainingEndTime": "

Specifies the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when SageMaker detects a job failure.

", + "HyperParameterTuningJobCompletionDetails$ConvergenceDetectedTime": "

The time in timestamp format that AMT detected model convergence, as defined by a lack of significant improvement over time based on criteria developed over a wide range of diverse benchmarking tests.

", "HyperParameterTuningJobSearchEntity$CreationTime": "

The time that a hyperparameter tuning job was created.

", "HyperParameterTuningJobSearchEntity$HyperParameterTuningEndTime": "

The time that a hyperparameter tuning job ended.

", "HyperParameterTuningJobSearchEntity$LastModifiedTime": "

The time that a hyperparameter tuning job was last modified.

", diff --git a/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json b/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json index f4bbb8c6c2a..664c13c206f 100644 --- a/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json +++ b/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json @@ -1,29 +1,16 @@ { "testCases": [ { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-iso-east-1.c2s.ic.gov" + "url": "https://api.sagemaker.af-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-iso-east-1" - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.sagemaker-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": true, - "Region": "us-iso-east-1" + "Region": "af-south-1" } }, { @@ -34,74 +21,48 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-east-1" } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.eu-west-1.amazonaws.com" + "url": "https://api.sagemaker.ap-northeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.sagemaker.eu-west-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" + "Region": "ap-northeast-1" } }, { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.eu-west-3.amazonaws.com" + "url": "https://api.sagemaker.ap-northeast-2.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.sagemaker.eu-south-1.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-south-1" + "Region": "ap-northeast-2" } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.ap-northeast-1.amazonaws.com" + "url": "https://api.sagemaker.ap-northeast-3.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-1" + "UseDualStack": false, + "Region": "ap-northeast-3" } }, { @@ -112,152 +73,139 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-south-1" } }, { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.ap-northeast-3.amazonaws.com" + "url": "https://api.sagemaker.ap-southeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-3" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.sagemaker.ap-northeast-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "ap-southeast-1" } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-west-1.amazonaws.com" + "url": "https://api.sagemaker.ap-southeast-2.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-1" + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api-fips.sagemaker.us-west-1.amazonaws.com" + "url": "https://api.sagemaker.ca-central-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" + "Region": "ca-central-1" } }, { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-west-2.amazonaws.com" + "url": "https://api.sagemaker.eu-central-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-2" + "UseDualStack": false, + "Region": "eu-central-1" } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api-fips.sagemaker.us-west-2.amazonaws.com" + "url": "https://api.sagemaker.eu-north-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" + "Region": "eu-north-1" } }, { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.eu-north-1.amazonaws.com" + "url": "https://api.sagemaker.eu-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-north-1" + "UseDualStack": false, + "Region": "eu-south-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.ap-southeast-1.amazonaws.com" + "url": "https://api.sagemaker.eu-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false, + "Region": "eu-west-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.ap-southeast-2.amazonaws.com" + "url": "https://api.sagemaker.eu-west-2.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-2" + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.eu-central-1.amazonaws.com" + "url": "https://api.sagemaker.eu-west-3.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-1" + "UseDualStack": false, + "Region": "eu-west-3" } }, { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.af-south-1.amazonaws.com" + "url": "https://api.sagemaker.me-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "af-south-1" + "UseDualStack": false, + "Region": "me-south-1" } }, { @@ -268,8 +216,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "sa-east-1" } }, @@ -281,8 +229,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -294,8 +242,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -307,8 +255,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-2" } }, @@ -320,35 +268,61 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-2" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.me-south-1.amazonaws.com" + "url": "https://api.sagemaker.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "me-south-1" + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.ca-central-1.amazonaws.com" + "url": "https://api-fips.sagemaker.us-west-1.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, + "Region": "us-west-1" + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://api.sagemaker.us-west-2.amazonaws.com" + } + }, + "params": { "UseFIPS": false, - "Region": "ca-central-1" + "UseDualStack": false, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://api-fips.sagemaker.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-2" } }, { @@ -359,8 +333,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "us-east-1" } }, @@ -372,178 +346,204 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-gov-west-1.amazonaws.com" + "url": "https://api.sagemaker.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1" + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api-fips.sagemaker.us-gov-west-1.amazonaws.com" + "url": "https://api.sagemaker.cn-northwest-1.amazonaws.com.cn" } }, "params": { + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "cn-northwest-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.sagemaker-fips.us-gov-east-1.api.aws" + "url": "https://api.sagemaker-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api-fips.sagemaker.us-gov-east-1.amazonaws.com" + "url": "https://api.sagemaker-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-gov-east-1.api.aws" + "url": "https://api.sagemaker.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-east-1" + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-gov-east-1.amazonaws.com" + "url": "https://api.sagemaker.us-gov-west-1.amazonaws.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-east-1" + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://api-fips.sagemaker.us-gov-west-1.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://api.sagemaker-fips.us-gov-east-1.api.aws" + } + }, + "params": { "UseFIPS": true, - "Region": "us-isob-east-1" + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.us-isob-east-1.sc2s.sgov.gov" + "url": "https://api-fips.sagemaker.us-gov-east-1.amazonaws.com" } }, "params": { + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": false, - "Region": "us-isob-east-1" + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.cn-northwest-1.amazonaws.com.cn" + "url": "https://api.sagemaker.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "cn-northwest-1" + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.cn-north-1.amazonaws.com.cn" + "url": "https://api.sagemaker.us-gov-east-1.amazonaws.com" } }, "params": { + "UseFIPS": false, "UseDualStack": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://api.sagemaker.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker-fips.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://api.sagemaker-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker-fips.cn-north-1.amazonaws.com.cn" + "url": "https://api.sagemaker-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://api.sagemaker.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://api.sagemaker.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { @@ -554,8 +554,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -566,8 +566,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -578,8 +578,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/securityhub/2018-10-26/api-2.json b/models/apis/securityhub/2018-10-26/api-2.json index 3d9412de711..2696bb0a5ff 100644 --- a/models/apis/securityhub/2018-10-26/api-2.json +++ b/models/apis/securityhub/2018-10-26/api-2.json @@ -1041,6 +1041,16 @@ "type":"list", "member":{"shape":"NonEmptyString"} }, + "AssociatedStandard":{ + "type":"structure", + "members":{ + "StandardsId":{"shape":"NonEmptyString"} + } + }, + "AssociatedStandardsList":{ + "type":"list", + "member":{"shape":"AssociatedStandard"} + }, "AutoEnableStandards":{ "type":"string", "enum":[ @@ -5444,7 +5454,9 @@ "FindingProviderFieldsSeverityLabel":{"shape":"StringFilterList"}, "FindingProviderFieldsSeverityOriginal":{"shape":"StringFilterList"}, "FindingProviderFieldsTypes":{"shape":"StringFilterList"}, - "Sample":{"shape":"BooleanFilterList"} + "Sample":{"shape":"BooleanFilterList"}, + "ComplianceSecurityControlId":{"shape":"StringFilterList"}, + "ComplianceAssociatedStandardsId":{"shape":"StringFilterList"} } }, "AwsSecurityFindingIdentifier":{ @@ -6040,7 +6052,9 @@ "members":{ "Status":{"shape":"ComplianceStatus"}, "RelatedRequirements":{"shape":"RelatedRequirementsList"}, - "StatusReasons":{"shape":"StatusReasonsList"} + "StatusReasons":{"shape":"StatusReasonsList"}, + "SecurityControlId":{"shape":"NonEmptyString"}, + "AssociatedStandards":{"shape":"AssociatedStandardsList"} } }, "ComplianceStatus":{ diff --git a/models/apis/securityhub/2018-10-26/docs-2.json b/models/apis/securityhub/2018-10-26/docs-2.json index 3cf2b76d38e..1e08e436aaf 100644 --- a/models/apis/securityhub/2018-10-26/docs-2.json +++ b/models/apis/securityhub/2018-10-26/docs-2.json @@ -205,6 +205,18 @@ "GetInsightsRequest$InsightArns": "

The ARNs of the insights to describe. If you do not provide any insight ARNs, then GetInsights returns all of your custom insights. It does not return any managed insights.

" } }, + "AssociatedStandard": { + "base": "

Information about an enabled security standard in which a security control is enabled.

", + "refs": { + "AssociatedStandardsList$member": null + } + }, + "AssociatedStandardsList": { + "base": null, + "refs": { + "Compliance$AssociatedStandards": "

The enabled security standards in which a security control is currently enabled.

" + } + }, "AutoEnableStandards": { "base": null, "refs": { @@ -3564,7 +3576,7 @@ } }, "AwsWafv2RulesDetails": { - "base": "

Provides details about rules in a rule group. A rule identifies web requests that you want to allow, block, or count. Each rule includes one top-level Statement that AWS WAF uses to identify matching web requests, and parameters that govern how AWS WAF handles them.

", + "base": "

Provides details about rules in a rule group. A rule identifies web requests that you want to allow, block, or count. Each rule includes one top-level Statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.

", "refs": { "AwsWafv2RulesList$member": null } @@ -5162,6 +5174,7 @@ "Adjustment$Reason": "

The reason for the adjustment.

", "AdminAccount$AccountId": "

The Amazon Web Services account identifier of the Security Hub administrator account.

", "ArnList$member": null, + "AssociatedStandard$StandardsId": "

The unique identifier of a standard in which a control is enabled. This field consists of the resource portion of the Amazon Resource Name (ARN) returned for a standard in the DescribeStandards API response.

", "AvailabilityZone$ZoneName": "

The name of the Availability Zone.

", "AvailabilityZone$SubnetId": "

The ID of the subnet. You can specify one subnet per Availability Zone.

", "AwsApiCallAction$Api": "

The name of the API method that was issued.

", @@ -6165,7 +6178,7 @@ "AwsS3ObjectDetails$ContentType": "

A standard MIME type describing the format of the object data.

", "AwsS3ObjectDetails$ServerSideEncryption": "

If the object is stored using server-side encryption, the value of the server-side encryption algorithm used when storing this object in Amazon S3.

", "AwsS3ObjectDetails$SSEKMSKeyId": "

The identifier of the KMS symmetric customer managed key that was used for the object.

", - "AwsSageMakerNotebookInstanceDetails$DefaultCodeRepository": "

The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in AWS CodeCommit or in any other Git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git repositories with SageMaker notebook instances in the Amazon SageMaker Developer Guide.

", + "AwsSageMakerNotebookInstanceDetails$DefaultCodeRepository": "

The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in CodeCommit or in any other Git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git repositories with SageMaker notebook instances in the Amazon SageMaker Developer Guide.

", "AwsSageMakerNotebookInstanceDetails$DirectInternetAccess": "

Sets whether SageMaker provides internet access to the notebook instance. If you set this to Disabled, this notebook instance is able to access resources only in your VPC, and is not be able to connect to SageMaker training and endpoint services unless you configure a Network Address Translation (NAT) Gateway in your VPC.

", "AwsSageMakerNotebookInstanceDetails$FailureReason": "

If status of the instance is Failed, the reason it failed.

", "AwsSageMakerNotebookInstanceDetails$InstanceType": "

The type of machine learning (ML) compute instance to launch for the notebook instance.

", @@ -6300,6 +6313,7 @@ "ClassificationResult$MimeType": "

The type of content that the finding applies to.

", "ClassificationStatus$Code": "

The code that represents the status of the sensitive data detection.

", "ClassificationStatus$Reason": "

A longer description of the current status of the sensitive data detection.

", + "Compliance$SecurityControlId": "

The unique identifier of a control across standards. Values for this field typically consist of an Amazon Web Service and a number, such as APIGateway.5.

", "ContainerDetails$ContainerRuntime": "

The runtime of the container.

", "ContainerDetails$Name": "

The name of the container related to a finding.

", "ContainerDetails$ImageId": "

The identifier of the container image related to a finding.

", @@ -6397,7 +6411,7 @@ "Member$Email": "

The email address of the member account.

", "Member$MasterId": "

This is replaced by AdministratorID.

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

", "Member$AdministratorId": "

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

", - "Member$MemberStatus": "

The status of the relationship between the member account and its administrator account.

The status can have one of the following values:

", + "Member$MemberStatus": "

The status of the relationship between the member account and its administrator account.

The status can have one of the following values:

", "Network$Protocol": "

The protocol of network-related information about a finding.

", "Network$SourceIpV4": "

The source IPv4 address of network-related information about a finding.

", "Network$SourceIpV6": "

The source IPv6 address of network-related information about a finding.

", @@ -6608,7 +6622,7 @@ "AwsRdsEventSubscriptionDetails$EventCategoriesList": "

The list of event categories for the event notification subscription.

", "AwsRdsEventSubscriptionDetails$SourceIdsList": "

A list of source identifiers for the event notification subscription.

", "AwsSageMakerNotebookInstanceDetails$AcceleratorTypes": "

A list of Amazon Elastic Inference instance types to associate with the notebook instance. Currently, only one instance type can be associated with a notebook instance.

", - "AwsSageMakerNotebookInstanceDetails$AdditionalCodeRepositories": "

An array of up to three Git repositories associated with the notebook instance. These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in AWS CodeCommit or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git repositories with SageMaker notebook instances in the Amazon SageMaker Developer Guide.

", + "AwsSageMakerNotebookInstanceDetails$AdditionalCodeRepositories": "

An array of up to three Git repositories associated with the notebook instance. These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in CodeCommit or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git repositories with SageMaker notebook instances in the Amazon SageMaker Developer Guide.

", "AwsSageMakerNotebookInstanceDetails$SecurityGroups": "

The VPC security group IDs.

", "FirewallPolicyDetails$StatelessDefaultActions": "

The actions to take on a packet if it doesn't match any of the stateless rules in the policy.

You must specify a standard action (aws:pass, aws:drop, aws:forward_to_sfe), and can optionally include a custom action from StatelessCustomActions.

", "FirewallPolicyDetails$StatelessFragmentDefaultActions": "

The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.

You must specify a standard action (aws:pass, aws:drop, aws:forward_to_sfe), and can optionally include a custom action from StatelessCustomActions.

", @@ -7351,7 +7365,9 @@ "AwsSecurityFindingFilters$FindingProviderFieldsRelatedFindingsProductArn": "

The ARN of the solution that generated a related finding that is identified by the finding provider.

", "AwsSecurityFindingFilters$FindingProviderFieldsSeverityLabel": "

The finding provider value for the severity label.

", "AwsSecurityFindingFilters$FindingProviderFieldsSeverityOriginal": "

The finding provider's original value for the severity.

", - "AwsSecurityFindingFilters$FindingProviderFieldsTypes": "

One or more finding types that the finding provider assigned to the finding. Uses the format of namespace/category/classifier that classify a finding.

Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications

" + "AwsSecurityFindingFilters$FindingProviderFieldsTypes": "

One or more finding types that the finding provider assigned to the finding. Uses the format of namespace/category/classifier that classify a finding.

Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications

", + "AwsSecurityFindingFilters$ComplianceSecurityControlId": "

The unique identifier of a control across standards. Values for this field typically consist of an Amazon Web Service and a number, such as APIGateway.5.

", + "AwsSecurityFindingFilters$ComplianceAssociatedStandardsId": "

The unique identifier of a standard in which a control is enabled. This field consists of the resource portion of the Amazon Resource Name (ARN) returned for a standard in the DescribeStandards API response.

" } }, "StringList": { diff --git a/models/apis/securityhub/2018-10-26/endpoint-rule-set-1.json b/models/apis/securityhub/2018-10-26/endpoint-rule-set-1.json index 029b4b1afca..8b5f8f17089 100644 --- a/models/apis/securityhub/2018-10-26/endpoint-rule-set-1.json +++ b/models/apis/securityhub/2018-10-26/endpoint-rule-set-1.json @@ -165,12 +165,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -275,12 +281,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -293,12 +305,18 @@ }, { "conditions": [], - "endpoint": { - "url": "https://securityhub.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://securityhub.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] } diff --git a/models/apis/securityhub/2018-10-26/endpoint-tests-1.json b/models/apis/securityhub/2018-10-26/endpoint-tests-1.json index ecc2b7b26ba..84c39af1d63 100644 --- a/models/apis/securityhub/2018-10-26/endpoint-tests-1.json +++ b/models/apis/securityhub/2018-10-26/endpoint-tests-1.json @@ -1,978 +1,146 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-north-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-3", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-3", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-3", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-3", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-northeast-2.amazonaws.com" + "url": "https://securityhub.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-northeast-1.amazonaws.com" + "url": "https://securityhub-fips.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-northeast-1.amazonaws.com" + "url": "https://securityhub.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.me-south-1.api.aws" + "url": "https://securityhub-fips.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.me-south-1.amazonaws.com" + "url": "https://securityhub-fips.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": false + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://securityhub.me-south-1.api.aws" + "url": "https://securityhub.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": true + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.me-south-1.amazonaws.com" + "url": "https://securityhub.ap-southeast-3.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.sa-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.sa-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "ap-southeast-3" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.sa-east-1.api.aws" + "url": "https://securityhub.ap-southeast-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.sa-east-1.amazonaws.com" + "url": "https://securityhub.ap-southeast-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.ap-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-east-1.amazonaws.com" + "url": "https://securityhub.eu-central-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-east-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-central-1" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-east-1.api.aws" + "url": "https://securityhub.eu-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "eu-south-1" } }, { @@ -984,268 +152,268 @@ }, "params": { "UseFIPS": false, - "Region": "ap-east-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "ap-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://securityhub.sa-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "cn-north-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "sa-east-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.cn-north-1.amazonaws.com.cn" + "url": "https://securityhub.us-east-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "cn-north-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://securityhub-fips.us-east-2.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "cn-north-1", - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.cn-north-1.amazonaws.com.cn" + "url": "https://securityhub.eu-north-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "cn-north-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "eu-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.us-gov-west-1.api.aws" + "url": "https://securityhub.me-south-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "me-south-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.us-gov-west-1.amazonaws.com" + "url": "https://securityhub.eu-west-3.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-west-3" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.us-gov-west-1.api.aws" + "url": "https://securityhub.eu-west-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.us-gov-west-1.amazonaws.com" + "url": "https://securityhub.eu-west-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "eu-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-1.api.aws" + "url": "https://securityhub.us-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-1.amazonaws.com" + "url": "https://securityhub-fips.us-east-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-1.api.aws" + "url": "https://securityhub.ap-northeast-3.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-northeast-3" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-1.amazonaws.com" + "url": "https://securityhub.ap-northeast-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "ap-northeast-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-2.api.aws" + "url": "https://securityhub.ap-northeast-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-northeast-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-2.amazonaws.com" + "url": "https://securityhub.ap-south-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-2.api.aws" + "url": "https://securityhub.af-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": true + "UseDualStack": false, + "Region": "af-south-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-2.amazonaws.com" + "url": "https://securityhub.us-west-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-3.api.aws" + "url": "https://securityhub-fips.us-west-2.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-3", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.ap-southeast-3.amazonaws.com" + "url": "https://securityhub.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-3", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-3.api.aws" + "url": "https://securityhub-fips.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "ap-southeast-3", - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.ap-southeast-3.amazonaws.com" + "url": "https://securityhub.ca-central-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-3", - "UseDualStack": false + "UseDualStack": false, + "Region": "ca-central-1" } }, { @@ -1257,21 +425,8 @@ }, "params": { "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://securityhub-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": false + "UseDualStack": true, + "Region": "us-east-1" } }, { @@ -1283,125 +438,125 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": true + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.us-east-1.amazonaws.com" + "url": "https://securityhub-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.us-east-2.api.aws" + "url": "https://securityhub.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": true, - "Region": "us-east-2", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.us-east-2.amazonaws.com" + "url": "https://securityhub.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseFIPS": true, - "Region": "us-east-2", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.us-east-2.api.aws" + "url": "https://securityhub.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, - "Region": "us-east-2", - "UseDualStack": true + "UseDualStack": false, + "Region": "cn-northwest-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://securityhub.us-east-2.amazonaws.com" + "url": "https://securityhub-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseFIPS": false, - "Region": "us-east-2", - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://securityhub-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://securityhub-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://securityhub.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://securityhub-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://securityhub.cn-northwest-1.amazonaws.com.cn" + "url": "https://securityhub.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { @@ -1413,8 +568,8 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -1425,8 +580,8 @@ }, "params": { "UseFIPS": true, - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -1437,8 +592,8 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/support/2013-04-15/endpoint-rule-set-1.json b/models/apis/support/2013-04-15/endpoint-rule-set-1.json index afc427cec0f..b4c1ecb7491 100644 --- a/models/apis/support/2013-04-15/endpoint-rule-set-1.json +++ b/models/apis/support/2013-04-15/endpoint-rule-set-1.json @@ -105,6 +105,845 @@ } ] }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws" + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.api.aws", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support.{Region}.api.aws", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.us-east-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-east-1", + "signingName": "support" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-cn" + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.api.amazonwebservices.com.cn", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.amazonaws.com.cn", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support.{Region}.api.amazonwebservices.com.cn", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.cn-north-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "cn-north-1", + "signingName": "support" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-us-gov" + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.api.aws", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support.{Region}.api.aws", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.us-gov-west-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-gov-west-1", + "signingName": "support" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso" + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.c2s.ic.gov", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.us-iso-east-1.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-iso-east-1", + "signingName": "support" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-b" + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.sc2s.sgov.gov", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.us-isob-east-1.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-isob-east-1", + "signingName": "support" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + } + ] + }, { "conditions": [ { @@ -165,12 +1004,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, @@ -219,25 +1064,6 @@ "conditions": [], "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "us-gov-west-1" - ] - } - ], - "endpoint": { - "url": "https://support.us-gov-west-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, { "conditions": [], "endpoint": { @@ -294,12 +1120,18 @@ "rules": [ { "conditions": [], - "endpoint": { - "url": "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] }, diff --git a/models/apis/support/2013-04-15/endpoint-tests-1.json b/models/apis/support/2013-04-15/endpoint-tests-1.json index 85f721d132d..03d6016ad73 100644 --- a/models/apis/support/2013-04-15/endpoint-tests-1.json +++ b/models/apis/support/2013-04-15/endpoint-tests-1.json @@ -1,37 +1,76 @@ { "testCases": [ { - "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", + "documentation": "For region aws-global with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { - "signingRegion": "cn-north-1", + "name": "sigv4", "signingName": "support", - "name": "sigv4" + "signingRegion": "us-east-1" } ] }, - "url": "https://support.cn-north-1.amazonaws.com.cn" + "url": "https://support.us-east-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "aws-cn-global", - "UseDualStack": false + "Region": "aws-global" } }, { - "documentation": "For region aws-global with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://support.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { - "signingRegion": "us-east-1", + "name": "sigv4", "signingName": "support", - "name": "sigv4" + "signingRegion": "us-east-1" } ] }, @@ -39,83 +78,232 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "aws-global", - "UseDualStack": false + "Region": "us-east-1" } }, { - "documentation": "For region aws-iso-global with FIPS disabled and DualStack disabled", + "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { - "signingRegion": "us-iso-east-1", + "name": "sigv4", "signingName": "support", - "name": "sigv4" + "signingRegion": "cn-north-1" } ] }, - "url": "https://support.us-iso-east-1.c2s.ic.gov" + "url": "https://support.cn-north-1.amazonaws.com.cn" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "aws-iso-global", - "UseDualStack": false + "Region": "aws-cn-global" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://support-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://support-fips.us-gov-west-1.api.aws" + "url": "https://support-fips.cn-north-1.amazonaws.com.cn" } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": true + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://support.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "cn-north-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "cn-north-1" + } + ] + }, + "url": "https://support.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region aws-us-gov-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] + }, "url": "https://support.us-gov-west-1.amazonaws.com" } }, "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "aws-us-gov-global" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": false + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://support.us-gov-west-1.api.aws" + "url": "https://support.us-gov-east-1.api.aws" } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": true + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] + }, "url": "https://support.us-gov-west-1.amazonaws.com" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": false + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region aws-iso-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-iso-east-1" + } + ] + }, + "url": "https://support.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "aws-iso-global" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-iso-east-1" + } + ] + }, + "url": "https://support.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" } }, { @@ -125,9 +313,9 @@ "properties": { "authSchemes": [ { - "signingRegion": "us-isob-east-1", + "name": "sigv4", "signingName": "support", - "name": "sigv4" + "signingRegion": "us-isob-east-1" } ] }, @@ -135,31 +323,44 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "aws-iso-b-global", - "UseDualStack": false + "Region": "aws-iso-b-global" } }, { - "documentation": "For region aws-us-gov-global with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://support-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { - "signingRegion": "us-gov-west-1", + "name": "sigv4", "signingName": "support", - "name": "sigv4" + "signingRegion": "us-isob-east-1" } ] }, - "url": "https://support.us-gov-west-1.amazonaws.com" + "url": "https://support.us-isob-east-1.sc2s.sgov.gov" } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "aws-us-gov-global", - "UseDualStack": false + "Region": "us-isob-east-1" } }, { @@ -170,9 +371,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, "Region": "us-east-1", - "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -182,9 +383,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "UseDualStack": false, "UseFIPS": true, "Region": "us-east-1", - "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -194,9 +395,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "UseDualStack": true, "UseFIPS": false, "Region": "us-east-1", - "UseDualStack": true, "Endpoint": "https://example.com" } } diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 8027bda7f4f..39eb85da579 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -2711,6 +2711,32 @@ } } }, + "cloudtrail-data" : { + "endpoints" : { + "af-south-1" : { }, + "ap-east-1" : { }, + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-northeast-3" : { }, + "ap-south-1" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "ap-southeast-3" : { }, + "ca-central-1" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-south-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "eu-west-3" : { }, + "me-south-1" : { }, + "sa-east-1" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-1" : { }, + "us-west-2" : { } + } + }, "codeartifact" : { "endpoints" : { "ap-northeast-1" : { }, @@ -7063,6 +7089,7 @@ "deprecated" : true, "hostname" : "glue-fips.us-west-2.amazonaws.com" }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { @@ -18446,12 +18473,34 @@ "credentialScope" : { "region" : "us-gov-east-1" }, + "hostname" : "cloudformation.us-gov-east-1.amazonaws.com", + "variants" : [ { + "hostname" : "cloudformation.us-gov-east-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, + "us-gov-east-1-fips" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "deprecated" : true, "hostname" : "cloudformation.us-gov-east-1.amazonaws.com" }, "us-gov-west-1" : { "credentialScope" : { "region" : "us-gov-west-1" }, + "hostname" : "cloudformation.us-gov-west-1.amazonaws.com", + "variants" : [ { + "hostname" : "cloudformation.us-gov-west-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, + "us-gov-west-1-fips" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "deprecated" : true, "hostname" : "cloudformation.us-gov-west-1.amazonaws.com" } } diff --git a/service/appsync/api.go b/service/appsync/api.go index 6a84b219925..55c547d0f73 100644 --- a/service/appsync/api.go +++ b/service/appsync/api.go @@ -6376,6 +6376,9 @@ type CreateDataSourceInput struct { // to create an OpenSearch data source. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` + // Amazon EventBridge settings. + EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` + // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` @@ -6450,6 +6453,11 @@ func (s *CreateDataSourceInput) Validate() error { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } + if s.EventBridgeConfig != nil { + if err := s.EventBridgeConfig.Validate(); err != nil { + invalidParams.AddNested("EventBridgeConfig", err.(request.ErrInvalidParams)) + } + } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) @@ -6496,6 +6504,12 @@ func (s *CreateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourc return s } +// SetEventBridgeConfig sets the EventBridgeConfig field's value. +func (s *CreateDataSourceInput) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *CreateDataSourceInput { + s.EventBridgeConfig = v + return s +} + // SetHttpConfig sets the HttpConfig field's value. func (s *CreateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *CreateDataSourceInput { s.HttpConfig = v @@ -7447,6 +7461,9 @@ type DataSource struct { // Amazon OpenSearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` + // Amazon EventBridge settings. + EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` + // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` @@ -7479,6 +7496,8 @@ type DataSource struct { // * AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service // domain. // + // * AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. + // // * NONE: There is no data source. Use this type when you want to invoke // a GraphQL operation without connecting to a data source, such as when // you're performing data transformation with resolvers or invoking a subscription @@ -7532,6 +7551,12 @@ func (s *DataSource) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *D return s } +// SetEventBridgeConfig sets the EventBridgeConfig field's value. +func (s *DataSource) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *DataSource { + s.EventBridgeConfig = v + return s +} + // SetHttpConfig sets the HttpConfig field's value. func (s *DataSource) SetHttpConfig(v *HttpDataSourceConfig) *DataSource { s.HttpConfig = v @@ -8931,6 +8956,54 @@ func (s *EvaluateMappingTemplateOutput) SetLogs(v []*string) *EvaluateMappingTem return s } +// Describes an Amazon EventBridge bus data source configuration. +type EventBridgeDataSourceConfig struct { + _ struct{} `type:"structure"` + + // The ARN of the event bus. For more information about event buses, see Amazon + // EventBridge event buses (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html). + // + // EventBusArn is a required field + EventBusArn *string `locationName:"eventBusArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EventBridgeDataSourceConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EventBridgeDataSourceConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventBridgeDataSourceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventBridgeDataSourceConfig"} + if s.EventBusArn == nil { + invalidParams.Add(request.NewErrParamRequired("EventBusArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventBusArn sets the EventBusArn field's value. +func (s *EventBridgeDataSourceConfig) SetEventBusArn(v string) *EventBridgeDataSourceConfig { + s.EventBusArn = &v + return s +} + // Represents the input of a FlushApiCache operation. type FlushApiCacheInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -12974,6 +13047,9 @@ type UpdateDataSourceInput struct { // to update an OpenSearch data source. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` + // The new Amazon EventBridge settings. + EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` + // The new HTTP endpoint configuration. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` @@ -13046,6 +13122,11 @@ func (s *UpdateDataSourceInput) Validate() error { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } + if s.EventBridgeConfig != nil { + if err := s.EventBridgeConfig.Validate(); err != nil { + invalidParams.AddNested("EventBridgeConfig", err.(request.ErrInvalidParams)) + } + } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) @@ -13092,6 +13173,12 @@ func (s *UpdateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourc return s } +// SetEventBridgeConfig sets the EventBridgeConfig field's value. +func (s *UpdateDataSourceInput) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *UpdateDataSourceInput { + s.EventBridgeConfig = v + return s +} + // SetHttpConfig sets the HttpConfig field's value. func (s *UpdateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *UpdateDataSourceInput { s.HttpConfig = v @@ -14368,6 +14455,9 @@ const ( // DataSourceTypeAmazonOpensearchService is a DataSourceType enum value DataSourceTypeAmazonOpensearchService = "AMAZON_OPENSEARCH_SERVICE" + + // DataSourceTypeAmazonEventbridge is a DataSourceType enum value + DataSourceTypeAmazonEventbridge = "AMAZON_EVENTBRIDGE" ) // DataSourceType_Values returns all elements of the DataSourceType enum @@ -14380,6 +14470,7 @@ func DataSourceType_Values() []string { DataSourceTypeHttp, DataSourceTypeRelationalDatabase, DataSourceTypeAmazonOpensearchService, + DataSourceTypeAmazonEventbridge, } } diff --git a/service/cloudtrail/api.go b/service/cloudtrail/api.go index a18eb864c2a..58fd8eb1395 100644 --- a/service/cloudtrail/api.go +++ b/service/cloudtrail/api.go @@ -57,9 +57,9 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // AddTags API operation for AWS CloudTrail. // -// Adds one or more tags to a trail or event data store, up to a limit of 50. -// Overwrites an existing tag's value when a new value is specified for an existing -// tag key. Tag key names must be unique for a trail; you cannot have two keys +// Adds one or more tags to a trail, event data store, or channel, up to a limit +// of 50. Overwrites an existing tag's value when a new value is specified for +// an existing tag key. Tag key names must be unique; you cannot have two keys // with the same name but different values. If you specify a key without a value, // the tag will be created with the specified key and a value of null. You can // tag a trail or event data store that applies to all Amazon Web Services Regions @@ -84,13 +84,20 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. // // - TagsLimitExceededException -// The number of tags per trail has exceeded the permitted amount. Currently, -// the limit is 50. +// The number of tags per trail, event data store, or channel has exceeded the +// permitted amount. Currently, the limit is 50. // // - InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail @@ -118,6 +125,9 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // - EventDataStoreNotFoundException // The specified event data store was not found. // +// - ChannelNotFoundException +// This exception is thrown when CloudTrail cannot find the specified channel. +// // - UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // @@ -138,8 +148,9 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // - ConflictException // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { @@ -254,8 +265,9 @@ func (c *CloudTrail) CancelQueryRequest(input *CancelQueryInput) (req *request.R // - ConflictException // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CancelQuery func (c *CloudTrail) CancelQuery(input *CancelQueryInput) (*CancelQueryOutput, error) { @@ -279,6 +291,124 @@ func (c *CloudTrail) CancelQueryWithContext(ctx aws.Context, input *CancelQueryI return out, req.Send() } +const opCreateChannel = "CreateChannel" + +// CreateChannelRequest generates a "aws/request.Request" representing the +// client's request for the CreateChannel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateChannel for more information on using the CreateChannel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateChannelRequest method. +// req, resp := client.CreateChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateChannel +func (c *CloudTrail) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) { + op := &request.Operation{ + Name: opCreateChannel, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateChannelInput{} + } + + output = &CreateChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateChannel API operation for AWS CloudTrail. +// +// Creates a channel for CloudTrail to ingest events from a partner or external +// source. After you create a channel, a CloudTrail Lake event data store can +// log events from the partner or source that you specify. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation CreateChannel for usage and error information. +// +// Returned Error Types: +// +// - ChannelMaxLimitExceededException +// This exception is thrown when the maximum number of channels limit is exceeded. +// +// - InvalidSourceException +// This exception is thrown when the specified value of Source is not valid. +// +// - ChannelAlreadyExistsException +// This exception is thrown when the provided channel already exists. +// +// - EventDataStoreARNInvalidException +// The specified event data store ARN is not valid or does not map to an event +// data store in your account. +// +// - EventDataStoreNotFoundException +// The specified event data store was not found. +// +// - InvalidEventDataStoreCategoryException +// This exception is thrown when event categories of specified event data stores +// are not valid. +// +// - InactiveEventDataStoreException +// The event data store is inactive. +// +// - InvalidParameterException +// The request includes a parameter that is not valid. +// +// - InvalidTagParameterException +// This exception is thrown when the specified tag key or values are not valid. +// It can also occur if there are duplicate tags or too many tags on the resource. +// +// - TagsLimitExceededException +// The number of tags per trail, event data store, or channel has exceeded the +// permitted amount. Currently, the limit is 50. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateChannel +func (c *CloudTrail) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) { + req, out := c.CreateChannelRequest(input) + return out, req.Send() +} + +// CreateChannelWithContext is the same as CreateChannel with the addition of +// the ability to pass a context and additional request options. +// +// See CreateChannel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) { + req, out := c.CreateChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateEventDataStore = "CreateEventDataStore" // CreateEventDataStoreRequest generates a "aws/request.Request" representing the @@ -381,8 +511,9 @@ func (c *CloudTrail) CreateEventDataStoreRequest(input *CreateEventDataStoreInpu // - ConflictException // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. // // - InsufficientEncryptionPolicyException // This exception is thrown when the policy on the S3 bucket or KMS key does @@ -560,8 +691,8 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // This exception is no longer in use. // // - TagsLimitExceededException -// The number of tags per trail has exceeded the permitted amount. Currently, -// the limit is 50. +// The number of tags per trail, event data store, or channel has exceeded the +// permitted amount. Currently, the limit is 50. // // - InvalidParameterCombinationException // This exception is thrown when the combination of parameters provided is not @@ -640,8 +771,9 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // - ConflictException // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) { @@ -665,6 +797,95 @@ func (c *CloudTrail) CreateTrailWithContext(ctx aws.Context, input *CreateTrailI return out, req.Send() } +const opDeleteChannel = "DeleteChannel" + +// DeleteChannelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteChannel for more information on using the DeleteChannel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteChannelRequest method. +// req, resp := client.DeleteChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteChannel +func (c *CloudTrail) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) { + op := &request.Operation{ + Name: opDeleteChannel, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteChannelInput{} + } + + output = &DeleteChannelOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteChannel API operation for AWS CloudTrail. +// +// Deletes a channel. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation DeleteChannel for usage and error information. +// +// Returned Error Types: +// +// - ChannelARNInvalidException +// This exception is thrown when the specified value of ChannelARN is not valid. +// +// - ChannelNotFoundException +// This exception is thrown when CloudTrail cannot find the specified channel. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteChannel +func (c *CloudTrail) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) { + req, out := c.DeleteChannelRequest(input) + return out, req.Send() +} + +// DeleteChannelWithContext is the same as DeleteChannel with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteChannel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) { + req, out := c.DeleteChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteEventDataStore = "DeleteEventDataStore" // DeleteEventDataStoreRequest generates a "aws/request.Request" representing the @@ -768,6 +989,10 @@ func (c *CloudTrail) DeleteEventDataStoreRequest(input *DeleteEventDataStoreInpu // This exception is thrown when the management account does not have a service-linked // role. // +// - ChannelExistsForEDSException +// This exception is thrown when the specified event data store cannot yet be +// deleted because it is in use by a channel. +// // - InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization resource lacks one or more required permissions for creating @@ -795,6 +1020,104 @@ func (c *CloudTrail) DeleteEventDataStoreWithContext(ctx aws.Context, input *Del return out, req.Send() } +const opDeleteResourcePolicy = "DeleteResourcePolicy" + +// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteResourcePolicyRequest method. +// req, resp := client.DeleteResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteResourcePolicy +func (c *CloudTrail) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { + op := &request.Operation{ + Name: opDeleteResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResourcePolicyInput{} + } + + output = &DeleteResourcePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteResourcePolicy API operation for AWS CloudTrail. +// +// Deletes the resource-based policy attached to the CloudTrail channel. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation DeleteResourcePolicy for usage and error information. +// +// Returned Error Types: +// +// - ResourceARNNotValidException +// This exception is thrown when the provided resource does not exist, or the +// ARN format of the resource is not valid. The following is the valid format +// for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. +// +// - ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// - ResourcePolicyNotFoundException +// This exception is thrown when the specified resource policy is not found. +// +// - ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteResourcePolicy +func (c *CloudTrail) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + return out, req.Send() +} + +// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteTrail = "DeleteTrail" // DeleteTrailRequest generates a "aws/request.Request" representing the @@ -877,6 +1200,20 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. @@ -903,12 +1240,6 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // the organization resource lacks one or more required permissions for creating // an organization resource in a required service. // -// - ConflictException -// This exception is thrown when the specified resource is not ready for an -// operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) { req, out := c.DeleteTrailRequest(input) @@ -988,8 +1319,8 @@ func (c *CloudTrail) DeregisterOrganizationDelegatedAdminRequest(input *Deregist // Returned Error Types: // // - AccountNotFoundException -// This exception is thrown when when the specified account is not found or -// not part of an organization. +// This exception is thrown when the specified account is not found or not part +// of an organization. // // - AccountNotRegisteredException // This exception is thrown when the specified account is not registered as @@ -1001,6 +1332,13 @@ func (c *CloudTrail) DeregisterOrganizationDelegatedAdminRequest(input *Deregist // Access with Other Amazon Web Services Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization resource lacks one or more required permissions for creating @@ -1301,10 +1639,7 @@ func (c *CloudTrail) GetChannelRequest(input *GetChannelInput) (req *request.Req // GetChannel API operation for AWS CloudTrail. // -// Returns information about a specific channel. Amazon Web Services services -// create service-linked channels to get information about CloudTrail events -// on your behalf. For more information about service-linked channels, see Viewing -// service-linked channels for CloudTrail by using the CLI (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html). +// Returns information about a specific channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1319,7 +1654,7 @@ func (c *CloudTrail) GetChannelRequest(input *GetChannelInput) (req *request.Req // This exception is thrown when the specified value of ChannelARN is not valid. // // - ChannelNotFoundException -// The specified channel was not found. +// This exception is thrown when CloudTrail cannot find the specified channel. // // - OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. @@ -1541,6 +1876,13 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // @@ -1747,6 +2089,13 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput) // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // @@ -1954,17 +2303,115 @@ func (c *CloudTrail) GetQueryResultsPagesWithContext(ctx aws.Context, input *Get return p.Err() } -const opGetTrail = "GetTrail" +const opGetResourcePolicy = "GetResourcePolicy" -// GetTrailRequest generates a "aws/request.Request" representing the -// client's request for the GetTrail operation. The "output" return +// GetResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetTrail for more information on using the GetTrail +// See GetResourcePolicy for more information on using the GetResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetResourcePolicyRequest method. +// req, resp := client.GetResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetResourcePolicy +func (c *CloudTrail) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *request.Request, output *GetResourcePolicyOutput) { + op := &request.Operation{ + Name: opGetResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResourcePolicyInput{} + } + + output = &GetResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePolicy API operation for AWS CloudTrail. +// +// Retrieves the JSON text of the resource-based policy document attached to +// the CloudTrail channel. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation GetResourcePolicy for usage and error information. +// +// Returned Error Types: +// +// - ResourceARNNotValidException +// This exception is thrown when the provided resource does not exist, or the +// ARN format of the resource is not valid. The following is the valid format +// for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. +// +// - ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// - ResourcePolicyNotFoundException +// This exception is thrown when the specified resource policy is not found. +// +// - ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetResourcePolicy +func (c *CloudTrail) GetResourcePolicy(input *GetResourcePolicyInput) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + return out, req.Send() +} + +// GetResourcePolicyWithContext is the same as GetResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) GetResourcePolicyWithContext(ctx aws.Context, input *GetResourcePolicyInput, opts ...request.Option) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetTrail = "GetTrail" + +// GetTrailRequest generates a "aws/request.Request" representing the +// client's request for the GetTrail operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTrail for more information on using the GetTrail // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration @@ -2014,6 +2461,13 @@ func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // @@ -2125,6 +2579,13 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // @@ -2221,11 +2682,7 @@ func (c *CloudTrail) ListChannelsRequest(input *ListChannelsInput) (req *request // ListChannels API operation for AWS CloudTrail. // -// Lists the channels in the current account, and their source names. Amazon -// Web Services services create service-linked channels get information about -// CloudTrail events on your behalf. For more information about service-linked -// channels, see Viewing service-linked channels for CloudTrail by using the -// CLI (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html). +// Lists the channels in the current account, and their source names. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3143,7 +3600,8 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // ListTags API operation for AWS CloudTrail. // -// Lists the tags for the trail or event data store in the current region. +// Lists the tags for the trail, event data store, or channel in the current +// region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3163,6 +3621,13 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. @@ -3727,6 +4192,13 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. @@ -3884,6 +4356,13 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput) // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. @@ -3946,6 +4425,118 @@ func (c *CloudTrail) PutInsightSelectorsWithContext(ctx aws.Context, input *PutI return out, req.Send() } +const opPutResourcePolicy = "PutResourcePolicy" + +// PutResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutResourcePolicy for more information on using the PutResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutResourcePolicyRequest method. +// req, resp := client.PutResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutResourcePolicy +func (c *CloudTrail) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { + op := &request.Operation{ + Name: opPutResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutResourcePolicyInput{} + } + + output = &PutResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutResourcePolicy API operation for AWS CloudTrail. +// +// Attaches a resource-based permission policy to a CloudTrail channel that +// is used for an integration with an event source outside of Amazon Web Services. +// For more information about resource-based policies, see CloudTrail resource-based +// policy examples (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html) +// in the CloudTrail User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation PutResourcePolicy for usage and error information. +// +// Returned Error Types: +// +// - ResourceARNNotValidException +// This exception is thrown when the provided resource does not exist, or the +// ARN format of the resource is not valid. The following is the valid format +// for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. +// +// - ResourcePolicyNotValidException +// This exception is thrown when the resouce-based policy has syntax errors, +// or contains a principal that is not valid. +// +// The following are requirements for the resource policy: +// +// - Contains only one action: cloudtrail-data:PutAuditEvents +// +// - Contains at least one statement. The policy can have a maximum of 20 +// statements. +// +// - Each statement contains at least one principal. A statement can have +// a maximum of 50 principals. +// +// - ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// - ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutResourcePolicy +func (c *CloudTrail) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + return out, req.Send() +} + +// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See PutResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRegisterOrganizationDelegatedAdmin = "RegisterOrganizationDelegatedAdmin" // RegisterOrganizationDelegatedAdminRequest generates a "aws/request.Request" representing the @@ -4007,8 +4598,8 @@ func (c *CloudTrail) RegisterOrganizationDelegatedAdminRequest(input *RegisterOr // delegated administrator. // // - AccountNotFoundException -// This exception is thrown when when the specified account is not found or -// not part of an organization. +// This exception is thrown when the specified account is not found or not part +// of an organization. // // - InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create @@ -4028,6 +4619,13 @@ func (c *CloudTrail) RegisterOrganizationDelegatedAdminRequest(input *RegisterOr // Access with Other Amazon Web Services Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - DelegatedAdminAccountLimitExceededException // This exception is thrown when the maximum number of CloudTrail delegated // administrators is reached. @@ -4118,7 +4716,7 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // RemoveTags API operation for AWS CloudTrail. // -// Removes the specified tags from a trail or event data store. +// Removes the specified tags from a trail, event data store, or channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4138,6 +4736,13 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// // - ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. @@ -4168,6 +4773,9 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // - EventDataStoreNotFoundException // The specified event data store was not found. // +// - ChannelNotFoundException +// This exception is thrown when CloudTrail cannot find the specified channel. +// // - UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // @@ -4399,6 +5007,10 @@ func (c *CloudTrail) StartImportRequest(input *StartImportInput) (req *request.R // // When you retry an import, the ImportID parameter is required. // +// If the destination event data store is for an organization, you must use +// the management account to import trail events. You cannot use the delegated +// administrator account for the organization. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -4538,6 +5150,20 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // @@ -4907,6 +5533,20 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. @@ -4955,66 +5595,69 @@ func (c *CloudTrail) StopLoggingWithContext(ctx aws.Context, input *StopLoggingI return out, req.Send() } -const opUpdateEventDataStore = "UpdateEventDataStore" +const opUpdateChannel = "UpdateChannel" -// UpdateEventDataStoreRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEventDataStore operation. The "output" return +// UpdateChannelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateChannel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateEventDataStore for more information on using the UpdateEventDataStore +// See UpdateChannel for more information on using the UpdateChannel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateEventDataStoreRequest method. -// req, resp := client.UpdateEventDataStoreRequest(params) +// // Example sending a request using the UpdateChannelRequest method. +// req, resp := client.UpdateChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStore -func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInput) (req *request.Request, output *UpdateEventDataStoreOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateChannel +func (c *CloudTrail) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) { op := &request.Operation{ - Name: opUpdateEventDataStore, + Name: opUpdateChannel, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateEventDataStoreInput{} + input = &UpdateChannelInput{} } - output = &UpdateEventDataStoreOutput{} + output = &UpdateChannelOutput{} req = c.newRequest(op, input, output) return } -// UpdateEventDataStore API operation for AWS CloudTrail. +// UpdateChannel API operation for AWS CloudTrail. // -// Updates an event data store. The required EventDataStore value is an ARN -// or the ID portion of the ARN. Other parameters are optional, but at least -// one optional parameter must be specified, or CloudTrail throws an error. -// RetentionPeriod is in days, and valid values are integers between 90 and -// 2557. By default, TerminationProtection is enabled. AdvancedEventSelectors -// includes or excludes management and data events in your event data store; -// for more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors. +// Updates a channel specified by a required channel ARN or UUID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CloudTrail's -// API operation UpdateEventDataStore for usage and error information. +// API operation UpdateChannel for usage and error information. // // Returned Error Types: // +// - ChannelARNInvalidException +// This exception is thrown when the specified value of ChannelARN is not valid. +// +// - ChannelNotFoundException +// This exception is thrown when CloudTrail cannot find the specified channel. +// +// - ChannelAlreadyExistsException +// This exception is thrown when the provided channel already exists. +// // - EventDataStoreARNInvalidException // The specified event data store ARN is not valid or does not map to an event // data store in your account. @@ -5022,35 +5665,9 @@ func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInpu // - EventDataStoreNotFoundException // The specified event data store was not found. // -// - InvalidEventSelectorsException -// This exception is thrown when the PutEventSelectors operation is called with -// a number of event selectors, advanced event selectors, or data resources -// that is not valid. The combination of event selectors or advanced event selectors -// and data resources is not valid. A trail can have up to 5 event selectors. -// If a trail uses advanced event selectors, a maximum of 500 total values for -// all conditions in all advanced event selectors is allowed. A trail is limited -// to 250 data resources. These data resources can be distributed across event -// selectors, but the overall total cannot exceed 250. -// -// You can: -// -// - Specify a valid number of event selectors (1 to 5) for a trail. -// -// - Specify a valid number of data resources (1 to 250) for an event selector. -// The limit of number of resources on an individual event selector is configurable -// up to 250. However, this upper limit is allowed only if the total number -// of data resources does not exceed 250 across all event selectors for a -// trail. -// -// - Specify up to 500 values for all conditions in all advanced event selectors -// for a trail. -// -// - Specify a valid value for a parameter. For example, specifying the ReadWriteType -// parameter with a value of read-only is not valid. -// -// - EventDataStoreHasOngoingImportException -// This exception is thrown when you try to update or delete an event data store -// that currently has an import in progress. +// - InvalidEventDataStoreCategoryException +// This exception is thrown when event categories of specified event data stores +// are not valid. // // - InactiveEventDataStoreException // The event data store is inactive. @@ -5064,16 +5681,153 @@ func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInpu // - UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// - InsufficientEncryptionPolicyException -// This exception is thrown when the policy on the S3 bucket or KMS key does -// not have sufficient permissions for the operation. +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateChannel +func (c *CloudTrail) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) { + req, out := c.UpdateChannelRequest(input) + return out, req.Send() +} + +// UpdateChannelWithContext is the same as UpdateChannel with the addition of +// the ability to pass a context and additional request options. // -// - InvalidKmsKeyIdException -// This exception is thrown when the KMS key ARN is not valid. +// See UpdateChannel for details on how to use this API operation. // -// - KmsKeyNotFoundException -// This exception is thrown when the KMS key does not exist, when the S3 bucket -// and the KMS key are not in the same region, or when the KMS key associated +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrail) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) { + req, out := c.UpdateChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEventDataStore = "UpdateEventDataStore" + +// UpdateEventDataStoreRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEventDataStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEventDataStore for more information on using the UpdateEventDataStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateEventDataStoreRequest method. +// req, resp := client.UpdateEventDataStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStore +func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInput) (req *request.Request, output *UpdateEventDataStoreOutput) { + op := &request.Operation{ + Name: opUpdateEventDataStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEventDataStoreInput{} + } + + output = &UpdateEventDataStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEventDataStore API operation for AWS CloudTrail. +// +// Updates an event data store. The required EventDataStore value is an ARN +// or the ID portion of the ARN. Other parameters are optional, but at least +// one optional parameter must be specified, or CloudTrail throws an error. +// RetentionPeriod is in days, and valid values are integers between 90 and +// 2557. By default, TerminationProtection is enabled. +// +// For event data stores for CloudTrail events, AdvancedEventSelectors includes +// or excludes management and data events in your event data store. For more +// information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors. +// +// For event data stores for Config configuration items, Audit Manager evidence, +// or non-Amazon Web Services events, AdvancedEventSelectors includes events +// of that type in your event data store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation UpdateEventDataStore for usage and error information. +// +// Returned Error Types: +// +// - EventDataStoreARNInvalidException +// The specified event data store ARN is not valid or does not map to an event +// data store in your account. +// +// - EventDataStoreNotFoundException +// The specified event data store was not found. +// +// - InvalidEventSelectorsException +// This exception is thrown when the PutEventSelectors operation is called with +// a number of event selectors, advanced event selectors, or data resources +// that is not valid. The combination of event selectors or advanced event selectors +// and data resources is not valid. A trail can have up to 5 event selectors. +// If a trail uses advanced event selectors, a maximum of 500 total values for +// all conditions in all advanced event selectors is allowed. A trail is limited +// to 250 data resources. These data resources can be distributed across event +// selectors, but the overall total cannot exceed 250. +// +// You can: +// +// - Specify a valid number of event selectors (1 to 5) for a trail. +// +// - Specify a valid number of data resources (1 to 250) for an event selector. +// The limit of number of resources on an individual event selector is configurable +// up to 250. However, this upper limit is allowed only if the total number +// of data resources does not exceed 250 across all event selectors for a +// trail. +// +// - Specify up to 500 values for all conditions in all advanced event selectors +// for a trail. +// +// - Specify a valid value for a parameter. For example, specifying the ReadWriteType +// parameter with a value of read-only is not valid. +// +// - EventDataStoreHasOngoingImportException +// This exception is thrown when you try to update or delete an event data store +// that currently has an import in progress. +// +// - InactiveEventDataStoreException +// The event data store is inactive. +// +// - InvalidParameterException +// The request includes a parameter that is not valid. +// +// - OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// - UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// - InsufficientEncryptionPolicyException +// This exception is thrown when the policy on the S3 bucket or KMS key does +// not have sufficient permissions for the operation. +// +// - InvalidKmsKeyIdException +// This exception is thrown when the KMS key ARN is not valid. +// +// - KmsKeyNotFoundException +// This exception is thrown when the KMS key does not exist, when the S3 bucket +// and the KMS key are not in the same region, or when the KMS key associated // with the Amazon SNS topic either does not exist or is not in the same region. // // - KmsException @@ -5273,6 +6027,20 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 +// +// - ConflictException +// This exception is thrown when the specified resource is not ready for an +// operation. This can occur when you try to run an operation on a resource +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. +// // - InvalidParameterCombinationException // This exception is thrown when the combination of parameters provided is not // valid. @@ -5376,6 +6144,13 @@ func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailI // is not valid. The following is the format of a trail ARN. // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail +// +// This exception is also thrown when you call AddTags or RemoveTags on a trail, +// event data store, or channel with a resource ARN that is not valid. +// +// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE +// +// The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 type ARNInvalidException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -5571,8 +6346,8 @@ func (s *AccountHasOngoingImportException) RequestID() string { return s.RespMetadata.RequestID } -// This exception is thrown when when the specified account is not found or -// not part of an organization. +// This exception is thrown when the specified account is not found or not part +// of an organization. type AccountNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -5766,14 +6541,18 @@ func (s *AccountRegisteredException) RequestID() string { return s.RespMetadata.RequestID } -// Specifies the tags to add to a trail or event data store. +// Specifies the tags to add to a trail, event data store, or channel. type AddTagsInput struct { _ struct{} `type:"structure"` - // Specifies the ARN of the trail or event data store to which one or more tags - // will be added. The format of a trail ARN is: + // Specifies the ARN of the trail, event data store, or channel to which one + // or more tags will be added. // - // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail + // The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail + // + // The format of an event data store ARN is: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE + // + // The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -5964,9 +6743,16 @@ type AdvancedFieldSelector struct { // that you can use with the readOnly, eventCategory, and resources.type fields. Equals []*string `min:"1" type:"list"` - // A field in an event record on which to filter events to be logged. Supported - // fields include readOnly, eventCategory, eventSource (for management events), - // eventName, resources.type, and resources.ARN. + // A field in a CloudTrail event record on which to filter events to be logged. + // For event data stores for Config configuration items, Audit Manager evidence, + // or non-Amazon Web Services events, the field is used only for selecting events + // as filtering is not supported. + // + // For CloudTrail event records, supported fields include readOnly, eventCategory, + // eventSource (for management events), eventName, resources.type, and resources.ARN. + // + // For event data stores for Config configuration items, Audit Manager evidence, + // or non-Amazon Web Services events, the only supported field is eventCategory. // // * readOnly - Optional. Can be set to Equals a value of true or false. // If you do not add this field, CloudTrail logs both read and write events. @@ -5980,16 +6766,21 @@ type AdvancedFieldSelector struct { // out any data event logged to CloudTrail, such as PutBucket or GetSnapshotBlock. // You can have multiple values for this field, separated by commas. // - // * eventCategory - This is required. It must be set to Equals, and the - // value must be Management or Data. + // * eventCategory - This is required and must be set to Equals. For CloudTrail + // event records, the value must be Management or Data. For Config configuration + // items, the value must be ConfigurationItem. For Audit Manager evidence, + // the value must be Evidence. For non-Amazon Web Services events, the value + // must be ActivityAuditLog. // - // * resources.type - This field is required. resources.type can only use - // the Equals operator, and the value can be one of the following: AWS::S3::Object - // AWS::Lambda::Function AWS::DynamoDB::Table AWS::S3Outposts::Object AWS::ManagedBlockchain::Node + // * resources.type - This field is required for CloudTrail data events. + // resources.type can only use the Equals operator, and the value can be + // one of the following: AWS::CloudTrail::Channel AWS::S3::Object AWS::Lambda::Function + // AWS::DynamoDB::Table AWS::S3Outposts::Object AWS::ManagedBlockchain::Node // AWS::S3ObjectLambda::AccessPoint AWS::EC2::Snapshot AWS::S3::AccessPoint - // AWS::DynamoDB::Stream AWS::Glue::Table You can have only one resources.type - // field per selector. To log data events on more than one resource type, - // add another selector. + // AWS::DynamoDB::Stream AWS::Glue::Table AWS::FinSpace::Environment AWS::SageMaker::ExperimentTrialComponent + // AWS::SageMaker::FeatureGroup You can have only one resources.type field + // per selector. To log data events on more than one resource type, add another + // selector. // // * resources.ARN - You can use any operator with resources.ARN, but if // you use Equals or NotEquals, the value must exactly match the ARN of a @@ -6011,6 +6802,9 @@ type AdvancedFieldSelector struct { // set to Equals or NotEquals, the ARN must be in the following format: arn::lambda:::function: // When resources.type equals AWS::DynamoDB::Table, and the operator is set // to Equals or NotEquals, the ARN must be in the following format: arn::dynamodb:::table/ + // When resources.type equals AWS::CloudTrail::Channel, and the operator + // is set to Equals or NotEquals, the ARN must be in the following format: + // arn::cloudtrail:::channel/ // When resources.type equals AWS::S3Outposts::Object, and the operator is // set to Equals or NotEquals, the ARN must be in the following format: arn::s3-outposts::: // When resources.type equals AWS::ManagedBlockchain::Node, and the operator @@ -6025,6 +6819,15 @@ type AdvancedFieldSelector struct { // set to Equals or NotEquals, the ARN must be in the following format: arn::dynamodb:::table//stream/ // When resources.type equals AWS::Glue::Table, and the operator is set to // Equals or NotEquals, the ARN must be in the following format: arn::glue:::table// + // When resources.type equals AWS::FinSpace::Environment, and the operator + // is set to Equals or NotEquals, the ARN must be in the following format: + // arn::finspace:::environment/ + // When resources.type equals AWS::SageMaker::ExperimentTrialComponent, and + // the operator is set to Equals or NotEquals, the ARN must be in the following + // format: arn::sagemaker:::experiment-trial-component/ + // When resources.type equals AWS::SageMaker::FeatureGroup, and the operator + // is set to Equals or NotEquals, the ARN must be in the following format: + // arn::sagemaker:::feature-group/ // // Field is a required field Field *string `min:"1" type:"string" required:"true"` @@ -6423,7 +7226,200 @@ func (s *ChannelARNInvalidException) RequestID() string { return s.RespMetadata.RequestID } -// The specified channel was not found. +// This exception is thrown when the provided channel already exists. +type ChannelAlreadyExistsException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorChannelAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ChannelAlreadyExistsException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelAlreadyExistsException) Code() string { + return "ChannelAlreadyExistsException" +} + +// Message returns the exception's message. +func (s *ChannelAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelAlreadyExistsException) OrigErr() error { + return nil +} + +func (s *ChannelAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelAlreadyExistsException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelAlreadyExistsException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when the specified event data store cannot yet be +// deleted because it is in use by a channel. +type ChannelExistsForEDSException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelExistsForEDSException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelExistsForEDSException) GoString() string { + return s.String() +} + +func newErrorChannelExistsForEDSException(v protocol.ResponseMetadata) error { + return &ChannelExistsForEDSException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelExistsForEDSException) Code() string { + return "ChannelExistsForEDSException" +} + +// Message returns the exception's message. +func (s *ChannelExistsForEDSException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelExistsForEDSException) OrigErr() error { + return nil +} + +func (s *ChannelExistsForEDSException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelExistsForEDSException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelExistsForEDSException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when the maximum number of channels limit is exceeded. +type ChannelMaxLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelMaxLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelMaxLimitExceededException) GoString() string { + return s.String() +} + +func newErrorChannelMaxLimitExceededException(v protocol.ResponseMetadata) error { + return &ChannelMaxLimitExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelMaxLimitExceededException) Code() string { + return "ChannelMaxLimitExceededException" +} + +// Message returns the exception's message. +func (s *ChannelMaxLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelMaxLimitExceededException) OrigErr() error { + return nil +} + +func (s *ChannelMaxLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelMaxLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelMaxLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when CloudTrail cannot find the specified channel. type ChannelNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -6620,8 +7616,9 @@ func (s *CloudWatchLogsDeliveryUnavailableException) RequestID() string { // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource -// before CloudTrail has time to fully load the resource. If this exception -// occurs, wait a few minutes, and then try the operation again. +// before CloudTrail has time to fully load the resource, or because another +// operation is modifying the resource. If this exception occurs, wait a few +// minutes, and then try the operation again. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -6685,12 +7682,213 @@ func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } +type CreateChannelInput struct { + _ struct{} `type:"structure"` + + // One or more event data stores to which events arriving through a channel + // will be logged. + // + // Destinations is a required field + Destinations []*Destination `min:"1" type:"list" required:"true"` + + // The name of the channel. + // + // Name is a required field + Name *string `min:"3" type:"string" required:"true"` + + // The name of the partner or external event source. You cannot change this + // name after you create the channel. A maximum of one channel is allowed per + // source. + // + // A source can be either Custom for all valid non-Amazon Web Services events, + // or the name of a partner event source. For information about the source names + // for available partners, see Additional information about integration partners + // (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html#cloudtrail-lake-partner-information) + // in the CloudTrail User Guide. + // + // Source is a required field + Source *string `min:"1" type:"string" required:"true"` + + // A list of tags. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"} + if s.Destinations == nil { + invalidParams.Add(request.NewErrParamRequired("Destinations")) + } + if s.Destinations != nil && len(s.Destinations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destinations", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.Source != nil && len(*s.Source) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Source", 1)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinations sets the Destinations field's value. +func (s *CreateChannelInput) SetDestinations(v []*Destination) *CreateChannelInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateChannelInput) SetName(v string) *CreateChannelInput { + s.Name = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateChannelInput) SetSource(v string) *CreateChannelInput { + s.Source = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateChannelInput) SetTags(v []*Tag) *CreateChannelInput { + s.Tags = v + return s +} + +type CreateChannelOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the new channel. + ChannelArn *string `min:"3" type:"string"` + + // The event data stores that log the events arriving through the channel. + Destinations []*Destination `min:"1" type:"list"` + + // The name of the new channel. + Name *string `min:"3" type:"string"` + + // The partner or external event source name. + Source *string `min:"1" type:"string"` + + // A list of tags. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateChannelOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelOutput) SetChannelArn(v string) *CreateChannelOutput { + s.ChannelArn = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *CreateChannelOutput) SetDestinations(v []*Destination) *CreateChannelOutput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateChannelOutput) SetName(v string) *CreateChannelOutput { + s.Name = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateChannelOutput) SetSource(v string) *CreateChannelOutput { + s.Source = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateChannelOutput) SetTags(v []*Tag) *CreateChannelOutput { + s.Tags = v + return s +} + type CreateEventDataStoreInput struct { _ struct{} `type:"structure"` // The advanced event selectors to use to select the events for the data store. - // For more information about how to use advanced event selectors, see Log events - // by using advanced event selectors (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced) + // You can configure up to five advanced event selectors for each event data + // store. + // + // For more information about how to use advanced event selectors to log CloudTrail + // events, see Log events by using advanced event selectors (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced) + // in the CloudTrail User Guide. + // + // For more information about how to use advanced event selectors to include + // Config configuration items in your event data store, see Create an event + // data store for Config configuration items (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-eds-config) + // in the CloudTrail User Guide. + // + // For more information about how to use advanced event selectors to include + // non-Amazon Web Services events in your event data store, see Create an integration + // to log events from outside Amazon Web Services (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-integration) // in the CloudTrail User Guide. AdvancedEventSelectors []*AdvancedEventSelector `type:"list"` @@ -6999,11 +8197,13 @@ type CreateTrailInput struct { // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs will be - // delivered. Not required unless you specify CloudWatchLogsRoleArn. + // delivered. You must use a log group that exists in your account. + // + // Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user's log group. You must use a role that exists in your account. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether log file integrity validation is enabled. The default is @@ -7032,8 +8232,8 @@ type CreateTrailInput struct { // Specifies whether the trail is created for all accounts in an organization // in Organizations, or only for the current Amazon Web Services account. The // default is false, and cannot be true unless the call is made on behalf of - // an Amazon Web Services account that is the management account for an organization - // in Organizations. + // an Amazon Web Services account that is the management account or delegated + // administrator account for an organization in Organizations. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. @@ -7374,7 +8574,7 @@ func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput { // // The total number of allowed data resources is 250. This number can be distributed // between 1 and 5 event selectors, but the total cannot exceed 250 across all -// selectors. +// selectors for the trail. // // If you are using advanced event selectors, the maximum total number of values // for all conditions, across all advanced event selectors for the trail, is @@ -7431,6 +8631,8 @@ type DataResource struct { // but advanced event selector resource types are not valid in basic event selectors. // For more information, see AdvancedFieldSelector$Field. // + // * AWS::CloudTrail::Channel + // // * AWS::S3Outposts::Object // // * AWS::ManagedBlockchain::Node @@ -7444,6 +8646,12 @@ type DataResource struct { // * AWS::DynamoDB::Stream // // * AWS::Glue::Table + // + // * AWS::FinSpace::Environment + // + // * AWS::SageMaker::ExperimentTrialComponent + // + // * AWS::SageMaker::FeatureGroup Type *string `type:"string"` // An array of Amazon Resource Name (ARN) strings or partial ARN strings for @@ -7575,6 +8783,77 @@ func (s *DelegatedAdminAccountLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +type DeleteChannelInput struct { + _ struct{} `type:"structure"` + + // The ARN or the UUID value of the channel that you want to delete. + // + // Channel is a required field + Channel *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"} + if s.Channel == nil { + invalidParams.Add(request.NewErrParamRequired("Channel")) + } + if s.Channel != nil && len(*s.Channel) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Channel", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannel sets the Channel field's value. +func (s *DeleteChannelInput) SetChannel(v string) *DeleteChannelInput { + s.Channel = &v + return s +} + +type DeleteChannelOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteChannelOutput) GoString() string { + return s.String() +} + type DeleteEventDataStoreInput struct { _ struct{} `type:"structure"` @@ -7646,6 +8925,79 @@ func (s DeleteEventDataStoreOutput) GoString() string { return s.String() } +type DeleteResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudTrail channel you're deleting + // the resource-based policy from. The following is the format of a resource + // ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. + // + // ResourceArn is a required field + ResourceArn *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *DeleteResourcePolicyInput) SetResourceArn(v string) *DeleteResourcePolicyInput { + s.ResourceArn = &v + return s +} + +type DeleteResourcePolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePolicyOutput) GoString() string { + return s.String() +} + // The request that specifies the name of a trail to delete. type DeleteTrailInput struct { _ struct{} `type:"structure"` @@ -7973,9 +9325,9 @@ type DescribeTrailsInput struct { // shadow trails in other regions is returned. // // If one or more trail names are specified, information is returned only if - // the names match the names of trails belonging only to the current region. - // To return information about a trail in another region, you must specify its - // trail ARN. + // the names match the names of trails belonging only to the current region + // and current account. To return information about a trail in another region, + // you must specify its trail ARN. TrailNameList []*string `locationName:"trailNameList" type:"list"` } @@ -8046,18 +9398,20 @@ func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput { return s } -// Contains information about the service where CloudTrail delivers events. +// Contains information about the destination receiving events. type Destination struct { _ struct{} `type:"structure"` - // For service-linked channels, the value is the name of the Amazon Web Services - // service. + // For channels used for a CloudTrail Lake integration, the location is the + // ARN of an event data store that receives events from a channel. For service-linked + // channels, the location is the name of the Amazon Web Services service. // // Location is a required field Location *string `min:"3" type:"string" required:"true"` - // The type of destination for events arriving from a channel. For service-linked - // channels, the value is AWS_SERVICE. + // The type of destination for events arriving from a channel. For channels + // used for a CloudTrail Lake integration, the value is EventDataStore. For + // service-linked channels, the value is AWS_SERVICE. // // Type is a required field Type *string `type:"string" required:"true" enum:"DestinationType"` @@ -8081,6 +9435,25 @@ func (s Destination) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *Destination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Destination"} + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + if s.Location != nil && len(*s.Location) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Location", 3)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetLocation sets the Location field's value. func (s *Destination) SetLocation(v string) *Destination { s.Location = &v @@ -8209,13 +9582,13 @@ func (s *Event) SetUsername(v string) *Event { type EventDataStore struct { _ struct{} `type:"structure"` - // This field is being deprecated. The advanced event selectors that were used - // to select events for the data store. + // The advanced event selectors that were used to select events for the data + // store. // // Deprecated: AdvancedEventSelectors is no longer returned by ListEventDataStores AdvancedEventSelectors []*AdvancedEventSelector `deprecated:"true" type:"list"` - // This field is being deprecated. The timestamp of the event data store's creation. + // The timestamp of the event data store's creation. // // Deprecated: CreatedTimestamp is no longer returned by ListEventDataStores CreatedTimestamp *time.Time `deprecated:"true" type:"timestamp"` @@ -8223,8 +9596,8 @@ type EventDataStore struct { // The ARN of the event data store. EventDataStoreArn *string `min:"3" type:"string"` - // This field is being deprecated. Indicates whether the event data store includes - // events from all regions, or only from the region in which it was created. + // Indicates whether the event data store includes events from all regions, + // or only from the region in which it was created. // // Deprecated: MultiRegionEnabled is no longer returned by ListEventDataStores MultiRegionEnabled *bool `deprecated:"true" type:"boolean"` @@ -8232,32 +9605,29 @@ type EventDataStore struct { // The name of the event data store. Name *string `min:"3" type:"string"` - // This field is being deprecated. Indicates that an event data store is collecting - // logged events for an organization. + // Indicates that an event data store is collecting logged events for an organization. // // Deprecated: OrganizationEnabled is no longer returned by ListEventDataStores OrganizationEnabled *bool `deprecated:"true" type:"boolean"` - // This field is being deprecated. The retention period, in days. + // The retention period, in days. // // Deprecated: RetentionPeriod is no longer returned by ListEventDataStores RetentionPeriod *int64 `min:"7" deprecated:"true" type:"integer"` - // This field is being deprecated. The status of an event data store. Values - // are ENABLED and PENDING_DELETION. + // The status of an event data store. Values are ENABLED and PENDING_DELETION. // // Deprecated: Status is no longer returned by ListEventDataStores Status *string `deprecated:"true" type:"string" enum:"EventDataStoreStatus"` - // This field is being deprecated. Indicates whether the event data store is - // protected from termination. + // Indicates whether the event data store is protected from termination. // // Deprecated: TerminationProtectionEnabled is no longer returned by ListEventDataStores TerminationProtectionEnabled *bool `deprecated:"true" type:"boolean"` - // This field is being deprecated. The timestamp showing when an event data - // store was updated, if applicable. UpdatedTimestamp is always either the same - // or newer than the time shown in CreatedTimestamp. + // The timestamp showing when an event data store was updated, if applicable. + // UpdatedTimestamp is always either the same or newer than the time shown in + // CreatedTimestamp. // // Deprecated: UpdatedTimestamp is no longer returned by ListEventDataStores UpdatedTimestamp *time.Time `deprecated:"true" type:"timestamp"` @@ -8881,17 +10251,24 @@ type GetChannelOutput struct { // The ARN of an channel returned by a GetChannel request. ChannelArn *string `min:"3" type:"string"` - // The Amazon Web Services service that created the service-linked channel. + // The destinations for the channel. For channels created for integrations, + // the destinations are the event data stores that log events arriving through + // the channel. For service-linked channels, the destination is the Amazon Web + // Services service that created the service-linked channel to receive events. Destinations []*Destination `min:"1" type:"list"` - // The name of the CloudTrail channel. For service-linked channels, the value + // A table showing information about the most recent successful and failed attempts + // to ingest events. + IngestionStatus *IngestionStatus `type:"structure"` + + // The name of the CloudTrail channel. For service-linked channels, the name // is aws-service-channel/service-name/custom-suffix where service-name represents // the name of the Amazon Web Services service that created the channel and // custom-suffix represents the suffix generated by the Amazon Web Services // service. Name *string `min:"3" type:"string"` - // The event source for the CloudTrail channel. + // The source for the CloudTrail channel. Source *string `min:"1" type:"string"` // Provides information about the advanced event selectors configured for the @@ -8929,6 +10306,12 @@ func (s *GetChannelOutput) SetDestinations(v []*Destination) *GetChannelOutput { return s } +// SetIngestionStatus sets the IngestionStatus field's value. +func (s *GetChannelOutput) SetIngestionStatus(v *IngestionStatus) *GetChannelOutput { + s.IngestionStatus = v + return s +} + // SetName sets the Name field's value. func (s *GetChannelOutput) SetName(v string) *GetChannelOutput { s.Name = &v @@ -9655,6 +11038,98 @@ func (s *GetQueryResultsOutput) SetQueryStatus(v string) *GetQueryResultsOutput return s } +type GetResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudTrail channel attached to the + // resource-based policy. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. + // + // ResourceArn is a required field + ResourceArn *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetResourcePolicyInput) SetResourceArn(v string) *GetResourcePolicyInput { + s.ResourceArn = &v + return s +} + +type GetResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudTrail channel attached to resource-based + // policy. + ResourceArn *string `min:"3" type:"string"` + + // A JSON-formatted string that contains the resource-based policy attached + // to the CloudTrail channel. + ResourcePolicy *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetResourcePolicyOutput) SetResourceArn(v string) *GetResourcePolicyOutput { + s.ResourceArn = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *GetResourcePolicyOutput) SetResourcePolicy(v string) *GetResourcePolicyOutput { + s.ResourcePolicy = &v + return s +} + type GetTrailInput struct { _ struct{} `type:"structure"` @@ -10430,14 +11905,84 @@ func (s *InactiveQueryException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Status code returns the HTTP status code for the request's response error. -func (s *InactiveQueryException) StatusCode() int { - return s.RespMetadata.StatusCode +// Status code returns the HTTP status code for the request's response error. +func (s *InactiveQueryException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InactiveQueryException) RequestID() string { + return s.RespMetadata.RequestID +} + +// A table showing information about the most recent successful and failed attempts +// to ingest events. +type IngestionStatus struct { + _ struct{} `type:"structure"` + + // The event ID of the most recent attempt to ingest events. + LatestIngestionAttemptEventID *string `min:"36" type:"string"` + + // The time stamp of the most recent attempt to ingest events on the channel. + LatestIngestionAttemptTime *time.Time `type:"timestamp"` + + // The error code for the most recent failure to ingest events. + LatestIngestionErrorCode *string `min:"4" type:"string"` + + // The event ID of the most recent successful ingestion of events. + LatestIngestionSuccessEventID *string `min:"36" type:"string"` + + // The time stamp of the most recent successful ingestion of events for the + // channel. + LatestIngestionSuccessTime *time.Time `type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IngestionStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IngestionStatus) GoString() string { + return s.String() +} + +// SetLatestIngestionAttemptEventID sets the LatestIngestionAttemptEventID field's value. +func (s *IngestionStatus) SetLatestIngestionAttemptEventID(v string) *IngestionStatus { + s.LatestIngestionAttemptEventID = &v + return s +} + +// SetLatestIngestionAttemptTime sets the LatestIngestionAttemptTime field's value. +func (s *IngestionStatus) SetLatestIngestionAttemptTime(v time.Time) *IngestionStatus { + s.LatestIngestionAttemptTime = &v + return s +} + +// SetLatestIngestionErrorCode sets the LatestIngestionErrorCode field's value. +func (s *IngestionStatus) SetLatestIngestionErrorCode(v string) *IngestionStatus { + s.LatestIngestionErrorCode = &v + return s +} + +// SetLatestIngestionSuccessEventID sets the LatestIngestionSuccessEventID field's value. +func (s *IngestionStatus) SetLatestIngestionSuccessEventID(v string) *IngestionStatus { + s.LatestIngestionSuccessEventID = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InactiveQueryException) RequestID() string { - return s.RespMetadata.RequestID +// SetLatestIngestionSuccessTime sets the LatestIngestionSuccessTime field's value. +func (s *IngestionStatus) SetLatestIngestionSuccessTime(v time.Time) *IngestionStatus { + s.LatestIngestionSuccessTime = &v + return s } // If you run GetInsightSelectors on a trail that does not have Insights events @@ -12180,6 +13725,70 @@ func (s *InvalidSnsTopicNameException) RequestID() string { return s.RespMetadata.RequestID } +// This exception is thrown when the specified value of Source is not valid. +type InvalidSourceException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidSourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidSourceException) GoString() string { + return s.String() +} + +func newErrorInvalidSourceException(v protocol.ResponseMetadata) error { + return &InvalidSourceException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidSourceException) Code() string { + return "InvalidSourceException" +} + +// Message returns the exception's message. +func (s *InvalidSourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidSourceException) OrigErr() error { + return nil +} + +func (s *InvalidSourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidSourceException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidSourceException) RequestID() string { + return s.RespMetadata.RequestID +} + // This exception is thrown when the specified tag key or values are not valid. // It can also occur if there are duplicate tags or too many tags on the resource. type InvalidTagParameterException struct { @@ -13324,8 +14933,8 @@ type ListTagsInput struct { // Reserved for future use. NextToken *string `type:"string"` - // Specifies a list of trail and event data store ARNs whose tags will be listed. - // The list has a limit of 20 ARNs. + // Specifies a list of trail, event data store, or channel ARNs whose tags will + // be listed. The list has a limit of 20 ARNs. // // ResourceIdList is a required field ResourceIdList []*string `type:"list" required:"true"` @@ -14560,6 +16169,125 @@ func (s *PutInsightSelectorsOutput) SetTrailARN(v string) *PutInsightSelectorsOu return s } +type PutResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudTrail channel attached to the + // resource-based policy. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. + // + // ResourceArn is a required field + ResourceArn *string `min:"3" type:"string" required:"true"` + + // A JSON-formatted string for an Amazon Web Services resource-based policy. + // + // The following are requirements for the resource policy: + // + // * Contains only one action: cloudtrail-data:PutAuditEvents + // + // * Contains at least one statement. The policy can have a maximum of 20 + // statements. + // + // * Each statement contains at least one principal. A statement can have + // a maximum of 50 principals. + // + // ResourcePolicy is a required field + ResourcePolicy *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 3)) + } + if s.ResourcePolicy == nil { + invalidParams.Add(request.NewErrParamRequired("ResourcePolicy")) + } + if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePolicyInput) SetResourceArn(v string) *PutResourcePolicyInput { + s.ResourceArn = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *PutResourcePolicyInput) SetResourcePolicy(v string) *PutResourcePolicyInput { + s.ResourcePolicy = &v + return s +} + +type PutResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudTrail channel attached to the + // resource-based policy. + ResourceArn *string `min:"3" type:"string"` + + // The JSON-formatted string of the Amazon Web Services resource-based policy + // attached to the CloudTrail channel. + ResourcePolicy *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePolicyOutput) SetResourceArn(v string) *PutResourcePolicyOutput { + s.ResourceArn = &v + return s +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *PutResourcePolicyOutput) SetResourcePolicy(v string) *PutResourcePolicyOutput { + s.ResourcePolicy = &v + return s +} + // A SQL string of criteria about events that you want to collect in an event // data store. type Query struct { @@ -14874,17 +16602,19 @@ func (s RegisterOrganizationDelegatedAdminOutput) GoString() string { return s.String() } -// Specifies the tags to remove from a trail or event data store. +// Specifies the tags to remove from a trail, event data store, or channel. type RemoveTagsInput struct { _ struct{} `type:"structure"` - // Specifies the ARN of the trail or event data store from which tags should - // be removed. + // Specifies the ARN of the trail, event data store, or channel from which tags + // should be removed. // // Example trail ARN format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Example event data store ARN format: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE // + // Example channel ARN format: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 + // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -14938,22 +16668,163 @@ func (s *RemoveTagsInput) Validate() error { return nil } -// SetResourceId sets the ResourceId field's value. -func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { - s.ResourceId = &v - return s +// SetResourceId sets the ResourceId field's value. +func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput { + s.ResourceId = &v + return s +} + +// SetTagsList sets the TagsList field's value. +func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput { + s.TagsList = v + return s +} + +// Returns the objects or data listed below if successful. Otherwise, returns +// an error. +type RemoveTagsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RemoveTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RemoveTagsOutput) GoString() string { + return s.String() +} + +// Specifies the type and name of a resource referenced by an event. +type Resource struct { + _ struct{} `type:"structure"` + + // The name of the resource referenced by the event returned. These are user-created + // names whose values will depend on the environment. For example, the resource + // name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" + // for an EC2 Instance. + ResourceName *string `type:"string"` + + // The type of a resource referenced by the event returned. When the resource + // type cannot be determined, null is returned. Some examples of resource types + // are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and + // AccessKey for IAM. To learn more about how to look up and filter events by + // the resource types supported for a service, see Filtering CloudTrail Events + // (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events). + ResourceType *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Resource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Resource) GoString() string { + return s.String() +} + +// SetResourceName sets the ResourceName field's value. +func (s *Resource) SetResourceName(v string) *Resource { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Resource) SetResourceType(v string) *Resource { + s.ResourceType = &v + return s +} + +// This exception is thrown when the provided resource does not exist, or the +// ARN format of the resource is not valid. The following is the valid format +// for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. +type ResourceARNNotValidException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceARNNotValidException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceARNNotValidException) GoString() string { + return s.String() +} + +func newErrorResourceARNNotValidException(v protocol.ResponseMetadata) error { + return &ResourceARNNotValidException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceARNNotValidException) Code() string { + return "ResourceARNNotValidException" +} + +// Message returns the exception's message. +func (s *ResourceARNNotValidException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceARNNotValidException) OrigErr() error { + return nil +} + +func (s *ResourceARNNotValidException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTagsList sets the TagsList field's value. -func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput { - s.TagsList = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceARNNotValidException) StatusCode() int { + return s.RespMetadata.StatusCode } -// Returns the objects or data listed below if successful. Otherwise, returns -// an error. -type RemoveTagsOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s *ResourceARNNotValidException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when the specified resource is not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -14961,7 +16832,7 @@ type RemoveTagsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RemoveTagsOutput) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -14970,27 +16841,54 @@ func (s RemoveTagsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RemoveTagsOutput) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// Specifies the type and name of a resource referenced by an event. -type Resource struct { - _ struct{} `type:"structure"` +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} - // The name of the resource referenced by the event returned. These are user-created - // names whose values will depend on the environment. For example, the resource - // name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" - // for an EC2 Instance. - ResourceName *string `type:"string"` +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} - // The type of a resource referenced by the event returned. When the resource - // type cannot be determined, null is returned. Some examples of resource types - // are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and - // AccessKey for IAM. To learn more about how to look up and filter events by - // the resource types supported for a service, see Filtering CloudTrail Events - // (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events). - ResourceType *string `type:"string"` +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when the specified resource policy is not found. +type ResourcePolicyNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -14998,7 +16896,7 @@ type Resource struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Resource) String() string { +func (s ResourcePolicyNotFoundException) String() string { return awsutil.Prettify(s) } @@ -15007,24 +16905,61 @@ func (s Resource) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Resource) GoString() string { +func (s ResourcePolicyNotFoundException) GoString() string { return s.String() } -// SetResourceName sets the ResourceName field's value. -func (s *Resource) SetResourceName(v string) *Resource { - s.ResourceName = &v - return s +func newErrorResourcePolicyNotFoundException(v protocol.ResponseMetadata) error { + return &ResourcePolicyNotFoundException{ + RespMetadata: v, + } } -// SetResourceType sets the ResourceType field's value. -func (s *Resource) SetResourceType(v string) *Resource { - s.ResourceType = &v - return s +// Code returns the exception type name. +func (s *ResourcePolicyNotFoundException) Code() string { + return "ResourcePolicyNotFoundException" } -// This exception is thrown when the specified resource is not found. -type ResourceNotFoundException struct { +// Message returns the exception's message. +func (s *ResourcePolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourcePolicyNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourcePolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourcePolicyNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourcePolicyNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// This exception is thrown when the resouce-based policy has syntax errors, +// or contains a principal that is not valid. +// +// The following are requirements for the resource policy: +// +// - Contains only one action: cloudtrail-data:PutAuditEvents +// +// - Contains at least one statement. The policy can have a maximum of 20 +// statements. +// +// - Each statement contains at least one principal. A statement can have +// a maximum of 50 principals. +type ResourcePolicyNotValidException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -15036,7 +16971,7 @@ type ResourceNotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { +func (s ResourcePolicyNotValidException) String() string { return awsutil.Prettify(s) } @@ -15045,23 +16980,23 @@ func (s ResourceNotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { +func (s ResourcePolicyNotValidException) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ +func newErrorResourcePolicyNotValidException(v protocol.ResponseMetadata) error { + return &ResourcePolicyNotValidException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" +func (s *ResourcePolicyNotValidException) Code() string { + return "ResourcePolicyNotValidException" } // Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { +func (s *ResourcePolicyNotValidException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -15069,21 +17004,21 @@ func (s *ResourceNotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { +func (s *ResourcePolicyNotValidException) OrigErr() error { return nil } -func (s *ResourceNotFoundException) Error() string { +func (s *ResourcePolicyNotValidException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { +func (s *ResourcePolicyNotValidException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { +func (s *ResourcePolicyNotValidException) RequestID() string { return s.RespMetadata.RequestID } @@ -16142,7 +18077,8 @@ func (s StopLoggingOutput) GoString() string { return s.String() } -// A custom key-value pair associated with a resource such as a CloudTrail trail. +// A custom key-value pair associated with a resource such as a CloudTrail trail, +// event data store, or channel. type Tag struct { _ struct{} `type:"structure"` @@ -16206,8 +18142,8 @@ func (s *Tag) SetValue(v string) *Tag { return s } -// The number of tags per trail has exceeded the permitted amount. Currently, -// the limit is 50. +// The number of tags per trail, event data store, or channel has exceeded the +// permitted amount. Currently, the limit is 50. type TagsLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -16763,6 +18699,148 @@ func (s *UnsupportedOperationException) RequestID() string { return s.RespMetadata.RequestID } +type UpdateChannelInput struct { + _ struct{} `type:"structure"` + + // The ARN or ID (the ARN suffix) of the channel that you want to update. + // + // Channel is a required field + Channel *string `min:"3" type:"string" required:"true"` + + // The ARNs of event data stores that you want to log events arriving through + // the channel. + Destinations []*Destination `min:"1" type:"list"` + + // Changes the name of the channel. + Name *string `min:"3" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"} + if s.Channel == nil { + invalidParams.Add(request.NewErrParamRequired("Channel")) + } + if s.Channel != nil && len(*s.Channel) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Channel", 3)) + } + if s.Destinations != nil && len(s.Destinations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destinations", 1)) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Destinations != nil { + for i, v := range s.Destinations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannel sets the Channel field's value. +func (s *UpdateChannelInput) SetChannel(v string) *UpdateChannelInput { + s.Channel = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *UpdateChannelInput) SetDestinations(v []*Destination) *UpdateChannelInput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateChannelInput) SetName(v string) *UpdateChannelInput { + s.Name = &v + return s +} + +type UpdateChannelOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel that was updated. + ChannelArn *string `min:"3" type:"string"` + + // The event data stores that log events arriving through the channel. + Destinations []*Destination `min:"1" type:"list"` + + // The name of the channel that was updated. + Name *string `min:"3" type:"string"` + + // The event source of the channel that was updated. + Source *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateChannelOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelOutput) SetChannelArn(v string) *UpdateChannelOutput { + s.ChannelArn = &v + return s +} + +// SetDestinations sets the Destinations field's value. +func (s *UpdateChannelOutput) SetDestinations(v []*Destination) *UpdateChannelOutput { + s.Destinations = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateChannelOutput) SetName(v string) *UpdateChannelOutput { + s.Name = &v + return s +} + +// SetSource sets the Source field's value. +func (s *UpdateChannelOutput) SetSource(v string) *UpdateChannelOutput { + s.Source = &v + return s +} + type UpdateEventDataStoreInput struct { _ struct{} `type:"structure"` @@ -17057,11 +19135,13 @@ type UpdateTrailInput struct { // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs are delivered. + // You must use a log group that exists in your account. + // // Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user's log group. You must use a role that exists in your account. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether log file validation is enabled. The default is false. @@ -17092,12 +19172,13 @@ type UpdateTrailInput struct { // Specifies whether the trail is applied to all accounts in an organization // in Organizations, or only for the current Amazon Web Services account. The // default is false, and cannot be true unless the call is made on behalf of - // an Amazon Web Services account that is the management account for an organization - // in Organizations. If the trail is not an organization trail and this is set - // to true, the trail will be created in all Amazon Web Services accounts that - // belong to the organization. If the trail is an organization trail and this - // is set to false, the trail will remain in the current Amazon Web Services - // account but be deleted from all member accounts in the organization. + // an Amazon Web Services account that is the management account or delegated + // administrator account for an organization in Organizations. If the trail + // is not an organization trail and this is set to true, the trail will be created + // in all Amazon Web Services accounts that belong to the organization. If the + // trail is an organization trail and this is set to false, the trail will remain + // in the current Amazon Web Services account but be deleted from all member + // accounts in the organization. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. diff --git a/service/cloudtrail/cloudtrailiface/interface.go b/service/cloudtrail/cloudtrailiface/interface.go index 5e81f5b1dc0..65c452444a9 100644 --- a/service/cloudtrail/cloudtrailiface/interface.go +++ b/service/cloudtrail/cloudtrailiface/interface.go @@ -68,6 +68,10 @@ type CloudTrailAPI interface { CancelQueryWithContext(aws.Context, *cloudtrail.CancelQueryInput, ...request.Option) (*cloudtrail.CancelQueryOutput, error) CancelQueryRequest(*cloudtrail.CancelQueryInput) (*request.Request, *cloudtrail.CancelQueryOutput) + CreateChannel(*cloudtrail.CreateChannelInput) (*cloudtrail.CreateChannelOutput, error) + CreateChannelWithContext(aws.Context, *cloudtrail.CreateChannelInput, ...request.Option) (*cloudtrail.CreateChannelOutput, error) + CreateChannelRequest(*cloudtrail.CreateChannelInput) (*request.Request, *cloudtrail.CreateChannelOutput) + CreateEventDataStore(*cloudtrail.CreateEventDataStoreInput) (*cloudtrail.CreateEventDataStoreOutput, error) CreateEventDataStoreWithContext(aws.Context, *cloudtrail.CreateEventDataStoreInput, ...request.Option) (*cloudtrail.CreateEventDataStoreOutput, error) CreateEventDataStoreRequest(*cloudtrail.CreateEventDataStoreInput) (*request.Request, *cloudtrail.CreateEventDataStoreOutput) @@ -76,10 +80,18 @@ type CloudTrailAPI interface { CreateTrailWithContext(aws.Context, *cloudtrail.CreateTrailInput, ...request.Option) (*cloudtrail.CreateTrailOutput, error) CreateTrailRequest(*cloudtrail.CreateTrailInput) (*request.Request, *cloudtrail.CreateTrailOutput) + DeleteChannel(*cloudtrail.DeleteChannelInput) (*cloudtrail.DeleteChannelOutput, error) + DeleteChannelWithContext(aws.Context, *cloudtrail.DeleteChannelInput, ...request.Option) (*cloudtrail.DeleteChannelOutput, error) + DeleteChannelRequest(*cloudtrail.DeleteChannelInput) (*request.Request, *cloudtrail.DeleteChannelOutput) + DeleteEventDataStore(*cloudtrail.DeleteEventDataStoreInput) (*cloudtrail.DeleteEventDataStoreOutput, error) DeleteEventDataStoreWithContext(aws.Context, *cloudtrail.DeleteEventDataStoreInput, ...request.Option) (*cloudtrail.DeleteEventDataStoreOutput, error) DeleteEventDataStoreRequest(*cloudtrail.DeleteEventDataStoreInput) (*request.Request, *cloudtrail.DeleteEventDataStoreOutput) + DeleteResourcePolicy(*cloudtrail.DeleteResourcePolicyInput) (*cloudtrail.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyWithContext(aws.Context, *cloudtrail.DeleteResourcePolicyInput, ...request.Option) (*cloudtrail.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyRequest(*cloudtrail.DeleteResourcePolicyInput) (*request.Request, *cloudtrail.DeleteResourcePolicyOutput) + DeleteTrail(*cloudtrail.DeleteTrailInput) (*cloudtrail.DeleteTrailOutput, error) DeleteTrailWithContext(aws.Context, *cloudtrail.DeleteTrailInput, ...request.Option) (*cloudtrail.DeleteTrailOutput, error) DeleteTrailRequest(*cloudtrail.DeleteTrailInput) (*request.Request, *cloudtrail.DeleteTrailOutput) @@ -123,6 +135,10 @@ type CloudTrailAPI interface { GetQueryResultsPages(*cloudtrail.GetQueryResultsInput, func(*cloudtrail.GetQueryResultsOutput, bool) bool) error GetQueryResultsPagesWithContext(aws.Context, *cloudtrail.GetQueryResultsInput, func(*cloudtrail.GetQueryResultsOutput, bool) bool, ...request.Option) error + GetResourcePolicy(*cloudtrail.GetResourcePolicyInput) (*cloudtrail.GetResourcePolicyOutput, error) + GetResourcePolicyWithContext(aws.Context, *cloudtrail.GetResourcePolicyInput, ...request.Option) (*cloudtrail.GetResourcePolicyOutput, error) + GetResourcePolicyRequest(*cloudtrail.GetResourcePolicyInput) (*request.Request, *cloudtrail.GetResourcePolicyOutput) + GetTrail(*cloudtrail.GetTrailInput) (*cloudtrail.GetTrailOutput, error) GetTrailWithContext(aws.Context, *cloudtrail.GetTrailInput, ...request.Option) (*cloudtrail.GetTrailOutput, error) GetTrailRequest(*cloudtrail.GetTrailInput) (*request.Request, *cloudtrail.GetTrailOutput) @@ -202,6 +218,10 @@ type CloudTrailAPI interface { PutInsightSelectorsWithContext(aws.Context, *cloudtrail.PutInsightSelectorsInput, ...request.Option) (*cloudtrail.PutInsightSelectorsOutput, error) PutInsightSelectorsRequest(*cloudtrail.PutInsightSelectorsInput) (*request.Request, *cloudtrail.PutInsightSelectorsOutput) + PutResourcePolicy(*cloudtrail.PutResourcePolicyInput) (*cloudtrail.PutResourcePolicyOutput, error) + PutResourcePolicyWithContext(aws.Context, *cloudtrail.PutResourcePolicyInput, ...request.Option) (*cloudtrail.PutResourcePolicyOutput, error) + PutResourcePolicyRequest(*cloudtrail.PutResourcePolicyInput) (*request.Request, *cloudtrail.PutResourcePolicyOutput) + RegisterOrganizationDelegatedAdmin(*cloudtrail.RegisterOrganizationDelegatedAdminInput) (*cloudtrail.RegisterOrganizationDelegatedAdminOutput, error) RegisterOrganizationDelegatedAdminWithContext(aws.Context, *cloudtrail.RegisterOrganizationDelegatedAdminInput, ...request.Option) (*cloudtrail.RegisterOrganizationDelegatedAdminOutput, error) RegisterOrganizationDelegatedAdminRequest(*cloudtrail.RegisterOrganizationDelegatedAdminInput) (*request.Request, *cloudtrail.RegisterOrganizationDelegatedAdminOutput) @@ -234,6 +254,10 @@ type CloudTrailAPI interface { StopLoggingWithContext(aws.Context, *cloudtrail.StopLoggingInput, ...request.Option) (*cloudtrail.StopLoggingOutput, error) StopLoggingRequest(*cloudtrail.StopLoggingInput) (*request.Request, *cloudtrail.StopLoggingOutput) + UpdateChannel(*cloudtrail.UpdateChannelInput) (*cloudtrail.UpdateChannelOutput, error) + UpdateChannelWithContext(aws.Context, *cloudtrail.UpdateChannelInput, ...request.Option) (*cloudtrail.UpdateChannelOutput, error) + UpdateChannelRequest(*cloudtrail.UpdateChannelInput) (*request.Request, *cloudtrail.UpdateChannelOutput) + UpdateEventDataStore(*cloudtrail.UpdateEventDataStoreInput) (*cloudtrail.UpdateEventDataStoreOutput, error) UpdateEventDataStoreWithContext(aws.Context, *cloudtrail.UpdateEventDataStoreInput, ...request.Option) (*cloudtrail.UpdateEventDataStoreOutput, error) UpdateEventDataStoreRequest(*cloudtrail.UpdateEventDataStoreInput) (*request.Request, *cloudtrail.UpdateEventDataStoreOutput) diff --git a/service/cloudtrail/errors.go b/service/cloudtrail/errors.go index cf6b5cf831d..a9e1c90dfab 100644 --- a/service/cloudtrail/errors.go +++ b/service/cloudtrail/errors.go @@ -15,6 +15,13 @@ const ( // is not valid. The following is the format of a trail ARN. // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail + // + // This exception is also thrown when you call AddTags or RemoveTags on a trail, + // event data store, or channel with a resource ARN that is not valid. + // + // The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE + // + // The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 ErrCodeARNInvalidException = "CloudTrailARNInvalidException" // ErrCodeAccessNotEnabledException for service response error code @@ -36,8 +43,8 @@ const ( // ErrCodeAccountNotFoundException for service response error code // "AccountNotFoundException". // - // This exception is thrown when when the specified account is not found or - // not part of an organization. + // This exception is thrown when the specified account is not found or not part + // of an organization. ErrCodeAccountNotFoundException = "AccountNotFoundException" // ErrCodeAccountNotRegisteredException for service response error code @@ -67,10 +74,29 @@ const ( // This exception is thrown when the specified value of ChannelARN is not valid. ErrCodeChannelARNInvalidException = "ChannelARNInvalidException" + // ErrCodeChannelAlreadyExistsException for service response error code + // "ChannelAlreadyExistsException". + // + // This exception is thrown when the provided channel already exists. + ErrCodeChannelAlreadyExistsException = "ChannelAlreadyExistsException" + + // ErrCodeChannelExistsForEDSException for service response error code + // "ChannelExistsForEDSException". + // + // This exception is thrown when the specified event data store cannot yet be + // deleted because it is in use by a channel. + ErrCodeChannelExistsForEDSException = "ChannelExistsForEDSException" + + // ErrCodeChannelMaxLimitExceededException for service response error code + // "ChannelMaxLimitExceededException". + // + // This exception is thrown when the maximum number of channels limit is exceeded. + ErrCodeChannelMaxLimitExceededException = "ChannelMaxLimitExceededException" + // ErrCodeChannelNotFoundException for service response error code // "ChannelNotFoundException". // - // The specified channel was not found. + // This exception is thrown when CloudTrail cannot find the specified channel. ErrCodeChannelNotFoundException = "ChannelNotFoundException" // ErrCodeCloudTrailInvalidClientTokenIdException for service response error code @@ -93,8 +119,9 @@ const ( // // This exception is thrown when the specified resource is not ready for an // operation. This can occur when you try to run an operation on a resource - // before CloudTrail has time to fully load the resource. If this exception - // occurs, wait a few minutes, and then try the operation again. + // before CloudTrail has time to fully load the resource, or because another + // operation is modifying the resource. If this exception occurs, wait a few + // minutes, and then try the operation again. ErrCodeConflictException = "ConflictException" // ErrCodeDelegatedAdminAccountLimitExceededException for service response error code @@ -360,6 +387,12 @@ const ( // This exception is thrown when the provided SNS topic name is not valid. ErrCodeInvalidSnsTopicNameException = "InvalidSnsTopicNameException" + // ErrCodeInvalidSourceException for service response error code + // "InvalidSourceException". + // + // This exception is thrown when the specified value of Source is not valid. + ErrCodeInvalidSourceException = "InvalidSourceException" + // ErrCodeInvalidTagParameterException for service response error code // "InvalidTagParameterException". // @@ -485,12 +518,43 @@ const ( // The query ID does not exist or does not map to a query. ErrCodeQueryIdNotFoundException = "QueryIdNotFoundException" + // ErrCodeResourceARNNotValidException for service response error code + // "ResourceARNNotValidException". + // + // This exception is thrown when the provided resource does not exist, or the + // ARN format of the resource is not valid. The following is the valid format + // for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. + ErrCodeResourceARNNotValidException = "ResourceARNNotValidException" + // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // This exception is thrown when the specified resource is not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeResourcePolicyNotFoundException for service response error code + // "ResourcePolicyNotFoundException". + // + // This exception is thrown when the specified resource policy is not found. + ErrCodeResourcePolicyNotFoundException = "ResourcePolicyNotFoundException" + + // ErrCodeResourcePolicyNotValidException for service response error code + // "ResourcePolicyNotValidException". + // + // This exception is thrown when the resouce-based policy has syntax errors, + // or contains a principal that is not valid. + // + // The following are requirements for the resource policy: + // + // * Contains only one action: cloudtrail-data:PutAuditEvents + // + // * Contains at least one statement. The policy can have a maximum of 20 + // statements. + // + // * Each statement contains at least one principal. A statement can have + // a maximum of 50 principals. + ErrCodeResourcePolicyNotValidException = "ResourcePolicyNotValidException" + // ErrCodeResourceTypeNotSupportedException for service response error code // "ResourceTypeNotSupportedException". // @@ -507,8 +571,8 @@ const ( // ErrCodeTagsLimitExceededException for service response error code // "TagsLimitExceededException". // - // The number of tags per trail has exceeded the permitted amount. Currently, - // the limit is 50. + // The number of tags per trail, event data store, or channel has exceeded the + // permitted amount. Currently, the limit is 50. ErrCodeTagsLimitExceededException = "TagsLimitExceededException" // ErrCodeTrailAlreadyExistsException for service response error code @@ -545,6 +609,9 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccountRegisteredException": newErrorAccountRegisteredException, "CannotDelegateManagementAccountException": newErrorCannotDelegateManagementAccountException, "ChannelARNInvalidException": newErrorChannelARNInvalidException, + "ChannelAlreadyExistsException": newErrorChannelAlreadyExistsException, + "ChannelExistsForEDSException": newErrorChannelExistsForEDSException, + "ChannelMaxLimitExceededException": newErrorChannelMaxLimitExceededException, "ChannelNotFoundException": newErrorChannelNotFoundException, "CloudTrailInvalidClientTokenIdException": newErrorCloudTrailInvalidClientTokenIdException, "CloudWatchLogsDeliveryUnavailableException": newErrorCloudWatchLogsDeliveryUnavailableException, @@ -585,6 +652,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidS3BucketNameException": newErrorInvalidS3BucketNameException, "InvalidS3PrefixException": newErrorInvalidS3PrefixException, "InvalidSnsTopicNameException": newErrorInvalidSnsTopicNameException, + "InvalidSourceException": newErrorInvalidSourceException, "InvalidTagParameterException": newErrorInvalidTagParameterException, "InvalidTimeRangeException": newErrorInvalidTimeRangeException, "InvalidTokenException": newErrorInvalidTokenException, @@ -601,7 +669,10 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "OrganizationNotInAllFeaturesModeException": newErrorOrganizationNotInAllFeaturesModeException, "OrganizationsNotInUseException": newErrorOrganizationsNotInUseException, "QueryIdNotFoundException": newErrorQueryIdNotFoundException, + "ResourceARNNotValidException": newErrorResourceARNNotValidException, "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourcePolicyNotFoundException": newErrorResourcePolicyNotFoundException, + "ResourcePolicyNotValidException": newErrorResourcePolicyNotValidException, "ResourceTypeNotSupportedException": newErrorResourceTypeNotSupportedException, "S3BucketDoesNotExistException": newErrorS3BucketDoesNotExistException, "TagsLimitExceededException": newErrorTagsLimitExceededException, diff --git a/service/cloudtraildata/api.go b/service/cloudtraildata/api.go new file mode 100644 index 00000000000..8544d7b0f1f --- /dev/null +++ b/service/cloudtraildata/api.go @@ -0,0 +1,814 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package cloudtraildata + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" +) + +const opPutAuditEvents = "PutAuditEvents" + +// PutAuditEventsRequest generates a "aws/request.Request" representing the +// client's request for the PutAuditEvents operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAuditEvents for more information on using the PutAuditEvents +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutAuditEventsRequest method. +// req, resp := client.PutAuditEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-data-2021-08-11/PutAuditEvents +func (c *CloudTrailData) PutAuditEventsRequest(input *PutAuditEventsInput) (req *request.Request, output *PutAuditEventsOutput) { + op := &request.Operation{ + Name: opPutAuditEvents, + HTTPMethod: "POST", + HTTPPath: "/PutAuditEvents", + } + + if input == nil { + input = &PutAuditEventsInput{} + } + + output = &PutAuditEventsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAuditEvents API operation for AWS CloudTrail Data Service. +// +// Ingests your application events into CloudTrail Lake. A required parameter, +// auditEvents, accepts the JSON records (also called payload) of events that +// you want CloudTrail to ingest. You can add up to 100 of these events (or +// up to 1 MB) per PutAuditEvents request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail Data Service's +// API operation PutAuditEvents for usage and error information. +// +// Returned Error Types: +// +// - ChannelInsufficientPermission +// The caller's account ID must be the same as the channel owner's account ID. +// +// - ChannelNotFound +// The channel could not be found. +// +// - InvalidChannelARN +// The specified channel ARN is not a valid channel ARN. +// +// - ChannelUnsupportedSchema +// The schema type of the event is not supported. +// +// - DuplicatedAuditEventId +// Two or more entries in the request have the same event ID. +// +// - UnsupportedOperationException +// The operation requested is not supported in this region or account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-data-2021-08-11/PutAuditEvents +func (c *CloudTrailData) PutAuditEvents(input *PutAuditEventsInput) (*PutAuditEventsOutput, error) { + req, out := c.PutAuditEventsRequest(input) + return out, req.Send() +} + +// PutAuditEventsWithContext is the same as PutAuditEvents with the addition of +// the ability to pass a context and additional request options. +// +// See PutAuditEvents for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudTrailData) PutAuditEventsWithContext(ctx aws.Context, input *PutAuditEventsInput, opts ...request.Option) (*PutAuditEventsOutput, error) { + req, out := c.PutAuditEventsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An event from a source outside of Amazon Web Services that you want CloudTrail +// to log. +type AuditEvent struct { + _ struct{} `type:"structure"` + + // The content of an audit event that comes from the event, such as userIdentity, + // userAgent, and eventSource. + // + // EventData is a required field + EventData *string `locationName:"eventData" type:"string" required:"true"` + + // A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail + // receives the event that matches with the checksum. Calculate the checksum + // by running a command like the following: + // + // printf %s $eventdata | openssl dgst -binary -sha256 | base64 + EventDataChecksum *string `locationName:"eventDataChecksum" type:"string"` + + // The original event ID from the source event. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AuditEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AuditEvent) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AuditEvent) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AuditEvent"} + if s.EventData == nil { + invalidParams.Add(request.NewErrParamRequired("EventData")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEventData sets the EventData field's value. +func (s *AuditEvent) SetEventData(v string) *AuditEvent { + s.EventData = &v + return s +} + +// SetEventDataChecksum sets the EventDataChecksum field's value. +func (s *AuditEvent) SetEventDataChecksum(v string) *AuditEvent { + s.EventDataChecksum = &v + return s +} + +// SetId sets the Id field's value. +func (s *AuditEvent) SetId(v string) *AuditEvent { + s.Id = &v + return s +} + +// A response that includes successful and failed event results. +type AuditEventResultEntry struct { + _ struct{} `type:"structure"` + + // The event ID assigned by CloudTrail. + // + // EventID is a required field + EventID *string `locationName:"eventID" min:"1" type:"string" required:"true"` + + // The original event ID from the source event. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AuditEventResultEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AuditEventResultEntry) GoString() string { + return s.String() +} + +// SetEventID sets the EventID field's value. +func (s *AuditEventResultEntry) SetEventID(v string) *AuditEventResultEntry { + s.EventID = &v + return s +} + +// SetId sets the Id field's value. +func (s *AuditEventResultEntry) SetId(v string) *AuditEventResultEntry { + s.Id = &v + return s +} + +// The caller's account ID must be the same as the channel owner's account ID. +type ChannelInsufficientPermission struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelInsufficientPermission) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelInsufficientPermission) GoString() string { + return s.String() +} + +func newErrorChannelInsufficientPermission(v protocol.ResponseMetadata) error { + return &ChannelInsufficientPermission{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelInsufficientPermission) Code() string { + return "ChannelInsufficientPermission" +} + +// Message returns the exception's message. +func (s *ChannelInsufficientPermission) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelInsufficientPermission) OrigErr() error { + return nil +} + +func (s *ChannelInsufficientPermission) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelInsufficientPermission) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelInsufficientPermission) RequestID() string { + return s.RespMetadata.RequestID +} + +// The channel could not be found. +type ChannelNotFound struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelNotFound) GoString() string { + return s.String() +} + +func newErrorChannelNotFound(v protocol.ResponseMetadata) error { + return &ChannelNotFound{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelNotFound) Code() string { + return "ChannelNotFound" +} + +// Message returns the exception's message. +func (s *ChannelNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelNotFound) OrigErr() error { + return nil +} + +func (s *ChannelNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelNotFound) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelNotFound) RequestID() string { + return s.RespMetadata.RequestID +} + +// The schema type of the event is not supported. +type ChannelUnsupportedSchema struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelUnsupportedSchema) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelUnsupportedSchema) GoString() string { + return s.String() +} + +func newErrorChannelUnsupportedSchema(v protocol.ResponseMetadata) error { + return &ChannelUnsupportedSchema{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ChannelUnsupportedSchema) Code() string { + return "ChannelUnsupportedSchema" +} + +// Message returns the exception's message. +func (s *ChannelUnsupportedSchema) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ChannelUnsupportedSchema) OrigErr() error { + return nil +} + +func (s *ChannelUnsupportedSchema) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ChannelUnsupportedSchema) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ChannelUnsupportedSchema) RequestID() string { + return s.RespMetadata.RequestID +} + +// Two or more entries in the request have the same event ID. +type DuplicatedAuditEventId struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DuplicatedAuditEventId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DuplicatedAuditEventId) GoString() string { + return s.String() +} + +func newErrorDuplicatedAuditEventId(v protocol.ResponseMetadata) error { + return &DuplicatedAuditEventId{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *DuplicatedAuditEventId) Code() string { + return "DuplicatedAuditEventId" +} + +// Message returns the exception's message. +func (s *DuplicatedAuditEventId) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *DuplicatedAuditEventId) OrigErr() error { + return nil +} + +func (s *DuplicatedAuditEventId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *DuplicatedAuditEventId) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *DuplicatedAuditEventId) RequestID() string { + return s.RespMetadata.RequestID +} + +// The specified channel ARN is not a valid channel ARN. +type InvalidChannelARN struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidChannelARN) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidChannelARN) GoString() string { + return s.String() +} + +func newErrorInvalidChannelARN(v protocol.ResponseMetadata) error { + return &InvalidChannelARN{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidChannelARN) Code() string { + return "InvalidChannelARN" +} + +// Message returns the exception's message. +func (s *InvalidChannelARN) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidChannelARN) OrigErr() error { + return nil +} + +func (s *InvalidChannelARN) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidChannelARN) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidChannelARN) RequestID() string { + return s.RespMetadata.RequestID +} + +type PutAuditEventsInput struct { + _ struct{} `type:"structure"` + + // The JSON payload of events that you want to ingest. You can also point to + // the JSON event payload in a file. + // + // AuditEvents is a required field + AuditEvents []*AuditEvent `locationName:"auditEvents" min:"1" type:"list" required:"true"` + + // The ARN or ID (the ARN suffix) of a channel. + // + // ChannelArn is a required field + ChannelArn *string `location:"querystring" locationName:"channelArn" type:"string" required:"true"` + + // A unique identifier that is conditionally required when the channel's resource + // policy includes an external ID. This value can be any string, such as a passphrase + // or account number. + ExternalId *string `location:"querystring" locationName:"externalId" min:"2" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAuditEventsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAuditEventsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAuditEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAuditEventsInput"} + if s.AuditEvents == nil { + invalidParams.Add(request.NewErrParamRequired("AuditEvents")) + } + if s.AuditEvents != nil && len(s.AuditEvents) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuditEvents", 1)) + } + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ExternalId != nil && len(*s.ExternalId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalId", 2)) + } + if s.AuditEvents != nil { + for i, v := range s.AuditEvents { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AuditEvents", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuditEvents sets the AuditEvents field's value. +func (s *PutAuditEventsInput) SetAuditEvents(v []*AuditEvent) *PutAuditEventsInput { + s.AuditEvents = v + return s +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *PutAuditEventsInput) SetChannelArn(v string) *PutAuditEventsInput { + s.ChannelArn = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *PutAuditEventsInput) SetExternalId(v string) *PutAuditEventsInput { + s.ExternalId = &v + return s +} + +type PutAuditEventsOutput struct { + _ struct{} `type:"structure"` + + // Lists events in the provided event payload that could not be ingested into + // CloudTrail, and includes the error code and error message returned for events + // that could not be ingested. + // + // Failed is a required field + Failed []*ResultErrorEntry `locationName:"failed" type:"list" required:"true"` + + // Lists events in the provided event payload that were successfully ingested + // into CloudTrail. + // + // Successful is a required field + Successful []*AuditEventResultEntry `locationName:"successful" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAuditEventsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAuditEventsOutput) GoString() string { + return s.String() +} + +// SetFailed sets the Failed field's value. +func (s *PutAuditEventsOutput) SetFailed(v []*ResultErrorEntry) *PutAuditEventsOutput { + s.Failed = v + return s +} + +// SetSuccessful sets the Successful field's value. +func (s *PutAuditEventsOutput) SetSuccessful(v []*AuditEventResultEntry) *PutAuditEventsOutput { + s.Successful = v + return s +} + +// Includes the error code and error message for events that could not be ingested +// by CloudTrail. +type ResultErrorEntry struct { + _ struct{} `type:"structure"` + + // The error code for events that could not be ingested by CloudTrail. Possible + // error codes include: FieldTooLong, FieldNotFound, InvalidChecksum, InvalidData, + // InvalidRecipient, InvalidEventSource, AccountNotSubscribed, Throttling, and + // InternalFailure. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" min:"1" type:"string" required:"true"` + + // The message that describes the error for events that could not be ingested + // by CloudTrail. + // + // ErrorMessage is a required field + ErrorMessage *string `locationName:"errorMessage" min:"1" type:"string" required:"true"` + + // The original event ID from the source event that could not be ingested by + // CloudTrail. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResultErrorEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResultErrorEntry) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *ResultErrorEntry) SetErrorCode(v string) *ResultErrorEntry { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *ResultErrorEntry) SetErrorMessage(v string) *ResultErrorEntry { + s.ErrorMessage = &v + return s +} + +// SetId sets the Id field's value. +func (s *ResultErrorEntry) SetId(v string) *ResultErrorEntry { + s.Id = &v + return s +} + +// The operation requested is not supported in this region or account. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s *UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s *UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnsupportedOperationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnsupportedOperationException) RequestID() string { + return s.RespMetadata.RequestID +} diff --git a/service/cloudtraildata/cloudtraildataiface/interface.go b/service/cloudtraildata/cloudtraildataiface/interface.go new file mode 100644 index 00000000000..bcd75d87bb0 --- /dev/null +++ b/service/cloudtraildata/cloudtraildataiface/interface.go @@ -0,0 +1,68 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package cloudtraildataiface provides an interface to enable mocking the AWS CloudTrail Data Service service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package cloudtraildataiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/cloudtraildata" +) + +// CloudTrailDataAPI provides an interface to enable mocking the +// cloudtraildata.CloudTrailData service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS CloudTrail Data Service. +// func myFunc(svc cloudtraildataiface.CloudTrailDataAPI) bool { +// // Make svc.PutAuditEvents request +// } +// +// func main() { +// sess := session.New() +// svc := cloudtraildata.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockCloudTrailDataClient struct { +// cloudtraildataiface.CloudTrailDataAPI +// } +// func (m *mockCloudTrailDataClient) PutAuditEvents(input *cloudtraildata.PutAuditEventsInput) (*cloudtraildata.PutAuditEventsOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockCloudTrailDataClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type CloudTrailDataAPI interface { + PutAuditEvents(*cloudtraildata.PutAuditEventsInput) (*cloudtraildata.PutAuditEventsOutput, error) + PutAuditEventsWithContext(aws.Context, *cloudtraildata.PutAuditEventsInput, ...request.Option) (*cloudtraildata.PutAuditEventsOutput, error) + PutAuditEventsRequest(*cloudtraildata.PutAuditEventsInput) (*request.Request, *cloudtraildata.PutAuditEventsOutput) +} + +var _ CloudTrailDataAPI = (*cloudtraildata.CloudTrailData)(nil) diff --git a/service/cloudtraildata/doc.go b/service/cloudtraildata/doc.go new file mode 100644 index 00000000000..7d327186d37 --- /dev/null +++ b/service/cloudtraildata/doc.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package cloudtraildata provides the client and types for making API +// requests to AWS CloudTrail Data Service. +// +// The CloudTrail Data Service lets you ingest events into CloudTrail from any +// source in your hybrid environments, such as in-house or SaaS applications +// hosted on-premises or in the cloud, virtual machines, or containers. You +// can store, access, analyze, troubleshoot and take action on this data without +// maintaining multiple log aggregators and reporting tools. After you run PutAuditEvents +// to ingest your application activity into CloudTrail, you can use CloudTrail +// Lake to search, query, and analyze the data that is logged from your applications. +// +// See https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-data-2021-08-11 for more information on this service. +// +// See cloudtraildata package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudtraildata/ +// +// # Using the Client +// +// To contact AWS CloudTrail Data Service with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS CloudTrail Data Service client CloudTrailData for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudtraildata/#New +package cloudtraildata diff --git a/service/cloudtraildata/errors.go b/service/cloudtraildata/errors.go new file mode 100644 index 00000000000..d0d83137bd8 --- /dev/null +++ b/service/cloudtraildata/errors.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package cloudtraildata + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeChannelInsufficientPermission for service response error code + // "ChannelInsufficientPermission". + // + // The caller's account ID must be the same as the channel owner's account ID. + ErrCodeChannelInsufficientPermission = "ChannelInsufficientPermission" + + // ErrCodeChannelNotFound for service response error code + // "ChannelNotFound". + // + // The channel could not be found. + ErrCodeChannelNotFound = "ChannelNotFound" + + // ErrCodeChannelUnsupportedSchema for service response error code + // "ChannelUnsupportedSchema". + // + // The schema type of the event is not supported. + ErrCodeChannelUnsupportedSchema = "ChannelUnsupportedSchema" + + // ErrCodeDuplicatedAuditEventId for service response error code + // "DuplicatedAuditEventId". + // + // Two or more entries in the request have the same event ID. + ErrCodeDuplicatedAuditEventId = "DuplicatedAuditEventId" + + // ErrCodeInvalidChannelARN for service response error code + // "InvalidChannelARN". + // + // The specified channel ARN is not a valid channel ARN. + ErrCodeInvalidChannelARN = "InvalidChannelARN" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + // + // The operation requested is not supported in this region or account. + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ChannelInsufficientPermission": newErrorChannelInsufficientPermission, + "ChannelNotFound": newErrorChannelNotFound, + "ChannelUnsupportedSchema": newErrorChannelUnsupportedSchema, + "DuplicatedAuditEventId": newErrorDuplicatedAuditEventId, + "InvalidChannelARN": newErrorInvalidChannelARN, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/cloudtraildata/service.go b/service/cloudtraildata/service.go new file mode 100644 index 00000000000..0b90f59cacd --- /dev/null +++ b/service/cloudtraildata/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package cloudtraildata + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// CloudTrailData provides the API operation methods for making requests to +// AWS CloudTrail Data Service. See this package's package overview docs +// for details on the service. +// +// CloudTrailData methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type CloudTrailData struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "CloudTrail Data" // Name of service. + EndpointsID = "cloudtrail-data" // ID to lookup a service endpoint with. + ServiceID = "CloudTrail Data" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the CloudTrailData client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a CloudTrailData client from just a session. +// svc := cloudtraildata.New(mySession) +// +// // Create a CloudTrailData client with additional configuration +// svc := cloudtraildata.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudTrailData { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "cloudtrail-data" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *CloudTrailData { + svc := &CloudTrailData{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2021-08-11", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a CloudTrailData operation and runs any +// custom request initialization. +func (c *CloudTrailData) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/codeartifact/api.go b/service/codeartifact/api.go index 3bb699f6202..84c2a056f88 100644 --- a/service/codeartifact/api.go +++ b/service/codeartifact/api.go @@ -617,6 +617,105 @@ func (c *CodeArtifact) DeleteDomainPermissionsPolicyWithContext(ctx aws.Context, return out, req.Send() } +const opDeletePackage = "DeletePackage" + +// DeletePackageRequest generates a "aws/request.Request" representing the +// client's request for the DeletePackage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeletePackage for more information on using the DeletePackage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeletePackageRequest method. +// req, resp := client.DeletePackageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackage +func (c *CodeArtifact) DeletePackageRequest(input *DeletePackageInput) (req *request.Request, output *DeletePackageOutput) { + op := &request.Operation{ + Name: opDeletePackage, + HTTPMethod: "DELETE", + HTTPPath: "/v1/package", + } + + if input == nil { + input = &DeletePackageInput{} + } + + output = &DeletePackageOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeletePackage API operation for CodeArtifact. +// +// Deletes a package and all associated package versions. A deleted package +// cannot be restored. To delete one or more package versions, use the DeletePackageVersions +// (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html) +// API. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for CodeArtifact's +// API operation DeletePackage for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// The operation did not succeed because of an unauthorized access attempt. +// +// - ConflictException +// The operation did not succeed because prerequisites are not met. +// +// - InternalServerException +// The operation did not succeed because of an error that occurred inside CodeArtifact. +// +// - ResourceNotFoundException +// The operation did not succeed because the resource requested is not found +// in the service. +// +// - ThrottlingException +// The operation did not succeed because too many requests are sent to the service. +// +// - ValidationException +// The operation did not succeed because a parameter in the request was sent +// with an invalid value. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackage +func (c *CodeArtifact) DeletePackage(input *DeletePackageInput) (*DeletePackageOutput, error) { + req, out := c.DeletePackageRequest(input) + return out, req.Send() +} + +// DeletePackageWithContext is the same as DeletePackage with the addition of +// the ability to pass a context and additional request options. +// +// See DeletePackage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeArtifact) DeletePackageWithContext(ctx aws.Context, input *DeletePackageInput, opts ...request.Option) (*DeletePackageOutput, error) { + req, out := c.DeletePackageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeletePackageVersions = "DeletePackageVersions" // DeletePackageVersionsRequest generates a "aws/request.Request" representing the @@ -664,7 +763,7 @@ func (c *CodeArtifact) DeletePackageVersionsRequest(input *DeletePackageVersions // be restored in your repository. If you want to remove a package version from // your repository and be able to restore it later, set its status to Archived. // Archived packages cannot be downloaded from a repository and don't show up -// with list package APIs (for example, ListPackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html)), +// with list package APIs (for example, ListackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html)), // but you can restore them using UpdatePackageVersionsStatus (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2550,6 +2649,8 @@ func (c *CodeArtifact) ListPackageVersionsRequest(input *ListPackageVersionsInpu // // Returns a list of PackageVersionSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html) // objects for package versions in a repository that match the request parameters. +// Package versions of all statuses will be returned by default when calling +// list-package-versions with no --status parameter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4960,6 +5061,168 @@ func (s *DeleteDomainPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *Dele return s } +type DeletePackageInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the domain that contains the package to delete. + // + // Domain is a required field + Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"` + + // The 12-digit account number of the Amazon Web Services account that owns + // the domain. It does not include dashes or spaces. + DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"` + + // The format of the requested package to delete. + // + // Format is a required field + Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"` + + // The namespace of the package to delete. The package component that specifies + // its namespace depends on its type. For example: + // + // * The namespace of a Maven package is its groupId. The namespace is required + // when deleting Maven package versions. + // + // * The namespace of an npm package is its scope. + // + // * Python and NuGet packages do not contain corresponding components, packages + // of those formats do not have a namespace. + Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` + + // The name of the package to delete. + // + // Package is a required field + Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"` + + // The name of the repository that contains the package to delete. + // + // Repository is a required field + Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePackageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePackageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePackageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePackageInput"} + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) + } + if s.Domain != nil && len(*s.Domain) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 2)) + } + if s.DomainOwner != nil && len(*s.DomainOwner) < 12 { + invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12)) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + if s.Package == nil { + invalidParams.Add(request.NewErrParamRequired("Package")) + } + if s.Package != nil && len(*s.Package) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Package", 1)) + } + if s.Repository == nil { + invalidParams.Add(request.NewErrParamRequired("Repository")) + } + if s.Repository != nil && len(*s.Repository) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Repository", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomain sets the Domain field's value. +func (s *DeletePackageInput) SetDomain(v string) *DeletePackageInput { + s.Domain = &v + return s +} + +// SetDomainOwner sets the DomainOwner field's value. +func (s *DeletePackageInput) SetDomainOwner(v string) *DeletePackageInput { + s.DomainOwner = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DeletePackageInput) SetFormat(v string) *DeletePackageInput { + s.Format = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DeletePackageInput) SetNamespace(v string) *DeletePackageInput { + s.Namespace = &v + return s +} + +// SetPackage sets the Package field's value. +func (s *DeletePackageInput) SetPackage(v string) *DeletePackageInput { + s.Package = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *DeletePackageInput) SetRepository(v string) *DeletePackageInput { + s.Repository = &v + return s +} + +type DeletePackageOutput struct { + _ struct{} `type:"structure"` + + // Details about a package, including its format, namespace, and name. + DeletedPackage *PackageSummary `locationName:"deletedPackage" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePackageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePackageOutput) GoString() string { + return s.String() +} + +// SetDeletedPackage sets the DeletedPackage field's value. +func (s *DeletePackageOutput) SetDeletedPackage(v *PackageSummary) *DeletePackageOutput { + s.DeletedPackage = v + return s +} + type DeletePackageVersionsInput struct { _ struct{} `type:"structure"` @@ -8478,12 +8741,9 @@ type ListPackagesInput struct { // The maximum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The namespace prefix used to filter requested packages. Only packages with - // a namespace that starts with the provided string value are returned. Note - // that although this option is called --namespace and not --namespace-prefix, - // it has prefix-matching behavior. - // - // Each package format uses namespace as follows: + // The namespace used to filter requested packages. Only packages with the provided + // namespace will be returned. The package component that specifies its namespace + // depends on its type. For example: // // * The namespace of a Maven package is its groupId. // @@ -9022,18 +9282,8 @@ type PackageDependency struct { _ struct{} `type:"structure"` // The type of a package dependency. The possible values depend on the package - // type. - // - // * npm: regular, dev, peer, optional - // - // * maven: optional, parent, compile, runtime, test, system, provided. Note - // that parent is not a regular Maven dependency type; instead this is extracted - // from the element if one is defined in the package version's POM - // file. - // - // * nuget: The dependencyType field is never set for NuGet packages. - // - // * pypi: Requires-Dist + // type. Example types are compile, runtime, and test for Maven packages, and + // dev, prod, and optional for npm packages. DependencyType *string `locationName:"dependencyType" type:"string"` // The namespace of the package that this package depends on. The package component @@ -9263,9 +9513,7 @@ func (s *PackageOriginRestrictions) SetUpstream(v string) *PackageOriginRestrict return s } -// Details about a package, including its format, namespace, and name. The ListPackages -// (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html) -// operation returns a list of PackageSummary objects. +// Details about a package, including its format, namespace, and name. type PackageSummary struct { _ struct{} `type:"structure"` diff --git a/service/codeartifact/codeartifactiface/interface.go b/service/codeartifact/codeartifactiface/interface.go index 8b34713e4f2..e344b6b3301 100644 --- a/service/codeartifact/codeartifactiface/interface.go +++ b/service/codeartifact/codeartifactiface/interface.go @@ -84,6 +84,10 @@ type CodeArtifactAPI interface { DeleteDomainPermissionsPolicyWithContext(aws.Context, *codeartifact.DeleteDomainPermissionsPolicyInput, ...request.Option) (*codeartifact.DeleteDomainPermissionsPolicyOutput, error) DeleteDomainPermissionsPolicyRequest(*codeartifact.DeleteDomainPermissionsPolicyInput) (*request.Request, *codeartifact.DeleteDomainPermissionsPolicyOutput) + DeletePackage(*codeartifact.DeletePackageInput) (*codeartifact.DeletePackageOutput, error) + DeletePackageWithContext(aws.Context, *codeartifact.DeletePackageInput, ...request.Option) (*codeartifact.DeletePackageOutput, error) + DeletePackageRequest(*codeartifact.DeletePackageInput) (*request.Request, *codeartifact.DeletePackageOutput) + DeletePackageVersions(*codeartifact.DeletePackageVersionsInput) (*codeartifact.DeletePackageVersionsOutput, error) DeletePackageVersionsWithContext(aws.Context, *codeartifact.DeletePackageVersionsInput, ...request.Option) (*codeartifact.DeletePackageVersionsOutput, error) DeletePackageVersionsRequest(*codeartifact.DeletePackageVersionsInput) (*request.Request, *codeartifact.DeletePackageVersionsOutput) diff --git a/service/ec2/api.go b/service/ec2/api.go index bce0510516a..0f99d516ee9 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -1145,6 +1145,81 @@ func (c *EC2) AssignPrivateIpAddressesWithContext(ctx aws.Context, input *Assign return out, req.Send() } +const opAssignPrivateNatGatewayAddress = "AssignPrivateNatGatewayAddress" + +// AssignPrivateNatGatewayAddressRequest generates a "aws/request.Request" representing the +// client's request for the AssignPrivateNatGatewayAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssignPrivateNatGatewayAddress for more information on using the AssignPrivateNatGatewayAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the AssignPrivateNatGatewayAddressRequest method. +// req, resp := client.AssignPrivateNatGatewayAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateNatGatewayAddress +func (c *EC2) AssignPrivateNatGatewayAddressRequest(input *AssignPrivateNatGatewayAddressInput) (req *request.Request, output *AssignPrivateNatGatewayAddressOutput) { + op := &request.Operation{ + Name: opAssignPrivateNatGatewayAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssignPrivateNatGatewayAddressInput{} + } + + output = &AssignPrivateNatGatewayAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssignPrivateNatGatewayAddress API operation for Amazon Elastic Compute Cloud. +// +// Assigns one or more private IPv4 addresses to a private NAT gateway. For +// more information, see Work with NAT gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-working-with) +// in the Amazon Virtual Private Cloud User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssignPrivateNatGatewayAddress for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateNatGatewayAddress +func (c *EC2) AssignPrivateNatGatewayAddress(input *AssignPrivateNatGatewayAddressInput) (*AssignPrivateNatGatewayAddressOutput, error) { + req, out := c.AssignPrivateNatGatewayAddressRequest(input) + return out, req.Send() +} + +// AssignPrivateNatGatewayAddressWithContext is the same as AssignPrivateNatGatewayAddress with the addition of +// the ability to pass a context and additional request options. +// +// See AssignPrivateNatGatewayAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AssignPrivateNatGatewayAddressWithContext(ctx aws.Context, input *AssignPrivateNatGatewayAddressInput, opts ...request.Option) (*AssignPrivateNatGatewayAddressOutput, error) { + req, out := c.AssignPrivateNatGatewayAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateAddress = "AssociateAddress" // AssociateAddressRequest generates a "aws/request.Request" representing the @@ -1739,6 +1814,86 @@ func (c *EC2) AssociateIpamResourceDiscoveryWithContext(ctx aws.Context, input * return out, req.Send() } +const opAssociateNatGatewayAddress = "AssociateNatGatewayAddress" + +// AssociateNatGatewayAddressRequest generates a "aws/request.Request" representing the +// client's request for the AssociateNatGatewayAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateNatGatewayAddress for more information on using the AssociateNatGatewayAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the AssociateNatGatewayAddressRequest method. +// req, resp := client.AssociateNatGatewayAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateNatGatewayAddress +func (c *EC2) AssociateNatGatewayAddressRequest(input *AssociateNatGatewayAddressInput) (req *request.Request, output *AssociateNatGatewayAddressOutput) { + op := &request.Operation{ + Name: opAssociateNatGatewayAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateNatGatewayAddressInput{} + } + + output = &AssociateNatGatewayAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateNatGatewayAddress API operation for Amazon Elastic Compute Cloud. +// +// Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a +// public NAT gateway. For more information, see Work with NAT gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-working-with) +// in the Amazon Virtual Private Cloud User Guide. +// +// By default, you can associate up to 2 Elastic IP addresses per public NAT +// gateway. You can increase the limit by requesting a quota adjustment. For +// more information, see Elastic IP address quotas (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-eips) +// in the Amazon Virtual Private Cloud User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateNatGatewayAddress for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateNatGatewayAddress +func (c *EC2) AssociateNatGatewayAddress(input *AssociateNatGatewayAddressInput) (*AssociateNatGatewayAddressOutput, error) { + req, out := c.AssociateNatGatewayAddressRequest(input) + return out, req.Send() +} + +// AssociateNatGatewayAddressWithContext is the same as AssociateNatGatewayAddress with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateNatGatewayAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AssociateNatGatewayAddressWithContext(ctx aws.Context, input *AssociateNatGatewayAddressInput, opts ...request.Option) (*AssociateNatGatewayAddressOutput, error) { + req, out := c.AssociateNatGatewayAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateRouteTable = "AssociateRouteTable" // AssociateRouteTableRequest generates a "aws/request.Request" representing the @@ -36141,6 +36296,92 @@ func (c *EC2) DisassociateIpamResourceDiscoveryWithContext(ctx aws.Context, inpu return out, req.Send() } +const opDisassociateNatGatewayAddress = "DisassociateNatGatewayAddress" + +// DisassociateNatGatewayAddressRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateNatGatewayAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateNatGatewayAddress for more information on using the DisassociateNatGatewayAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DisassociateNatGatewayAddressRequest method. +// req, resp := client.DisassociateNatGatewayAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateNatGatewayAddress +func (c *EC2) DisassociateNatGatewayAddressRequest(input *DisassociateNatGatewayAddressInput) (req *request.Request, output *DisassociateNatGatewayAddressOutput) { + op := &request.Operation{ + Name: opDisassociateNatGatewayAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateNatGatewayAddressInput{} + } + + output = &DisassociateNatGatewayAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateNatGatewayAddress API operation for Amazon Elastic Compute Cloud. +// +// Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. +// You cannot disassociate your primary EIP. For more information, see Edit +// secondary IP address associations (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary) +// in the Amazon Virtual Private Cloud User Guide. +// +// While disassociating is in progress, you cannot associate/disassociate additional +// EIPs while the connections are being drained. You are, however, allowed to +// delete the NAT gateway. +// +// An EIP will only be released at the end of MaxDrainDurationSeconds. The EIPs +// stay associated and support the existing connections but do not support any +// new connections (new connections are distributed across the remaining associated +// EIPs). As the existing connections drain out, the EIPs (and the corresponding +// private IPs mapped to them) get released. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateNatGatewayAddress for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateNatGatewayAddress +func (c *EC2) DisassociateNatGatewayAddress(input *DisassociateNatGatewayAddressInput) (*DisassociateNatGatewayAddressOutput, error) { + req, out := c.DisassociateNatGatewayAddressRequest(input) + return out, req.Send() +} + +// DisassociateNatGatewayAddressWithContext is the same as DisassociateNatGatewayAddress with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateNatGatewayAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DisassociateNatGatewayAddressWithContext(ctx aws.Context, input *DisassociateNatGatewayAddressInput, opts ...request.Option) (*DisassociateNatGatewayAddressOutput, error) { + req, out := c.DisassociateNatGatewayAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisassociateRouteTable = "DisassociateRouteTable" // DisassociateRouteTableRequest generates a "aws/request.Request" representing the @@ -53458,6 +53699,92 @@ func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *Unas return out, req.Send() } +const opUnassignPrivateNatGatewayAddress = "UnassignPrivateNatGatewayAddress" + +// UnassignPrivateNatGatewayAddressRequest generates a "aws/request.Request" representing the +// client's request for the UnassignPrivateNatGatewayAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UnassignPrivateNatGatewayAddress for more information on using the UnassignPrivateNatGatewayAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UnassignPrivateNatGatewayAddressRequest method. +// req, resp := client.UnassignPrivateNatGatewayAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateNatGatewayAddress +func (c *EC2) UnassignPrivateNatGatewayAddressRequest(input *UnassignPrivateNatGatewayAddressInput) (req *request.Request, output *UnassignPrivateNatGatewayAddressOutput) { + op := &request.Operation{ + Name: opUnassignPrivateNatGatewayAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UnassignPrivateNatGatewayAddressInput{} + } + + output = &UnassignPrivateNatGatewayAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// UnassignPrivateNatGatewayAddress API operation for Amazon Elastic Compute Cloud. +// +// Unassigns secondary private NAT gateway IPv4 addresses from a private NAT +// gateway. You cannot unassign your primary private IP. For more information, +// see Edit secondary IP address associations (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-edit-secondary) +// in the Amazon Virtual Private Cloud User Guide. +// +// While unassigning is in progress, you cannot assign/unassign additional IP +// addresses while the connections are being drained. You are, however, allowed +// to delete the NAT gateway. +// +// A private IP address will only be released at the end of MaxDrainDurationSeconds. +// The private IP addresses stay associated and support the existing connections +// but do not support any new connections (new connections are distributed across +// the remaining assigned private IP address). After the existing connections +// drain out, the private IP addresses get released. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation UnassignPrivateNatGatewayAddress for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateNatGatewayAddress +func (c *EC2) UnassignPrivateNatGatewayAddress(input *UnassignPrivateNatGatewayAddressInput) (*UnassignPrivateNatGatewayAddressOutput, error) { + req, out := c.UnassignPrivateNatGatewayAddressRequest(input) + return out, req.Send() +} + +// UnassignPrivateNatGatewayAddressWithContext is the same as UnassignPrivateNatGatewayAddress with the addition of +// the ability to pass a context and additional request options. +// +// See UnassignPrivateNatGatewayAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) UnassignPrivateNatGatewayAddressWithContext(ctx aws.Context, input *UnassignPrivateNatGatewayAddressInput, opts ...request.Option) (*UnassignPrivateNatGatewayAddressOutput, error) { + req, out := c.UnassignPrivateNatGatewayAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUnmonitorInstances = "UnmonitorInstances" // UnmonitorInstancesRequest generates a "aws/request.Request" representing the @@ -57054,6 +57381,126 @@ func (s *AssignPrivateIpAddressesOutput) SetNetworkInterfaceId(v string) *Assign return s } +type AssignPrivateNatGatewayAddressInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The NAT gateway ID. + // + // NatGatewayId is a required field + NatGatewayId *string `type:"string" required:"true"` + + // The number of private IP addresses to assign to the NAT gateway. You can't + // specify this parameter when also specifying private IP addresses. + PrivateIpAddressCount *int64 `min:"1" type:"integer"` + + // The private IPv4 addresses you want to assign to the private NAT gateway. + PrivateIpAddresses []*string `locationName:"PrivateIpAddress" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssignPrivateNatGatewayAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssignPrivateNatGatewayAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssignPrivateNatGatewayAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssignPrivateNatGatewayAddressInput"} + if s.NatGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("NatGatewayId")) + } + if s.PrivateIpAddressCount != nil && *s.PrivateIpAddressCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("PrivateIpAddressCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *AssignPrivateNatGatewayAddressInput) SetDryRun(v bool) *AssignPrivateNatGatewayAddressInput { + s.DryRun = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *AssignPrivateNatGatewayAddressInput) SetNatGatewayId(v string) *AssignPrivateNatGatewayAddressInput { + s.NatGatewayId = &v + return s +} + +// SetPrivateIpAddressCount sets the PrivateIpAddressCount field's value. +func (s *AssignPrivateNatGatewayAddressInput) SetPrivateIpAddressCount(v int64) *AssignPrivateNatGatewayAddressInput { + s.PrivateIpAddressCount = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *AssignPrivateNatGatewayAddressInput) SetPrivateIpAddresses(v []*string) *AssignPrivateNatGatewayAddressInput { + s.PrivateIpAddresses = v + return s +} + +type AssignPrivateNatGatewayAddressOutput struct { + _ struct{} `type:"structure"` + + // NAT gateway IP addresses. + NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"` + + // The NAT gateway ID. + NatGatewayId *string `locationName:"natGatewayId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssignPrivateNatGatewayAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssignPrivateNatGatewayAddressOutput) GoString() string { + return s.String() +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *AssignPrivateNatGatewayAddressOutput) SetNatGatewayAddresses(v []*NatGatewayAddress) *AssignPrivateNatGatewayAddressOutput { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *AssignPrivateNatGatewayAddressOutput) SetNatGatewayId(v string) *AssignPrivateNatGatewayAddressOutput { + s.NatGatewayId = &v + return s +} + // Describes the private IP addresses assigned to a network interface. type AssignedPrivateIpAddress struct { _ struct{} `type:"structure"` @@ -57857,6 +58304,127 @@ func (s *AssociateIpamResourceDiscoveryOutput) SetIpamResourceDiscoveryAssociati return s } +type AssociateNatGatewayAddressInput struct { + _ struct{} `type:"structure"` + + // The allocation IDs of EIPs that you want to associate with your NAT gateway. + // + // AllocationIds is a required field + AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The NAT gateway ID. + // + // NatGatewayId is a required field + NatGatewayId *string `type:"string" required:"true"` + + // The private IPv4 addresses that you want to assign to the NAT gateway. + PrivateIpAddresses []*string `locationName:"PrivateIpAddress" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateNatGatewayAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateNatGatewayAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateNatGatewayAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateNatGatewayAddressInput"} + if s.AllocationIds == nil { + invalidParams.Add(request.NewErrParamRequired("AllocationIds")) + } + if s.NatGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("NatGatewayId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllocationIds sets the AllocationIds field's value. +func (s *AssociateNatGatewayAddressInput) SetAllocationIds(v []*string) *AssociateNatGatewayAddressInput { + s.AllocationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateNatGatewayAddressInput) SetDryRun(v bool) *AssociateNatGatewayAddressInput { + s.DryRun = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *AssociateNatGatewayAddressInput) SetNatGatewayId(v string) *AssociateNatGatewayAddressInput { + s.NatGatewayId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *AssociateNatGatewayAddressInput) SetPrivateIpAddresses(v []*string) *AssociateNatGatewayAddressInput { + s.PrivateIpAddresses = v + return s +} + +type AssociateNatGatewayAddressOutput struct { + _ struct{} `type:"structure"` + + // The IP addresses. + NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"` + + // The NAT gateway ID. + NatGatewayId *string `locationName:"natGatewayId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateNatGatewayAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateNatGatewayAddressOutput) GoString() string { + return s.String() +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *AssociateNatGatewayAddressOutput) SetNatGatewayAddresses(v []*NatGatewayAddress) *AssociateNatGatewayAddressOutput { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *AssociateNatGatewayAddressOutput) SetNatGatewayId(v string) *AssociateNatGatewayAddressOutput { + s.NatGatewayId = &v + return s +} + type AssociateRouteTableInput struct { _ struct{} `type:"structure"` @@ -65740,7 +66308,11 @@ type CopySnapshotInput struct { // in the Amazon Simple Storage Service API Reference. An invalid or improperly // signed PresignedUrl will cause the copy operation to fail asynchronously, // and the snapshot will move to an error state. - PresignedUrl *string `locationName:"presignedUrl" type:"string"` + // + // PresignedUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CopySnapshotInput's + // String and GoString methods. + PresignedUrl *string `locationName:"presignedUrl" type:"string" sensitive:"true"` // The ID of the Region that contains the snapshot to be copied. // @@ -70920,7 +71492,23 @@ type CreateNatGatewayInput struct { // an address, a private IPv4 address will be automatically assigned. PrivateIpAddress *string `type:"string"` - // The subnet in which to create the NAT gateway. + // Secondary EIP allocation IDs. For more information about secondary addresses, + // see Create a NAT gateway (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) + // in the Amazon Virtual Private Cloud User Guide. + SecondaryAllocationIds []*string `locationName:"SecondaryAllocationId" locationNameList:"AllocationId" type:"list"` + + // [Private NAT gateway only] The number of secondary private IPv4 addresses + // you want to assign to the NAT gateway. For more information about secondary + // addresses, see Create a NAT gateway (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) + // in the Amazon Virtual Private Cloud User Guide. + SecondaryPrivateIpAddressCount *int64 `min:"1" type:"integer"` + + // Secondary private IPv4 addresses. For more information about secondary addresses, + // see Create a NAT gateway (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) + // in the Amazon Virtual Private Cloud User Guide. + SecondaryPrivateIpAddresses []*string `locationName:"SecondaryPrivateIpAddress" locationNameList:"item" type:"list"` + + // The ID of the subnet in which to create the NAT gateway. // // SubnetId is a required field SubnetId *string `type:"string" required:"true"` @@ -70950,6 +71538,9 @@ func (s CreateNatGatewayInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNatGatewayInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"} + if s.SecondaryPrivateIpAddressCount != nil && *s.SecondaryPrivateIpAddressCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("SecondaryPrivateIpAddressCount", 1)) + } if s.SubnetId == nil { invalidParams.Add(request.NewErrParamRequired("SubnetId")) } @@ -70990,6 +71581,24 @@ func (s *CreateNatGatewayInput) SetPrivateIpAddress(v string) *CreateNatGatewayI return s } +// SetSecondaryAllocationIds sets the SecondaryAllocationIds field's value. +func (s *CreateNatGatewayInput) SetSecondaryAllocationIds(v []*string) *CreateNatGatewayInput { + s.SecondaryAllocationIds = v + return s +} + +// SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value. +func (s *CreateNatGatewayInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNatGatewayInput { + s.SecondaryPrivateIpAddressCount = &v + return s +} + +// SetSecondaryPrivateIpAddresses sets the SecondaryPrivateIpAddresses field's value. +func (s *CreateNatGatewayInput) SetSecondaryPrivateIpAddresses(v []*string) *CreateNatGatewayInput { + s.SecondaryPrivateIpAddresses = v + return s +} + // SetSubnetId sets the SubnetId field's value. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput { s.SubnetId = &v @@ -109835,6 +110444,132 @@ func (s *DisassociateIpamResourceDiscoveryOutput) SetIpamResourceDiscoveryAssoci return s } +type DisassociateNatGatewayAddressInput struct { + _ struct{} `type:"structure"` + + // The association IDs of EIPs that have been associated with the NAT gateway. + // + // AssociationIds is a required field + AssociationIds []*string `locationName:"AssociationId" locationNameList:"item" type:"list" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The maximum amount of time to wait (in seconds) before forcibly releasing + // the IP addresses if connections are still in progress. Default value is 350 + // seconds. + MaxDrainDurationSeconds *int64 `min:"1" type:"integer"` + + // The NAT gateway ID. + // + // NatGatewayId is a required field + NatGatewayId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateNatGatewayAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateNatGatewayAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateNatGatewayAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateNatGatewayAddressInput"} + if s.AssociationIds == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationIds")) + } + if s.MaxDrainDurationSeconds != nil && *s.MaxDrainDurationSeconds < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxDrainDurationSeconds", 1)) + } + if s.NatGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("NatGatewayId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationIds sets the AssociationIds field's value. +func (s *DisassociateNatGatewayAddressInput) SetAssociationIds(v []*string) *DisassociateNatGatewayAddressInput { + s.AssociationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateNatGatewayAddressInput) SetDryRun(v bool) *DisassociateNatGatewayAddressInput { + s.DryRun = &v + return s +} + +// SetMaxDrainDurationSeconds sets the MaxDrainDurationSeconds field's value. +func (s *DisassociateNatGatewayAddressInput) SetMaxDrainDurationSeconds(v int64) *DisassociateNatGatewayAddressInput { + s.MaxDrainDurationSeconds = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DisassociateNatGatewayAddressInput) SetNatGatewayId(v string) *DisassociateNatGatewayAddressInput { + s.NatGatewayId = &v + return s +} + +type DisassociateNatGatewayAddressOutput struct { + _ struct{} `type:"structure"` + + // Information about the NAT gateway IP addresses. + NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"` + + // The NAT gateway ID. + NatGatewayId *string `locationName:"natGatewayId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateNatGatewayAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateNatGatewayAddressOutput) GoString() string { + return s.String() +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *DisassociateNatGatewayAddressOutput) SetNatGatewayAddresses(v []*NatGatewayAddress) *DisassociateNatGatewayAddressOutput { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *DisassociateNatGatewayAddressOutput) SetNatGatewayId(v string) *DisassociateNatGatewayAddressOutput { + s.NatGatewayId = &v + return s +} + type DisassociateRouteTableInput struct { _ struct{} `type:"structure"` @@ -147273,6 +148008,16 @@ type NatGatewayAddress struct { // associated with the NAT gateway. AllocationId *string `locationName:"allocationId" type:"string"` + // [Public NAT gateway only] The association ID of the Elastic IP address that's + // associated with the NAT gateway. + AssociationId *string `locationName:"associationId" type:"string"` + + // The address failure message. + FailureMessage *string `locationName:"failureMessage" type:"string"` + + // Defines if the IP address is the primary address. + IsPrimary *bool `locationName:"isPrimary" type:"boolean"` + // The ID of the network interface associated with the NAT gateway. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` @@ -147282,6 +148027,9 @@ type NatGatewayAddress struct { // [Public NAT gateway only] The Elastic IP address associated with the NAT // gateway. PublicIp *string `locationName:"publicIp" type:"string"` + + // The address status. + Status *string `locationName:"status" type:"string" enum:"NatGatewayAddressStatus"` } // String returns the string representation. @@ -147308,6 +148056,24 @@ func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress { return s } +// SetAssociationId sets the AssociationId field's value. +func (s *NatGatewayAddress) SetAssociationId(v string) *NatGatewayAddress { + s.AssociationId = &v + return s +} + +// SetFailureMessage sets the FailureMessage field's value. +func (s *NatGatewayAddress) SetFailureMessage(v string) *NatGatewayAddress { + s.FailureMessage = &v + return s +} + +// SetIsPrimary sets the IsPrimary field's value. +func (s *NatGatewayAddress) SetIsPrimary(v bool) *NatGatewayAddress { + s.IsPrimary = &v + return s +} + // SetNetworkInterfaceId sets the NetworkInterfaceId field's value. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress { s.NetworkInterfaceId = &v @@ -147326,6 +148092,12 @@ func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress { return s } +// SetStatus sets the Status field's value. +func (s *NatGatewayAddress) SetStatus(v string) *NatGatewayAddress { + s.Status = &v + return s +} + // Describes a network ACL. type NetworkAcl struct { _ struct{} `type:"structure"` @@ -173200,6 +173972,132 @@ func (s UnassignPrivateIpAddressesOutput) GoString() string { return s.String() } +type UnassignPrivateNatGatewayAddressInput struct { + _ struct{} `type:"structure"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The maximum amount of time to wait (in seconds) before forcibly releasing + // the IP addresses if connections are still in progress. Default value is 350 + // seconds. + MaxDrainDurationSeconds *int64 `min:"1" type:"integer"` + + // The NAT gateway ID. + // + // NatGatewayId is a required field + NatGatewayId *string `type:"string" required:"true"` + + // The private IPv4 addresses you want to unassign. + // + // PrivateIpAddresses is a required field + PrivateIpAddresses []*string `locationName:"PrivateIpAddress" locationNameList:"item" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnassignPrivateNatGatewayAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnassignPrivateNatGatewayAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UnassignPrivateNatGatewayAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateNatGatewayAddressInput"} + if s.MaxDrainDurationSeconds != nil && *s.MaxDrainDurationSeconds < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxDrainDurationSeconds", 1)) + } + if s.NatGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("NatGatewayId")) + } + if s.PrivateIpAddresses == nil { + invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *UnassignPrivateNatGatewayAddressInput) SetDryRun(v bool) *UnassignPrivateNatGatewayAddressInput { + s.DryRun = &v + return s +} + +// SetMaxDrainDurationSeconds sets the MaxDrainDurationSeconds field's value. +func (s *UnassignPrivateNatGatewayAddressInput) SetMaxDrainDurationSeconds(v int64) *UnassignPrivateNatGatewayAddressInput { + s.MaxDrainDurationSeconds = &v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *UnassignPrivateNatGatewayAddressInput) SetNatGatewayId(v string) *UnassignPrivateNatGatewayAddressInput { + s.NatGatewayId = &v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *UnassignPrivateNatGatewayAddressInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateNatGatewayAddressInput { + s.PrivateIpAddresses = v + return s +} + +type UnassignPrivateNatGatewayAddressOutput struct { + _ struct{} `type:"structure"` + + // Information about the NAT gateway IP addresses. + NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"` + + // The NAT gateway ID. + NatGatewayId *string `locationName:"natGatewayId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnassignPrivateNatGatewayAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnassignPrivateNatGatewayAddressOutput) GoString() string { + return s.String() +} + +// SetNatGatewayAddresses sets the NatGatewayAddresses field's value. +func (s *UnassignPrivateNatGatewayAddressOutput) SetNatGatewayAddresses(v []*NatGatewayAddress) *UnassignPrivateNatGatewayAddressOutput { + s.NatGatewayAddresses = v + return s +} + +// SetNatGatewayId sets the NatGatewayId field's value. +func (s *UnassignPrivateNatGatewayAddressOutput) SetNatGatewayId(v string) *UnassignPrivateNatGatewayAddressOutput { + s.NatGatewayId = &v + return s +} + type UnmonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -184628,6 +185526,38 @@ func MulticastSupportValue_Values() []string { } } +const ( + // NatGatewayAddressStatusAssigning is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusAssigning = "assigning" + + // NatGatewayAddressStatusUnassigning is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusUnassigning = "unassigning" + + // NatGatewayAddressStatusAssociating is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusAssociating = "associating" + + // NatGatewayAddressStatusDisassociating is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusDisassociating = "disassociating" + + // NatGatewayAddressStatusSucceeded is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusSucceeded = "succeeded" + + // NatGatewayAddressStatusFailed is a NatGatewayAddressStatus enum value + NatGatewayAddressStatusFailed = "failed" +) + +// NatGatewayAddressStatus_Values returns all elements of the NatGatewayAddressStatus enum +func NatGatewayAddressStatus_Values() []string { + return []string{ + NatGatewayAddressStatusAssigning, + NatGatewayAddressStatusUnassigning, + NatGatewayAddressStatusAssociating, + NatGatewayAddressStatusDisassociating, + NatGatewayAddressStatusSucceeded, + NatGatewayAddressStatusFailed, + } +} + const ( // NatGatewayStatePending is a NatGatewayState enum value NatGatewayStatePending = "pending" diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go index 9619c36f0b1..0bac55e1eaa 100644 --- a/service/ec2/ec2iface/interface.go +++ b/service/ec2/ec2iface/interface.go @@ -116,6 +116,10 @@ type EC2API interface { AssignPrivateIpAddressesWithContext(aws.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) (*ec2.AssignPrivateIpAddressesOutput, error) AssignPrivateIpAddressesRequest(*ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput) + AssignPrivateNatGatewayAddress(*ec2.AssignPrivateNatGatewayAddressInput) (*ec2.AssignPrivateNatGatewayAddressOutput, error) + AssignPrivateNatGatewayAddressWithContext(aws.Context, *ec2.AssignPrivateNatGatewayAddressInput, ...request.Option) (*ec2.AssignPrivateNatGatewayAddressOutput, error) + AssignPrivateNatGatewayAddressRequest(*ec2.AssignPrivateNatGatewayAddressInput) (*request.Request, *ec2.AssignPrivateNatGatewayAddressOutput) + AssociateAddress(*ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error) AssociateAddressWithContext(aws.Context, *ec2.AssociateAddressInput, ...request.Option) (*ec2.AssociateAddressOutput, error) AssociateAddressRequest(*ec2.AssociateAddressInput) (*request.Request, *ec2.AssociateAddressOutput) @@ -144,6 +148,10 @@ type EC2API interface { AssociateIpamResourceDiscoveryWithContext(aws.Context, *ec2.AssociateIpamResourceDiscoveryInput, ...request.Option) (*ec2.AssociateIpamResourceDiscoveryOutput, error) AssociateIpamResourceDiscoveryRequest(*ec2.AssociateIpamResourceDiscoveryInput) (*request.Request, *ec2.AssociateIpamResourceDiscoveryOutput) + AssociateNatGatewayAddress(*ec2.AssociateNatGatewayAddressInput) (*ec2.AssociateNatGatewayAddressOutput, error) + AssociateNatGatewayAddressWithContext(aws.Context, *ec2.AssociateNatGatewayAddressInput, ...request.Option) (*ec2.AssociateNatGatewayAddressOutput, error) + AssociateNatGatewayAddressRequest(*ec2.AssociateNatGatewayAddressInput) (*request.Request, *ec2.AssociateNatGatewayAddressOutput) + AssociateRouteTable(*ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error) AssociateRouteTableWithContext(aws.Context, *ec2.AssociateRouteTableInput, ...request.Option) (*ec2.AssociateRouteTableOutput, error) AssociateRouteTableRequest(*ec2.AssociateRouteTableInput) (*request.Request, *ec2.AssociateRouteTableOutput) @@ -1914,6 +1922,10 @@ type EC2API interface { DisassociateIpamResourceDiscoveryWithContext(aws.Context, *ec2.DisassociateIpamResourceDiscoveryInput, ...request.Option) (*ec2.DisassociateIpamResourceDiscoveryOutput, error) DisassociateIpamResourceDiscoveryRequest(*ec2.DisassociateIpamResourceDiscoveryInput) (*request.Request, *ec2.DisassociateIpamResourceDiscoveryOutput) + DisassociateNatGatewayAddress(*ec2.DisassociateNatGatewayAddressInput) (*ec2.DisassociateNatGatewayAddressOutput, error) + DisassociateNatGatewayAddressWithContext(aws.Context, *ec2.DisassociateNatGatewayAddressInput, ...request.Option) (*ec2.DisassociateNatGatewayAddressOutput, error) + DisassociateNatGatewayAddressRequest(*ec2.DisassociateNatGatewayAddressInput) (*request.Request, *ec2.DisassociateNatGatewayAddressOutput) + DisassociateRouteTable(*ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error) DisassociateRouteTableWithContext(aws.Context, *ec2.DisassociateRouteTableInput, ...request.Option) (*ec2.DisassociateRouteTableOutput, error) DisassociateRouteTableRequest(*ec2.DisassociateRouteTableInput) (*request.Request, *ec2.DisassociateRouteTableOutput) @@ -2786,6 +2798,10 @@ type EC2API interface { UnassignPrivateIpAddressesWithContext(aws.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) (*ec2.UnassignPrivateIpAddressesOutput, error) UnassignPrivateIpAddressesRequest(*ec2.UnassignPrivateIpAddressesInput) (*request.Request, *ec2.UnassignPrivateIpAddressesOutput) + UnassignPrivateNatGatewayAddress(*ec2.UnassignPrivateNatGatewayAddressInput) (*ec2.UnassignPrivateNatGatewayAddressOutput, error) + UnassignPrivateNatGatewayAddressWithContext(aws.Context, *ec2.UnassignPrivateNatGatewayAddressInput, ...request.Option) (*ec2.UnassignPrivateNatGatewayAddressOutput, error) + UnassignPrivateNatGatewayAddressRequest(*ec2.UnassignPrivateNatGatewayAddressInput) (*request.Request, *ec2.UnassignPrivateNatGatewayAddressOutput) + UnmonitorInstances(*ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error) UnmonitorInstancesWithContext(aws.Context, *ec2.UnmonitorInstancesInput, ...request.Option) (*ec2.UnmonitorInstancesOutput, error) UnmonitorInstancesRequest(*ec2.UnmonitorInstancesInput) (*request.Request, *ec2.UnmonitorInstancesOutput) diff --git a/service/groundstation/api.go b/service/groundstation/api.go index 5f917dfb781..03e320b2235 100644 --- a/service/groundstation/api.go +++ b/service/groundstation/api.go @@ -963,6 +963,91 @@ func (c *GroundStation) DescribeEphemerisWithContext(ctx aws.Context, input *Des return out, req.Send() } +const opGetAgentConfiguration = "GetAgentConfiguration" + +// GetAgentConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetAgentConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAgentConfiguration for more information on using the GetAgentConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetAgentConfigurationRequest method. +// req, resp := client.GetAgentConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetAgentConfiguration +func (c *GroundStation) GetAgentConfigurationRequest(input *GetAgentConfigurationInput) (req *request.Request, output *GetAgentConfigurationOutput) { + op := &request.Operation{ + Name: opGetAgentConfiguration, + HTTPMethod: "GET", + HTTPPath: "/agent/{agentId}/configuration", + } + + if input == nil { + input = &GetAgentConfigurationInput{} + } + + output = &GetAgentConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAgentConfiguration API operation for AWS Ground Station. +// +// Gets the latest configuration information for a registered agent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Ground Station's +// API operation GetAgentConfiguration for usage and error information. +// +// Returned Error Types: +// +// - InvalidParameterException +// One or more parameters are not valid. +// +// - DependencyException +// Dependency encountered an error. +// +// - ResourceNotFoundException +// Resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetAgentConfiguration +func (c *GroundStation) GetAgentConfiguration(input *GetAgentConfigurationInput) (*GetAgentConfigurationOutput, error) { + req, out := c.GetAgentConfigurationRequest(input) + return out, req.Send() +} + +// GetAgentConfigurationWithContext is the same as GetAgentConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetAgentConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GroundStation) GetAgentConfigurationWithContext(ctx aws.Context, input *GetAgentConfigurationInput, opts ...request.Option) (*GetAgentConfigurationOutput, error) { + req, out := c.GetAgentConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetConfig = "GetConfig" // GetConfigRequest generates a "aws/request.Request" representing the @@ -2472,6 +2557,91 @@ func (c *GroundStation) ListTagsForResourceWithContext(ctx aws.Context, input *L return out, req.Send() } +const opRegisterAgent = "RegisterAgent" + +// RegisterAgentRequest generates a "aws/request.Request" representing the +// client's request for the RegisterAgent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterAgent for more information on using the RegisterAgent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the RegisterAgentRequest method. +// req, resp := client.RegisterAgentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/RegisterAgent +func (c *GroundStation) RegisterAgentRequest(input *RegisterAgentInput) (req *request.Request, output *RegisterAgentOutput) { + op := &request.Operation{ + Name: opRegisterAgent, + HTTPMethod: "POST", + HTTPPath: "/agent", + } + + if input == nil { + input = &RegisterAgentInput{} + } + + output = &RegisterAgentOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterAgent API operation for AWS Ground Station. +// +// Registers a new agent with AWS Groundstation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Ground Station's +// API operation RegisterAgent for usage and error information. +// +// Returned Error Types: +// +// - InvalidParameterException +// One or more parameters are not valid. +// +// - DependencyException +// Dependency encountered an error. +// +// - ResourceNotFoundException +// Resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/RegisterAgent +func (c *GroundStation) RegisterAgent(input *RegisterAgentInput) (*RegisterAgentOutput, error) { + req, out := c.RegisterAgentRequest(input) + return out, req.Send() +} + +// RegisterAgentWithContext is the same as RegisterAgent with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterAgent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GroundStation) RegisterAgentWithContext(ctx aws.Context, input *RegisterAgentInput, opts ...request.Option) (*RegisterAgentOutput, error) { + req, out := c.RegisterAgentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opReserveContact = "ReserveContact" // ReserveContactRequest generates a "aws/request.Request" representing the @@ -2729,6 +2899,91 @@ func (c *GroundStation) UntagResourceWithContext(ctx aws.Context, input *UntagRe return out, req.Send() } +const opUpdateAgentStatus = "UpdateAgentStatus" + +// UpdateAgentStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAgentStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAgentStatus for more information on using the UpdateAgentStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateAgentStatusRequest method. +// req, resp := client.UpdateAgentStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/UpdateAgentStatus +func (c *GroundStation) UpdateAgentStatusRequest(input *UpdateAgentStatusInput) (req *request.Request, output *UpdateAgentStatusOutput) { + op := &request.Operation{ + Name: opUpdateAgentStatus, + HTTPMethod: "PUT", + HTTPPath: "/agent/{agentId}", + } + + if input == nil { + input = &UpdateAgentStatusInput{} + } + + output = &UpdateAgentStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAgentStatus API operation for AWS Ground Station. +// +// Update the status of the agent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Ground Station's +// API operation UpdateAgentStatus for usage and error information. +// +// Returned Error Types: +// +// - InvalidParameterException +// One or more parameters are not valid. +// +// - DependencyException +// Dependency encountered an error. +// +// - ResourceNotFoundException +// Resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/UpdateAgentStatus +func (c *GroundStation) UpdateAgentStatus(input *UpdateAgentStatusInput) (*UpdateAgentStatusOutput, error) { + req, out := c.UpdateAgentStatusRequest(input) + return out, req.Send() +} + +// UpdateAgentStatusWithContext is the same as UpdateAgentStatus with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAgentStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GroundStation) UpdateAgentStatusWithContext(ctx aws.Context, input *UpdateAgentStatusInput, opts ...request.Option) (*UpdateAgentStatusOutput, error) { + req, out := c.UpdateAgentStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateConfig = "UpdateConfig" // UpdateConfigRequest generates a "aws/request.Request" representing the @@ -2990,12 +3245,34 @@ func (c *GroundStation) UpdateMissionProfileWithContext(ctx aws.Context, input * return out, req.Send() } -// Details about an antenna demod decode Config used in a contact. -type AntennaDemodDecodeDetails struct { +// Detailed information about the agent. +type AgentDetails struct { _ struct{} `type:"structure"` - // Name of an antenna demod decode output node used in a contact. - OutputNode *string `locationName:"outputNode" type:"string"` + // Current agent version. + // + // AgentVersion is a required field + AgentVersion *string `locationName:"agentVersion" min:"1" type:"string" required:"true"` + + // List of versions being used by agent components. + // + // ComponentVersions is a required field + ComponentVersions []*ComponentVersion `locationName:"componentVersions" min:"1" type:"list" required:"true"` + + // ID of EC2 instance agent is running on. + // + // InstanceId is a required field + InstanceId *string `locationName:"instanceId" min:"10" type:"string" required:"true"` + + // Type of EC2 instance agent is running on. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" min:"1" type:"string" required:"true"` + + // Number of Cpu cores reserved for agent. + // + // ReservedCpuCores is a required field + ReservedCpuCores []*int64 `locationName:"reservedCpuCores" min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -3003,7 +3280,7 @@ type AntennaDemodDecodeDetails struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AntennaDemodDecodeDetails) String() string { +func (s AgentDetails) String() string { return awsutil.Prettify(s) } @@ -3012,25 +3289,101 @@ func (s AntennaDemodDecodeDetails) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AntennaDemodDecodeDetails) GoString() string { +func (s AgentDetails) GoString() string { return s.String() } -// SetOutputNode sets the OutputNode field's value. -func (s *AntennaDemodDecodeDetails) SetOutputNode(v string) *AntennaDemodDecodeDetails { - s.OutputNode = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *AgentDetails) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AgentDetails"} + if s.AgentVersion == nil { + invalidParams.Add(request.NewErrParamRequired("AgentVersion")) + } + if s.AgentVersion != nil && len(*s.AgentVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AgentVersion", 1)) + } + if s.ComponentVersions == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentVersions")) + } + if s.ComponentVersions != nil && len(s.ComponentVersions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ComponentVersions", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 10)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } + if s.ReservedCpuCores == nil { + invalidParams.Add(request.NewErrParamRequired("ReservedCpuCores")) + } + if s.ReservedCpuCores != nil && len(s.ReservedCpuCores) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReservedCpuCores", 1)) + } + if s.ComponentVersions != nil { + for i, v := range s.ComponentVersions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComponentVersions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentVersion sets the AgentVersion field's value. +func (s *AgentDetails) SetAgentVersion(v string) *AgentDetails { + s.AgentVersion = &v return s } -// Information about how AWS Ground Station should configure an antenna for -// downlink during a contact. -type AntennaDownlinkConfig struct { +// SetComponentVersions sets the ComponentVersions field's value. +func (s *AgentDetails) SetComponentVersions(v []*ComponentVersion) *AgentDetails { + s.ComponentVersions = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AgentDetails) SetInstanceId(v string) *AgentDetails { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *AgentDetails) SetInstanceType(v string) *AgentDetails { + s.InstanceType = &v + return s +} + +// SetReservedCpuCores sets the ReservedCpuCores field's value. +func (s *AgentDetails) SetReservedCpuCores(v []*int64) *AgentDetails { + s.ReservedCpuCores = v + return s +} + +// Aggregate status of Agent components. +type AggregateStatus struct { _ struct{} `type:"structure"` - // Object that describes a spectral Config. + // Sparse map of failure signatures. + SignatureMap map[string]*bool `locationName:"signatureMap" type:"map"` + + // Aggregate status. // - // SpectrumConfig is a required field - SpectrumConfig *SpectrumConfig `locationName:"spectrumConfig" type:"structure" required:"true"` + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"AgentStatus"` } // String returns the string representation. @@ -3038,7 +3391,7 @@ type AntennaDownlinkConfig struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AntennaDownlinkConfig) String() string { +func (s AggregateStatus) String() string { return awsutil.Prettify(s) } @@ -3047,14 +3400,100 @@ func (s AntennaDownlinkConfig) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AntennaDownlinkConfig) GoString() string { +func (s AggregateStatus) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AntennaDownlinkConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AntennaDownlinkConfig"} - if s.SpectrumConfig == nil { +func (s *AggregateStatus) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AggregateStatus"} + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSignatureMap sets the SignatureMap field's value. +func (s *AggregateStatus) SetSignatureMap(v map[string]*bool) *AggregateStatus { + s.SignatureMap = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AggregateStatus) SetStatus(v string) *AggregateStatus { + s.Status = &v + return s +} + +// Details about an antenna demod decode Config used in a contact. +type AntennaDemodDecodeDetails struct { + _ struct{} `type:"structure"` + + // Name of an antenna demod decode output node used in a contact. + OutputNode *string `locationName:"outputNode" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AntennaDemodDecodeDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AntennaDemodDecodeDetails) GoString() string { + return s.String() +} + +// SetOutputNode sets the OutputNode field's value. +func (s *AntennaDemodDecodeDetails) SetOutputNode(v string) *AntennaDemodDecodeDetails { + s.OutputNode = &v + return s +} + +// Information about how AWS Ground Station should configure an antenna for +// downlink during a contact. +type AntennaDownlinkConfig struct { + _ struct{} `type:"structure"` + + // Object that describes a spectral Config. + // + // SpectrumConfig is a required field + SpectrumConfig *SpectrumConfig `locationName:"spectrumConfig" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AntennaDownlinkConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AntennaDownlinkConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AntennaDownlinkConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AntennaDownlinkConfig"} + if s.SpectrumConfig == nil { invalidParams.Add(request.NewErrParamRequired("SpectrumConfig")) } if s.SpectrumConfig != nil { @@ -3246,6 +3685,113 @@ func (s *AntennaUplinkConfig) SetTransmitDisabled(v bool) *AntennaUplinkConfig { return s } +// Information about AwsGroundStationAgentEndpoint. +type AwsGroundStationAgentEndpoint struct { + _ struct{} `type:"structure"` + + // The status of AgentEndpoint. + AgentStatus *string `locationName:"agentStatus" type:"string" enum:"AgentStatus"` + + // The results of the audit. + AuditResults *string `locationName:"auditResults" type:"string" enum:"AuditResults"` + + // The egress address of AgentEndpoint. + // + // EgressAddress is a required field + EgressAddress *ConnectionDetails `locationName:"egressAddress" type:"structure" required:"true"` + + // The ingress address of AgentEndpoint. + // + // IngressAddress is a required field + IngressAddress *RangedConnectionDetails `locationName:"ingressAddress" type:"structure" required:"true"` + + // Name string associated with AgentEndpoint. Used as a human-readable identifier + // for AgentEndpoint. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AwsGroundStationAgentEndpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AwsGroundStationAgentEndpoint) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AwsGroundStationAgentEndpoint) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AwsGroundStationAgentEndpoint"} + if s.EgressAddress == nil { + invalidParams.Add(request.NewErrParamRequired("EgressAddress")) + } + if s.IngressAddress == nil { + invalidParams.Add(request.NewErrParamRequired("IngressAddress")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.EgressAddress != nil { + if err := s.EgressAddress.Validate(); err != nil { + invalidParams.AddNested("EgressAddress", err.(request.ErrInvalidParams)) + } + } + if s.IngressAddress != nil { + if err := s.IngressAddress.Validate(); err != nil { + invalidParams.AddNested("IngressAddress", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentStatus sets the AgentStatus field's value. +func (s *AwsGroundStationAgentEndpoint) SetAgentStatus(v string) *AwsGroundStationAgentEndpoint { + s.AgentStatus = &v + return s +} + +// SetAuditResults sets the AuditResults field's value. +func (s *AwsGroundStationAgentEndpoint) SetAuditResults(v string) *AwsGroundStationAgentEndpoint { + s.AuditResults = &v + return s +} + +// SetEgressAddress sets the EgressAddress field's value. +func (s *AwsGroundStationAgentEndpoint) SetEgressAddress(v *ConnectionDetails) *AwsGroundStationAgentEndpoint { + s.EgressAddress = v + return s +} + +// SetIngressAddress sets the IngressAddress field's value. +func (s *AwsGroundStationAgentEndpoint) SetIngressAddress(v *RangedConnectionDetails) *AwsGroundStationAgentEndpoint { + s.IngressAddress = v + return s +} + +// SetName sets the Name field's value. +func (s *AwsGroundStationAgentEndpoint) SetName(v string) *AwsGroundStationAgentEndpoint { + s.Name = &v + return s +} + type CancelContactInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -3326,6 +3872,189 @@ func (s *CancelContactOutput) SetContactId(v string) *CancelContactOutput { return s } +// Data on the status of agent components. +type ComponentStatusData struct { + _ struct{} `type:"structure"` + + // Bytes received by the component. + BytesReceived *int64 `locationName:"bytesReceived" type:"long"` + + // Bytes sent by the component. + BytesSent *int64 `locationName:"bytesSent" type:"long"` + + // Capability ARN of the component. + // + // CapabilityArn is a required field + CapabilityArn *string `locationName:"capabilityArn" type:"string" required:"true"` + + // The Component type. + // + // ComponentType is a required field + ComponentType *string `locationName:"componentType" type:"string" required:"true" enum:"ComponentType"` + + // Dataflow UUID associated with the component. + // + // DataflowId is a required field + DataflowId *string `locationName:"dataflowId" min:"1" type:"string" required:"true"` + + // Packets dropped by component. + PacketsDropped *int64 `locationName:"packetsDropped" type:"long"` + + // Component status. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"AgentStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentStatusData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentStatusData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComponentStatusData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComponentStatusData"} + if s.CapabilityArn == nil { + invalidParams.Add(request.NewErrParamRequired("CapabilityArn")) + } + if s.ComponentType == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentType")) + } + if s.DataflowId == nil { + invalidParams.Add(request.NewErrParamRequired("DataflowId")) + } + if s.DataflowId != nil && len(*s.DataflowId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataflowId", 1)) + } + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBytesReceived sets the BytesReceived field's value. +func (s *ComponentStatusData) SetBytesReceived(v int64) *ComponentStatusData { + s.BytesReceived = &v + return s +} + +// SetBytesSent sets the BytesSent field's value. +func (s *ComponentStatusData) SetBytesSent(v int64) *ComponentStatusData { + s.BytesSent = &v + return s +} + +// SetCapabilityArn sets the CapabilityArn field's value. +func (s *ComponentStatusData) SetCapabilityArn(v string) *ComponentStatusData { + s.CapabilityArn = &v + return s +} + +// SetComponentType sets the ComponentType field's value. +func (s *ComponentStatusData) SetComponentType(v string) *ComponentStatusData { + s.ComponentType = &v + return s +} + +// SetDataflowId sets the DataflowId field's value. +func (s *ComponentStatusData) SetDataflowId(v string) *ComponentStatusData { + s.DataflowId = &v + return s +} + +// SetPacketsDropped sets the PacketsDropped field's value. +func (s *ComponentStatusData) SetPacketsDropped(v int64) *ComponentStatusData { + s.PacketsDropped = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ComponentStatusData) SetStatus(v string) *ComponentStatusData { + s.Status = &v + return s +} + +// Version information for agent components. +type ComponentVersion struct { + _ struct{} `type:"structure"` + + // Component type. + // + // ComponentType is a required field + ComponentType *string `locationName:"componentType" type:"string" required:"true" enum:"ComponentType"` + + // List of versions. + // + // Versions is a required field + Versions []*string `locationName:"versions" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentVersion) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComponentVersion) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComponentVersion"} + if s.ComponentType == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentType")) + } + if s.Versions == nil { + invalidParams.Add(request.NewErrParamRequired("Versions")) + } + if s.Versions != nil && len(s.Versions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Versions", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetComponentType sets the ComponentType field's value. +func (s *ComponentVersion) SetComponentType(v string) *ComponentVersion { + s.ComponentType = &v + return s +} + +// SetVersions sets the Versions field's value. +func (s *ComponentVersion) SetVersions(v []*string) *ComponentVersion { + s.Versions = v + return s +} + // Details for certain Config object types in a contact. type ConfigDetails struct { _ struct{} `type:"structure"` @@ -3575,6 +4304,67 @@ func (s *ConfigTypeData) SetUplinkEchoConfig(v *UplinkEchoConfig) *ConfigTypeDat return s } +// Egress address of AgentEndpoint with an optional mtu. +type ConnectionDetails struct { + _ struct{} `type:"structure"` + + // Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // A socket address. + // + // SocketAddress is a required field + SocketAddress *SocketAddress `locationName:"socketAddress" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionDetails) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConnectionDetails) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConnectionDetails"} + if s.SocketAddress == nil { + invalidParams.Add(request.NewErrParamRequired("SocketAddress")) + } + if s.SocketAddress != nil { + if err := s.SocketAddress.Validate(); err != nil { + invalidParams.AddNested("SocketAddress", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMtu sets the Mtu field's value. +func (s *ConnectionDetails) SetMtu(v int64) *ConnectionDetails { + s.Mtu = &v + return s +} + +// SetSocketAddress sets the SocketAddress field's value. +func (s *ConnectionDetails) SetSocketAddress(v *SocketAddress) *ConnectionDetails { + s.SocketAddress = v + return s +} + // Data describing a contact. type ContactData struct { _ struct{} `type:"structure"` @@ -4165,6 +4955,12 @@ type CreateMissionProfileInput struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // KMS key to use for encrypting streams. + StreamsKmsKey *KmsKey `locationName:"streamsKmsKey" type:"structure"` + + // Role to use for encrypting streams with KMS key. + StreamsKmsRole *string `locationName:"streamsKmsRole" type:"string"` + // Tags assigned to a mission profile. Tags map[string]*string `locationName:"tags" type:"map"` @@ -4213,6 +5009,11 @@ func (s *CreateMissionProfileInput) Validate() error { if s.TrackingConfigArn == nil { invalidParams.Add(request.NewErrParamRequired("TrackingConfigArn")) } + if s.StreamsKmsKey != nil { + if err := s.StreamsKmsKey.Validate(); err != nil { + invalidParams.AddNested("StreamsKmsKey", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4250,6 +5051,18 @@ func (s *CreateMissionProfileInput) SetName(v string) *CreateMissionProfileInput return s } +// SetStreamsKmsKey sets the StreamsKmsKey field's value. +func (s *CreateMissionProfileInput) SetStreamsKmsKey(v *KmsKey) *CreateMissionProfileInput { + s.StreamsKmsKey = v + return s +} + +// SetStreamsKmsRole sets the StreamsKmsRole field's value. +func (s *CreateMissionProfileInput) SetStreamsKmsRole(v string) *CreateMissionProfileInput { + s.StreamsKmsRole = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateMissionProfileInput) SetTags(v map[string]*string) *CreateMissionProfileInput { s.Tags = v @@ -5519,6 +6332,90 @@ func (s *Destination) SetDataflowDestinationRegion(v string) *Destination { return s } +// Data for agent discovery. +type DiscoveryData struct { + _ struct{} `type:"structure"` + + // List of capabilities to associate with agent. + // + // CapabilityArns is a required field + CapabilityArns []*string `locationName:"capabilityArns" min:"1" type:"list" required:"true"` + + // List of private IP addresses to associate with agent. + // + // PrivateIpAddresses is a required field + PrivateIpAddresses []*string `locationName:"privateIpAddresses" min:"1" type:"list" required:"true"` + + // List of public IP addresses to associate with agent. + // + // PublicIpAddresses is a required field + PublicIpAddresses []*string `locationName:"publicIpAddresses" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DiscoveryData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DiscoveryData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DiscoveryData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DiscoveryData"} + if s.CapabilityArns == nil { + invalidParams.Add(request.NewErrParamRequired("CapabilityArns")) + } + if s.CapabilityArns != nil && len(s.CapabilityArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CapabilityArns", 1)) + } + if s.PrivateIpAddresses == nil { + invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses")) + } + if s.PrivateIpAddresses != nil && len(s.PrivateIpAddresses) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrivateIpAddresses", 1)) + } + if s.PublicIpAddresses == nil { + invalidParams.Add(request.NewErrParamRequired("PublicIpAddresses")) + } + if s.PublicIpAddresses != nil && len(s.PublicIpAddresses) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PublicIpAddresses", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilityArns sets the CapabilityArns field's value. +func (s *DiscoveryData) SetCapabilityArns(v []*string) *DiscoveryData { + s.CapabilityArns = v + return s +} + +// SetPrivateIpAddresses sets the PrivateIpAddresses field's value. +func (s *DiscoveryData) SetPrivateIpAddresses(v []*string) *DiscoveryData { + s.PrivateIpAddresses = v + return s +} + +// SetPublicIpAddresses sets the PublicIpAddresses field's value. +func (s *DiscoveryData) SetPublicIpAddresses(v []*string) *DiscoveryData { + s.PublicIpAddresses = v + return s +} + // Object that represents EIRP. type Eirp struct { _ struct{} `type:"structure"` @@ -5629,6 +6526,9 @@ func (s *Elevation) SetValue(v float64) *Elevation { type EndpointDetails struct { _ struct{} `type:"structure"` + // An agent endpoint. + AwsGroundStationAgentEndpoint *AwsGroundStationAgentEndpoint `locationName:"awsGroundStationAgentEndpoint" type:"structure"` + // A dataflow endpoint. Endpoint *DataflowEndpoint `locationName:"endpoint" type:"structure"` @@ -5658,6 +6558,11 @@ func (s EndpointDetails) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *EndpointDetails) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EndpointDetails"} + if s.AwsGroundStationAgentEndpoint != nil { + if err := s.AwsGroundStationAgentEndpoint.Validate(); err != nil { + invalidParams.AddNested("AwsGroundStationAgentEndpoint", err.(request.ErrInvalidParams)) + } + } if s.Endpoint != nil { if err := s.Endpoint.Validate(); err != nil { invalidParams.AddNested("Endpoint", err.(request.ErrInvalidParams)) @@ -5675,6 +6580,12 @@ func (s *EndpointDetails) Validate() error { return nil } +// SetAwsGroundStationAgentEndpoint sets the AwsGroundStationAgentEndpoint field's value. +func (s *EndpointDetails) SetAwsGroundStationAgentEndpoint(v *AwsGroundStationAgentEndpoint) *EndpointDetails { + s.AwsGroundStationAgentEndpoint = v + return s +} + // SetEndpoint sets the Endpoint field's value. func (s *EndpointDetails) SetEndpoint(v *DataflowEndpoint) *EndpointDetails { s.Endpoint = v @@ -6122,6 +7033,95 @@ func (s *FrequencyBandwidth) SetValue(v float64) *FrequencyBandwidth { return s } +type GetAgentConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // UUID of agent to get configuration information for. + // + // AgentId is a required field + AgentId *string `location:"uri" locationName:"agentId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAgentConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAgentConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAgentConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAgentConfigurationInput"} + if s.AgentId == nil { + invalidParams.Add(request.NewErrParamRequired("AgentId")) + } + if s.AgentId != nil && len(*s.AgentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AgentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentId sets the AgentId field's value. +func (s *GetAgentConfigurationInput) SetAgentId(v string) *GetAgentConfigurationInput { + s.AgentId = &v + return s +} + +type GetAgentConfigurationOutput struct { + _ struct{} `type:"structure"` + + // UUID of agent. + AgentId *string `locationName:"agentId" min:"1" type:"string"` + + // Tasking document for agent. + TaskingDocument *string `locationName:"taskingDocument" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAgentConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAgentConfigurationOutput) GoString() string { + return s.String() +} + +// SetAgentId sets the AgentId field's value. +func (s *GetAgentConfigurationOutput) SetAgentId(v string) *GetAgentConfigurationOutput { + s.AgentId = &v + return s +} + +// SetTaskingDocument sets the TaskingDocument field's value. +func (s *GetAgentConfigurationOutput) SetTaskingDocument(v string) *GetAgentConfigurationOutput { + s.TaskingDocument = &v + return s +} + type GetConfigInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -6617,6 +7617,12 @@ type GetMissionProfileOutput struct { // Region of a mission profile. Region *string `locationName:"region" min:"1" type:"string"` + // KMS key to use for encrypting streams. + StreamsKmsKey *KmsKey `locationName:"streamsKmsKey" type:"structure"` + + // Role to use for encrypting streams with KMS key. + StreamsKmsRole *string `locationName:"streamsKmsRole" type:"string"` + // Tags assigned to a mission profile. Tags map[string]*string `locationName:"tags" type:"map"` @@ -6690,6 +7696,18 @@ func (s *GetMissionProfileOutput) SetRegion(v string) *GetMissionProfileOutput { return s } +// SetStreamsKmsKey sets the StreamsKmsKey field's value. +func (s *GetMissionProfileOutput) SetStreamsKmsKey(v *KmsKey) *GetMissionProfileOutput { + s.StreamsKmsKey = v + return s +} + +// SetStreamsKmsRole sets the StreamsKmsRole field's value. +func (s *GetMissionProfileOutput) SetStreamsKmsRole(v string) *GetMissionProfileOutput { + s.StreamsKmsRole = &v + return s +} + // SetTags sets the Tags field's value. func (s *GetMissionProfileOutput) SetTags(v map[string]*string) *GetMissionProfileOutput { s.Tags = v @@ -6800,21 +7818,82 @@ func (s *GetSatelliteOutput) SetGroundStations(v []*string) *GetSatelliteOutput return s } -// SetNoradSatelliteID sets the NoradSatelliteID field's value. -func (s *GetSatelliteOutput) SetNoradSatelliteID(v int64) *GetSatelliteOutput { - s.NoradSatelliteID = &v - return s +// SetNoradSatelliteID sets the NoradSatelliteID field's value. +func (s *GetSatelliteOutput) SetNoradSatelliteID(v int64) *GetSatelliteOutput { + s.NoradSatelliteID = &v + return s +} + +// SetSatelliteArn sets the SatelliteArn field's value. +func (s *GetSatelliteOutput) SetSatelliteArn(v string) *GetSatelliteOutput { + s.SatelliteArn = &v + return s +} + +// SetSatelliteId sets the SatelliteId field's value. +func (s *GetSatelliteOutput) SetSatelliteId(v string) *GetSatelliteOutput { + s.SatelliteId = &v + return s +} + +// An integer range that has a minimum and maximum value. +type IntegerRange struct { + _ struct{} `type:"structure"` + + // A maximum value. + // + // Maximum is a required field + Maximum *int64 `locationName:"maximum" type:"integer" required:"true"` + + // A minimum value. + // + // Minimum is a required field + Minimum *int64 `locationName:"minimum" type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IntegerRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IntegerRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IntegerRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IntegerRange"} + if s.Maximum == nil { + invalidParams.Add(request.NewErrParamRequired("Maximum")) + } + if s.Minimum == nil { + invalidParams.Add(request.NewErrParamRequired("Minimum")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSatelliteArn sets the SatelliteArn field's value. -func (s *GetSatelliteOutput) SetSatelliteArn(v string) *GetSatelliteOutput { - s.SatelliteArn = &v +// SetMaximum sets the Maximum field's value. +func (s *IntegerRange) SetMaximum(v int64) *IntegerRange { + s.Maximum = &v return s } -// SetSatelliteId sets the SatelliteId field's value. -func (s *GetSatelliteOutput) SetSatelliteId(v string) *GetSatelliteOutput { - s.SatelliteId = &v +// SetMinimum sets the Minimum field's value. +func (s *IntegerRange) SetMinimum(v int64) *IntegerRange { + s.Minimum = &v return s } @@ -6884,6 +7963,60 @@ func (s *InvalidParameterException) RequestID() string { return s.RespMetadata.RequestID } +// AWS Key Management Service (KMS) Key. +type KmsKey struct { + _ struct{} `type:"structure"` + + // KMS Alias Arn. + KmsAliasArn *string `locationName:"kmsAliasArn" min:"1" type:"string"` + + // KMS Key Arn. + KmsKeyArn *string `locationName:"kmsKeyArn" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsKey) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KmsKey) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KmsKey"} + if s.KmsAliasArn != nil && len(*s.KmsAliasArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KmsAliasArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKmsAliasArn sets the KmsAliasArn field's value. +func (s *KmsKey) SetKmsAliasArn(v string) *KmsKey { + s.KmsAliasArn = &v + return s +} + +// SetKmsKeyArn sets the KmsKeyArn field's value. +func (s *KmsKey) SetKmsKeyArn(v string) *KmsKey { + s.KmsKeyArn = &v + return s +} + type ListConfigsInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -7702,7 +8835,210 @@ type ListTagsForResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // Tags assigned to a resource. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// Item in a list of mission profiles. +type MissionProfileListItem struct { + _ struct{} `type:"structure"` + + // ARN of a mission profile. + MissionProfileArn *string `locationName:"missionProfileArn" type:"string"` + + // UUID of a mission profile. + MissionProfileId *string `locationName:"missionProfileId" min:"1" type:"string"` + + // Name of a mission profile. + Name *string `locationName:"name" min:"1" type:"string"` + + // Region of a mission profile. + Region *string `locationName:"region" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MissionProfileListItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MissionProfileListItem) GoString() string { + return s.String() +} + +// SetMissionProfileArn sets the MissionProfileArn field's value. +func (s *MissionProfileListItem) SetMissionProfileArn(v string) *MissionProfileListItem { + s.MissionProfileArn = &v + return s +} + +// SetMissionProfileId sets the MissionProfileId field's value. +func (s *MissionProfileListItem) SetMissionProfileId(v string) *MissionProfileListItem { + s.MissionProfileId = &v + return s +} + +// SetName sets the Name field's value. +func (s *MissionProfileListItem) SetName(v string) *MissionProfileListItem { + s.Name = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *MissionProfileListItem) SetRegion(v string) *MissionProfileListItem { + s.Region = &v + return s +} + +// Ephemeris data in Orbit Ephemeris Message (OEM) format. +type OEMEphemeris struct { + _ struct{} `type:"structure"` + + // The data for an OEM ephemeris, supplied directly in the request rather than + // through an S3 object. + OemData *string `locationName:"oemData" min:"1" type:"string"` + + // Identifies the S3 object to be used as the ephemeris. + S3Object *S3Object `locationName:"s3Object" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OEMEphemeris) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OEMEphemeris) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OEMEphemeris) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OEMEphemeris"} + if s.OemData != nil && len(*s.OemData) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OemData", 1)) + } + if s.S3Object != nil { + if err := s.S3Object.Validate(); err != nil { + invalidParams.AddNested("S3Object", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOemData sets the OemData field's value. +func (s *OEMEphemeris) SetOemData(v string) *OEMEphemeris { + s.OemData = &v + return s +} + +// SetS3Object sets the S3Object field's value. +func (s *OEMEphemeris) SetS3Object(v *S3Object) *OEMEphemeris { + s.S3Object = v + return s +} + +// Ingress address of AgentEndpoint with a port range and an optional mtu. +type RangedConnectionDetails struct { + _ struct{} `type:"structure"` + + // Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + Mtu *int64 `locationName:"mtu" min:"1400" type:"integer"` + + // A ranged socket address. + // + // SocketAddress is a required field + SocketAddress *RangedSocketAddress `locationName:"socketAddress" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RangedConnectionDetails) String() string { return awsutil.Prettify(s) } @@ -7711,18 +9047,23 @@ func (s ListTagsForResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { +func (s RangedConnectionDetails) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func (s *RangedConnectionDetails) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RangedConnectionDetails"} + if s.Mtu != nil && *s.Mtu < 1400 { + invalidParams.Add(request.NewErrParamMinValue("Mtu", 1400)) } - if s.ResourceArn != nil && len(*s.ResourceArn) < 5 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 5)) + if s.SocketAddress == nil { + invalidParams.Add(request.NewErrParamRequired("SocketAddress")) + } + if s.SocketAddress != nil { + if err := s.SocketAddress.Validate(); err != nil { + invalidParams.AddNested("SocketAddress", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -7731,17 +9072,31 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v +// SetMtu sets the Mtu field's value. +func (s *RangedConnectionDetails) SetMtu(v int64) *RangedConnectionDetails { + s.Mtu = &v return s } -type ListTagsForResourceOutput struct { +// SetSocketAddress sets the SocketAddress field's value. +func (s *RangedConnectionDetails) SetSocketAddress(v *RangedSocketAddress) *RangedConnectionDetails { + s.SocketAddress = v + return s +} + +// A socket address with a port range. +type RangedSocketAddress struct { _ struct{} `type:"structure"` - // Tags assigned to a resource. - Tags map[string]*string `locationName:"tags" type:"map"` + // IPv4 socket address. + // + // Name is a required field + Name *string `locationName:"name" min:"7" type:"string" required:"true"` + + // Port range of a socket address. + // + // PortRange is a required field + PortRange *IntegerRange `locationName:"portRange" type:"structure" required:"true"` } // String returns the string representation. @@ -7749,7 +9104,7 @@ type ListTagsForResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { +func (s RangedSocketAddress) String() string { return awsutil.Prettify(s) } @@ -7758,31 +9113,58 @@ func (s ListTagsForResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { +func (s RangedSocketAddress) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { - s.Tags = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *RangedSocketAddress) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RangedSocketAddress"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 7 { + invalidParams.Add(request.NewErrParamMinLen("Name", 7)) + } + if s.PortRange == nil { + invalidParams.Add(request.NewErrParamRequired("PortRange")) + } + if s.PortRange != nil { + if err := s.PortRange.Validate(); err != nil { + invalidParams.AddNested("PortRange", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Item in a list of mission profiles. -type MissionProfileListItem struct { - _ struct{} `type:"structure"` +// SetName sets the Name field's value. +func (s *RangedSocketAddress) SetName(v string) *RangedSocketAddress { + s.Name = &v + return s +} - // ARN of a mission profile. - MissionProfileArn *string `locationName:"missionProfileArn" type:"string"` +// SetPortRange sets the PortRange field's value. +func (s *RangedSocketAddress) SetPortRange(v *IntegerRange) *RangedSocketAddress { + s.PortRange = v + return s +} - // UUID of a mission profile. - MissionProfileId *string `locationName:"missionProfileId" min:"1" type:"string"` +type RegisterAgentInput struct { + _ struct{} `type:"structure"` - // Name of a mission profile. - Name *string `locationName:"name" min:"1" type:"string"` + // Detailed information about the agent being registered. + // + // AgentDetails is a required field + AgentDetails *AgentDetails `locationName:"agentDetails" type:"structure" required:"true"` - // Region of a mission profile. - Region *string `locationName:"region" min:"1" type:"string"` + // Data for associating and agent with the capabilities it is managing. + // + // DiscoveryData is a required field + DiscoveryData *DiscoveryData `locationName:"discoveryData" type:"structure" required:"true"` } // String returns the string representation. @@ -7790,7 +9172,7 @@ type MissionProfileListItem struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MissionProfileListItem) String() string { +func (s RegisterAgentInput) String() string { return awsutil.Prettify(s) } @@ -7799,44 +9181,53 @@ func (s MissionProfileListItem) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MissionProfileListItem) GoString() string { +func (s RegisterAgentInput) GoString() string { return s.String() } -// SetMissionProfileArn sets the MissionProfileArn field's value. -func (s *MissionProfileListItem) SetMissionProfileArn(v string) *MissionProfileListItem { - s.MissionProfileArn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterAgentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterAgentInput"} + if s.AgentDetails == nil { + invalidParams.Add(request.NewErrParamRequired("AgentDetails")) + } + if s.DiscoveryData == nil { + invalidParams.Add(request.NewErrParamRequired("DiscoveryData")) + } + if s.AgentDetails != nil { + if err := s.AgentDetails.Validate(); err != nil { + invalidParams.AddNested("AgentDetails", err.(request.ErrInvalidParams)) + } + } + if s.DiscoveryData != nil { + if err := s.DiscoveryData.Validate(); err != nil { + invalidParams.AddNested("DiscoveryData", err.(request.ErrInvalidParams)) + } + } -// SetMissionProfileId sets the MissionProfileId field's value. -func (s *MissionProfileListItem) SetMissionProfileId(v string) *MissionProfileListItem { - s.MissionProfileId = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetName sets the Name field's value. -func (s *MissionProfileListItem) SetName(v string) *MissionProfileListItem { - s.Name = &v +// SetAgentDetails sets the AgentDetails field's value. +func (s *RegisterAgentInput) SetAgentDetails(v *AgentDetails) *RegisterAgentInput { + s.AgentDetails = v return s } -// SetRegion sets the Region field's value. -func (s *MissionProfileListItem) SetRegion(v string) *MissionProfileListItem { - s.Region = &v +// SetDiscoveryData sets the DiscoveryData field's value. +func (s *RegisterAgentInput) SetDiscoveryData(v *DiscoveryData) *RegisterAgentInput { + s.DiscoveryData = v return s } -// Ephemeris data in Orbit Ephemeris Message (OEM) format. -type OEMEphemeris struct { +type RegisterAgentOutput struct { _ struct{} `type:"structure"` - // The data for an OEM ephemeris, supplied directly in the request rather than - // through an S3 object. - OemData *string `locationName:"oemData" min:"1" type:"string"` - - // Identifies the S3 object to be used as the ephemeris. - S3Object *S3Object `locationName:"s3Object" type:"structure"` + // UUID of registered agent. + AgentId *string `locationName:"agentId" min:"1" type:"string"` } // String returns the string representation. @@ -7844,7 +9235,7 @@ type OEMEphemeris struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OEMEphemeris) String() string { +func (s RegisterAgentOutput) String() string { return awsutil.Prettify(s) } @@ -7853,37 +9244,13 @@ func (s OEMEphemeris) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OEMEphemeris) GoString() string { +func (s RegisterAgentOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OEMEphemeris) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OEMEphemeris"} - if s.OemData != nil && len(*s.OemData) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OemData", 1)) - } - if s.S3Object != nil { - if err := s.S3Object.Validate(); err != nil { - invalidParams.AddNested("S3Object", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetOemData sets the OemData field's value. -func (s *OEMEphemeris) SetOemData(v string) *OEMEphemeris { - s.OemData = &v - return s -} - -// SetS3Object sets the S3Object field's value. -func (s *OEMEphemeris) SetS3Object(v *S3Object) *OEMEphemeris { - s.S3Object = v +// SetAgentId sets the AgentId field's value. +func (s *RegisterAgentOutput) SetAgentId(v string) *RegisterAgentOutput { + s.AgentId = &v return s } @@ -9134,6 +10501,151 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateAgentStatusInput struct { + _ struct{} `type:"structure"` + + // UUID of agent to update. + // + // AgentId is a required field + AgentId *string `location:"uri" locationName:"agentId" min:"1" type:"string" required:"true"` + + // Aggregate status for agent. + // + // AggregateStatus is a required field + AggregateStatus *AggregateStatus `locationName:"aggregateStatus" type:"structure" required:"true"` + + // List of component statuses for agent. + // + // ComponentStatuses is a required field + ComponentStatuses []*ComponentStatusData `locationName:"componentStatuses" min:"1" type:"list" required:"true"` + + // GUID of agent task. + // + // TaskId is a required field + TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAgentStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAgentStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAgentStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAgentStatusInput"} + if s.AgentId == nil { + invalidParams.Add(request.NewErrParamRequired("AgentId")) + } + if s.AgentId != nil && len(*s.AgentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AgentId", 1)) + } + if s.AggregateStatus == nil { + invalidParams.Add(request.NewErrParamRequired("AggregateStatus")) + } + if s.ComponentStatuses == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentStatuses")) + } + if s.ComponentStatuses != nil && len(s.ComponentStatuses) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ComponentStatuses", 1)) + } + if s.TaskId == nil { + invalidParams.Add(request.NewErrParamRequired("TaskId")) + } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } + if s.AggregateStatus != nil { + if err := s.AggregateStatus.Validate(); err != nil { + invalidParams.AddNested("AggregateStatus", err.(request.ErrInvalidParams)) + } + } + if s.ComponentStatuses != nil { + for i, v := range s.ComponentStatuses { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComponentStatuses", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentId sets the AgentId field's value. +func (s *UpdateAgentStatusInput) SetAgentId(v string) *UpdateAgentStatusInput { + s.AgentId = &v + return s +} + +// SetAggregateStatus sets the AggregateStatus field's value. +func (s *UpdateAgentStatusInput) SetAggregateStatus(v *AggregateStatus) *UpdateAgentStatusInput { + s.AggregateStatus = v + return s +} + +// SetComponentStatuses sets the ComponentStatuses field's value. +func (s *UpdateAgentStatusInput) SetComponentStatuses(v []*ComponentStatusData) *UpdateAgentStatusInput { + s.ComponentStatuses = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *UpdateAgentStatusInput) SetTaskId(v string) *UpdateAgentStatusInput { + s.TaskId = &v + return s +} + +type UpdateAgentStatusOutput struct { + _ struct{} `type:"structure"` + + // UUID of updated agent. + // + // AgentId is a required field + AgentId *string `locationName:"agentId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAgentStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAgentStatusOutput) GoString() string { + return s.String() +} + +// SetAgentId sets the AgentId field's value. +func (s *UpdateAgentStatusOutput) SetAgentId(v string) *UpdateAgentStatusOutput { + s.AgentId = &v + return s +} + type UpdateConfigInput struct { _ struct{} `type:"structure"` @@ -9436,6 +10948,12 @@ type UpdateMissionProfileInput struct { // Name of a mission profile. Name *string `locationName:"name" min:"1" type:"string"` + // KMS key to use for encrypting streams. + StreamsKmsKey *KmsKey `locationName:"streamsKmsKey" type:"structure"` + + // Role to use for encrypting streams with KMS key. + StreamsKmsRole *string `locationName:"streamsKmsRole" type:"string"` + // ARN of a tracking Config. TrackingConfigArn *string `locationName:"trackingConfigArn" type:"string"` } @@ -9473,6 +10991,11 @@ func (s *UpdateMissionProfileInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.StreamsKmsKey != nil { + if err := s.StreamsKmsKey.Validate(); err != nil { + invalidParams.AddNested("StreamsKmsKey", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9516,6 +11039,18 @@ func (s *UpdateMissionProfileInput) SetName(v string) *UpdateMissionProfileInput return s } +// SetStreamsKmsKey sets the StreamsKmsKey field's value. +func (s *UpdateMissionProfileInput) SetStreamsKmsKey(v *KmsKey) *UpdateMissionProfileInput { + s.StreamsKmsKey = v + return s +} + +// SetStreamsKmsRole sets the StreamsKmsRole field's value. +func (s *UpdateMissionProfileInput) SetStreamsKmsRole(v string) *UpdateMissionProfileInput { + s.StreamsKmsRole = &v + return s +} + // SetTrackingConfigArn sets the TrackingConfigArn field's value. func (s *UpdateMissionProfileInput) SetTrackingConfigArn(v string) *UpdateMissionProfileInput { s.TrackingConfigArn = &v @@ -9680,6 +11215,30 @@ func (s *UplinkSpectrumConfig) SetPolarization(v string) *UplinkSpectrumConfig { return s } +const ( + // AgentStatusSuccess is a AgentStatus enum value + AgentStatusSuccess = "SUCCESS" + + // AgentStatusFailed is a AgentStatus enum value + AgentStatusFailed = "FAILED" + + // AgentStatusActive is a AgentStatus enum value + AgentStatusActive = "ACTIVE" + + // AgentStatusInactive is a AgentStatus enum value + AgentStatusInactive = "INACTIVE" +) + +// AgentStatus_Values returns all elements of the AgentStatus enum +func AgentStatus_Values() []string { + return []string{ + AgentStatusSuccess, + AgentStatusFailed, + AgentStatusActive, + AgentStatusInactive, + } +} + const ( // AngleUnitsDegreeAngle is a AngleUnits enum value AngleUnitsDegreeAngle = "DEGREE_ANGLE" @@ -9696,6 +11255,22 @@ func AngleUnits_Values() []string { } } +const ( + // AuditResultsHealthy is a AuditResults enum value + AuditResultsHealthy = "HEALTHY" + + // AuditResultsUnhealthy is a AuditResults enum value + AuditResultsUnhealthy = "UNHEALTHY" +) + +// AuditResults_Values returns all elements of the AuditResults enum +func AuditResults_Values() []string { + return []string{ + AuditResultsHealthy, + AuditResultsUnhealthy, + } +} + const ( // BandwidthUnitsGhz is a BandwidthUnits enum value BandwidthUnitsGhz = "GHz" @@ -9716,6 +11291,26 @@ func BandwidthUnits_Values() []string { } } +const ( + // ComponentTypeLaminarFlow is a ComponentType enum value + ComponentTypeLaminarFlow = "LAMINAR_FLOW" + + // ComponentTypePrism is a ComponentType enum value + ComponentTypePrism = "PRISM" + + // ComponentTypeDigitizer is a ComponentType enum value + ComponentTypeDigitizer = "DIGITIZER" +) + +// ComponentType_Values returns all elements of the ComponentType enum +func ComponentType_Values() []string { + return []string{ + ComponentTypeLaminarFlow, + ComponentTypePrism, + ComponentTypeDigitizer, + } +} + const ( // ConfigCapabilityTypeAntennaDownlink is a ConfigCapabilityType enum value ConfigCapabilityTypeAntennaDownlink = "antenna-downlink" diff --git a/service/groundstation/groundstationiface/interface.go b/service/groundstation/groundstationiface/interface.go index 8e3201dc0c4..0b93c033c51 100644 --- a/service/groundstation/groundstationiface/interface.go +++ b/service/groundstation/groundstationiface/interface.go @@ -104,6 +104,10 @@ type GroundStationAPI interface { DescribeEphemerisWithContext(aws.Context, *groundstation.DescribeEphemerisInput, ...request.Option) (*groundstation.DescribeEphemerisOutput, error) DescribeEphemerisRequest(*groundstation.DescribeEphemerisInput) (*request.Request, *groundstation.DescribeEphemerisOutput) + GetAgentConfiguration(*groundstation.GetAgentConfigurationInput) (*groundstation.GetAgentConfigurationOutput, error) + GetAgentConfigurationWithContext(aws.Context, *groundstation.GetAgentConfigurationInput, ...request.Option) (*groundstation.GetAgentConfigurationOutput, error) + GetAgentConfigurationRequest(*groundstation.GetAgentConfigurationInput) (*request.Request, *groundstation.GetAgentConfigurationOutput) + GetConfig(*groundstation.GetConfigInput) (*groundstation.GetConfigOutput, error) GetConfigWithContext(aws.Context, *groundstation.GetConfigInput, ...request.Option) (*groundstation.GetConfigOutput, error) GetConfigRequest(*groundstation.GetConfigInput) (*request.Request, *groundstation.GetConfigOutput) @@ -177,6 +181,10 @@ type GroundStationAPI interface { ListTagsForResourceWithContext(aws.Context, *groundstation.ListTagsForResourceInput, ...request.Option) (*groundstation.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*groundstation.ListTagsForResourceInput) (*request.Request, *groundstation.ListTagsForResourceOutput) + RegisterAgent(*groundstation.RegisterAgentInput) (*groundstation.RegisterAgentOutput, error) + RegisterAgentWithContext(aws.Context, *groundstation.RegisterAgentInput, ...request.Option) (*groundstation.RegisterAgentOutput, error) + RegisterAgentRequest(*groundstation.RegisterAgentInput) (*request.Request, *groundstation.RegisterAgentOutput) + ReserveContact(*groundstation.ReserveContactInput) (*groundstation.ReserveContactOutput, error) ReserveContactWithContext(aws.Context, *groundstation.ReserveContactInput, ...request.Option) (*groundstation.ReserveContactOutput, error) ReserveContactRequest(*groundstation.ReserveContactInput) (*request.Request, *groundstation.ReserveContactOutput) @@ -189,6 +197,10 @@ type GroundStationAPI interface { UntagResourceWithContext(aws.Context, *groundstation.UntagResourceInput, ...request.Option) (*groundstation.UntagResourceOutput, error) UntagResourceRequest(*groundstation.UntagResourceInput) (*request.Request, *groundstation.UntagResourceOutput) + UpdateAgentStatus(*groundstation.UpdateAgentStatusInput) (*groundstation.UpdateAgentStatusOutput, error) + UpdateAgentStatusWithContext(aws.Context, *groundstation.UpdateAgentStatusInput, ...request.Option) (*groundstation.UpdateAgentStatusOutput, error) + UpdateAgentStatusRequest(*groundstation.UpdateAgentStatusInput) (*request.Request, *groundstation.UpdateAgentStatusOutput) + UpdateConfig(*groundstation.UpdateConfigInput) (*groundstation.UpdateConfigOutput, error) UpdateConfigWithContext(aws.Context, *groundstation.UpdateConfigInput, ...request.Option) (*groundstation.UpdateConfigOutput, error) UpdateConfigRequest(*groundstation.UpdateConfigInput) (*request.Request, *groundstation.UpdateConfigOutput) diff --git a/service/iot/api.go b/service/iot/api.go index 683d2eb020c..a73a65defbc 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -30292,6 +30292,10 @@ func (s *CloudwatchAlarmAction) SetStateValue(v string) *CloudwatchAlarmAction { type CloudwatchLogsAction struct { _ struct{} `type:"structure"` + // Indicates whether batches of log records will be extracted and uploaded into + // CloudWatch. Values include true or false (default). + BatchMode *bool `locationName:"batchMode" type:"boolean"` + // The CloudWatch log group to which the action sends data. // // LogGroupName is a required field @@ -30337,6 +30341,12 @@ func (s *CloudwatchLogsAction) Validate() error { return nil } +// SetBatchMode sets the BatchMode field's value. +func (s *CloudwatchLogsAction) SetBatchMode(v bool) *CloudwatchLogsAction { + s.BatchMode = &v + return s +} + // SetLogGroupName sets the LogGroupName field's value. func (s *CloudwatchLogsAction) SetLogGroupName(v string) *CloudwatchLogsAction { s.LogGroupName = &v diff --git a/service/opensearchservice/api.go b/service/opensearchservice/api.go index 4d1fecbb507..1cae4d64f78 100644 --- a/service/opensearchservice/api.go +++ b/service/opensearchservice/api.go @@ -70,16 +70,14 @@ func (c *OpenSearchService) AcceptInboundConnectionRequest(input *AcceptInboundC // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AcceptInboundConnection func (c *OpenSearchService) AcceptInboundConnection(input *AcceptInboundConnectionInput) (*AcceptInboundConnectionOutput, error) { @@ -164,17 +162,15 @@ func (c *OpenSearchService) AddTagsRequest(input *AddTagsInput) (req *request.Re // An error occurred while processing the request. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AddTags func (c *OpenSearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { @@ -257,25 +253,21 @@ func (c *OpenSearchService) AssociatePackageRequest(input *AssociatePackageInput // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - ConflictException -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AssociatePackage func (c *OpenSearchService) AssociatePackage(input *AssociatePackageInput) (*AssociatePackageOutput, error) { @@ -355,25 +347,21 @@ func (c *OpenSearchService) AuthorizeVpcEndpointAccessRequest(input *AuthorizeVp // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - BaseException // An error occurred while processing the request. @@ -461,17 +449,14 @@ func (c *OpenSearchService) CancelServiceSoftwareUpdateRequest(input *CancelServ // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/CancelServiceSoftwareUpdate func (c *OpenSearchService) CancelServiceSoftwareUpdate(input *CancelServiceSoftwareUpdateInput) (*CancelServiceSoftwareUpdateOutput, error) { @@ -554,29 +539,25 @@ func (c *OpenSearchService) CreateDomainRequest(input *CreateDomainInput) (req * // An error occurred while processing the request. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - InvalidTypeException -// An exception for trying to create or access sub-resource that is either invalid -// or not supported. Gives http status code of 409. +// An exception for trying to create or access a sub-resource that's either +// invalid or not supported. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ResourceAlreadyExistsException -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/CreateDomain func (c *OpenSearchService) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { @@ -657,21 +638,18 @@ func (c *OpenSearchService) CreateOutboundConnectionRequest(input *CreateOutboun // Returned Error Types: // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceAlreadyExistsException -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/CreateOutboundConnection func (c *OpenSearchService) CreateOutboundConnection(input *CreateOutboundConnectionInput) (*CreateOutboundConnectionOutput, error) { @@ -754,29 +732,25 @@ func (c *OpenSearchService) CreatePackageRequest(input *CreatePackageInput) (req // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - InvalidTypeException -// An exception for trying to create or access sub-resource that is either invalid -// or not supported. Gives http status code of 409. +// An exception for trying to create or access a sub-resource that's either +// invalid or not supported. // // - ResourceAlreadyExistsException -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/CreatePackage func (c *OpenSearchService) CreatePackage(input *CreatePackageInput) (*CreatePackageOutput, error) { @@ -855,25 +829,22 @@ func (c *OpenSearchService) CreateVpcEndpointRequest(input *CreateVpcEndpointInp // Returned Error Types: // // - ConflictException -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - BaseException // An error occurred while processing the request. @@ -959,17 +930,14 @@ func (c *OpenSearchService) DeleteDomainRequest(input *DeleteDomainInput) (req * // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DeleteDomain func (c *OpenSearchService) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { @@ -1050,12 +1018,10 @@ func (c *OpenSearchService) DeleteInboundConnectionRequest(input *DeleteInboundC // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DeleteInboundConnection func (c *OpenSearchService) DeleteInboundConnection(input *DeleteInboundConnectionInput) (*DeleteInboundConnectionOutput, error) { @@ -1136,12 +1102,10 @@ func (c *OpenSearchService) DeleteOutboundConnectionRequest(input *DeleteOutboun // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DeleteOutboundConnection func (c *OpenSearchService) DeleteOutboundConnection(input *DeleteOutboundConnectionInput) (*DeleteOutboundConnectionOutput, error) { @@ -1224,25 +1188,21 @@ func (c *OpenSearchService) DeletePackageRequest(input *DeletePackageInput) (req // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - ConflictException -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DeletePackage func (c *OpenSearchService) DeletePackage(input *DeletePackageInput) (*DeletePackageOutput, error) { @@ -1321,17 +1281,14 @@ func (c *OpenSearchService) DeleteVpcEndpointRequest(input *DeleteVpcEndpointInp // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - BaseException // An error occurred while processing the request. @@ -1417,17 +1374,14 @@ func (c *OpenSearchService) DescribeDomainRequest(input *DescribeDomainInput) (r // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDomain func (c *OpenSearchService) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) { @@ -1517,17 +1471,14 @@ func (c *OpenSearchService) DescribeDomainAutoTunesRequest(input *DescribeDomain // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDomainAutoTunes func (c *OpenSearchService) DescribeDomainAutoTunes(input *DescribeDomainAutoTunesInput) (*DescribeDomainAutoTunesOutput, error) { @@ -1662,17 +1613,14 @@ func (c *OpenSearchService) DescribeDomainChangeProgressRequest(input *DescribeD // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDomainChangeProgress func (c *OpenSearchService) DescribeDomainChangeProgress(input *DescribeDomainChangeProgressInput) (*DescribeDomainChangeProgressOutput, error) { @@ -1754,17 +1702,14 @@ func (c *OpenSearchService) DescribeDomainConfigRequest(input *DescribeDomainCon // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDomainConfig func (c *OpenSearchService) DescribeDomainConfig(input *DescribeDomainConfigInput) (*DescribeDomainConfigOutput, error) { @@ -1847,13 +1792,11 @@ func (c *OpenSearchService) DescribeDomainsRequest(input *DescribeDomainsInput) // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDomains func (c *OpenSearchService) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) { @@ -1937,21 +1880,17 @@ func (c *OpenSearchService) DescribeDryRunProgressRequest(input *DescribeDryRunP // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeDryRunProgress func (c *OpenSearchService) DescribeDryRunProgress(input *DescribeDryRunProgressInput) (*DescribeDryRunProgressOutput, error) { @@ -2038,12 +1977,11 @@ func (c *OpenSearchService) DescribeInboundConnectionsRequest(input *DescribeInb // Returned Error Types: // // - InvalidPaginationTokenException -// The request processing has failed because of invalid pagination token provided -// by customer. Returns an HTTP status code of 400. +// The request processing has failed because you provided an invalid pagination +// token. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeInboundConnections func (c *OpenSearchService) DescribeInboundConnections(input *DescribeInboundConnectionsInput) (*DescribeInboundConnectionsOutput, error) { @@ -2177,25 +2115,22 @@ func (c *OpenSearchService) DescribeInstanceTypeLimitsRequest(input *DescribeIns // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - InvalidTypeException -// An exception for trying to create or access sub-resource that is either invalid -// or not supported. Gives http status code of 409. +// An exception for trying to create or access a sub-resource that's either +// invalid or not supported. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeInstanceTypeLimits func (c *OpenSearchService) DescribeInstanceTypeLimits(input *DescribeInstanceTypeLimitsInput) (*DescribeInstanceTypeLimitsOutput, error) { @@ -2282,12 +2217,11 @@ func (c *OpenSearchService) DescribeOutboundConnectionsRequest(input *DescribeOu // Returned Error Types: // // - InvalidPaginationTokenException -// The request processing has failed because of invalid pagination token provided -// by customer. Returns an HTTP status code of 400. +// The request processing has failed because you provided an invalid pagination +// token. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeOutboundConnections func (c *OpenSearchService) DescribeOutboundConnections(input *DescribeOutboundConnectionsInput) (*DescribeOutboundConnectionsOutput, error) { @@ -2427,21 +2361,17 @@ func (c *OpenSearchService) DescribePackagesRequest(input *DescribePackagesInput // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribePackages func (c *OpenSearchService) DescribePackages(input *DescribePackagesInput) (*DescribePackagesOutput, error) { @@ -2579,21 +2509,17 @@ func (c *OpenSearchService) DescribeReservedInstanceOfferingsRequest(input *Desc // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeReservedInstanceOfferings func (c *OpenSearchService) DescribeReservedInstanceOfferings(input *DescribeReservedInstanceOfferingsInput) (*DescribeReservedInstanceOfferingsOutput, error) { @@ -2731,21 +2657,17 @@ func (c *OpenSearchService) DescribeReservedInstancesRequest(input *DescribeRese // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DescribeReservedInstances func (c *OpenSearchService) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) { @@ -2875,17 +2797,14 @@ func (c *OpenSearchService) DescribeVpcEndpointsRequest(input *DescribeVpcEndpoi // Returned Error Types: // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - BaseException // An error occurred while processing the request. @@ -2974,25 +2893,21 @@ func (c *OpenSearchService) DissociatePackageRequest(input *DissociatePackageInp // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - ConflictException -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/DissociatePackage func (c *OpenSearchService) DissociatePackage(input *DissociatePackageInput) (*DissociatePackageOutput, error) { @@ -3075,21 +2990,17 @@ func (c *OpenSearchService) GetCompatibleVersionsRequest(input *GetCompatibleVer // An error occurred while processing the request. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/GetCompatibleVersions func (c *OpenSearchService) GetCompatibleVersions(input *GetCompatibleVersionsInput) (*GetCompatibleVersionsOutput, error) { @@ -3179,21 +3090,17 @@ func (c *OpenSearchService) GetPackageVersionHistoryRequest(input *GetPackageVer // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/GetPackageVersionHistory func (c *OpenSearchService) GetPackageVersionHistory(input *GetPackageVersionHistoryInput) (*GetPackageVersionHistoryOutput, error) { @@ -3333,21 +3240,17 @@ func (c *OpenSearchService) GetUpgradeHistoryRequest(input *GetUpgradeHistoryInp // An error occurred while processing the request. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/GetUpgradeHistory func (c *OpenSearchService) GetUpgradeHistory(input *GetUpgradeHistoryInput) (*GetUpgradeHistoryOutput, error) { @@ -3481,21 +3384,17 @@ func (c *OpenSearchService) GetUpgradeStatusRequest(input *GetUpgradeStatusInput // An error occurred while processing the request. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/GetUpgradeStatus func (c *OpenSearchService) GetUpgradeStatus(input *GetUpgradeStatusInput) (*GetUpgradeStatusOutput, error) { @@ -3578,8 +3477,7 @@ func (c *OpenSearchService) ListDomainNamesRequest(input *ListDomainNamesInput) // An error occurred while processing the request. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDomainNames func (c *OpenSearchService) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { @@ -3668,21 +3566,17 @@ func (c *OpenSearchService) ListDomainsForPackageRequest(input *ListDomainsForPa // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDomainsForPackage func (c *OpenSearchService) ListDomainsForPackage(input *ListDomainsForPackageInput) (*ListDomainsForPackageOutput, error) { @@ -3822,17 +3716,14 @@ func (c *OpenSearchService) ListInstanceTypeDetailsRequest(input *ListInstanceTy // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListInstanceTypeDetails func (c *OpenSearchService) ListInstanceTypeDetails(input *ListInstanceTypeDetailsInput) (*ListInstanceTypeDetailsOutput, error) { @@ -3972,21 +3863,17 @@ func (c *OpenSearchService) ListPackagesForDomainRequest(input *ListPackagesForD // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListPackagesForDomain func (c *OpenSearchService) ListPackagesForDomain(input *ListPackagesForDomainInput) (*ListPackagesForDomainOutput, error) { @@ -4120,17 +4007,14 @@ func (c *OpenSearchService) ListTagsRequest(input *ListTagsInput) (req *request. // An error occurred while processing the request. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListTags func (c *OpenSearchService) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { @@ -4219,17 +4103,14 @@ func (c *OpenSearchService) ListVersionsRequest(input *ListVersionsInput) (req * // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListVersions func (c *OpenSearchService) ListVersions(input *ListVersionsInput) (*ListVersionsOutput, error) { @@ -4361,17 +4242,14 @@ func (c *OpenSearchService) ListVpcEndpointAccessRequest(input *ListVpcEndpointA // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - BaseException // An error occurred while processing the request. @@ -4454,13 +4332,11 @@ func (c *OpenSearchService) ListVpcEndpointsRequest(input *ListVpcEndpointsInput // Returned Error Types: // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - BaseException // An error occurred while processing the request. @@ -4543,17 +4419,14 @@ func (c *OpenSearchService) ListVpcEndpointsForDomainRequest(input *ListVpcEndpo // Returned Error Types: // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - BaseException // An error occurred while processing the request. @@ -4635,29 +4508,24 @@ func (c *OpenSearchService) PurchaseReservedInstanceOfferingRequest(input *Purch // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ResourceAlreadyExistsException -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/PurchaseReservedInstanceOffering func (c *OpenSearchService) PurchaseReservedInstanceOffering(input *PurchaseReservedInstanceOfferingInput) (*PurchaseReservedInstanceOfferingOutput, error) { @@ -4737,12 +4605,10 @@ func (c *OpenSearchService) RejectInboundConnectionRequest(input *RejectInboundC // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/RejectInboundConnection func (c *OpenSearchService) RejectInboundConnection(input *RejectInboundConnectionInput) (*RejectInboundConnectionOutput, error) { @@ -4826,13 +4692,11 @@ func (c *OpenSearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *requ // An error occurred while processing the request. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/RemoveTags func (c *OpenSearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { @@ -4913,21 +4777,17 @@ func (c *OpenSearchService) RevokeVpcEndpointAccessRequest(input *RevokeVpcEndpo // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - BaseException // An error occurred while processing the request. @@ -5014,17 +4874,14 @@ func (c *OpenSearchService) StartServiceSoftwareUpdateRequest(input *StartServic // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/StartServiceSoftwareUpdate func (c *OpenSearchService) StartServiceSoftwareUpdate(input *StartServiceSoftwareUpdateInput) (*StartServiceSoftwareUpdateOutput, error) { @@ -5107,25 +4964,22 @@ func (c *OpenSearchService) UpdateDomainConfigRequest(input *UpdateDomainConfigI // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - InvalidTypeException -// An exception for trying to create or access sub-resource that is either invalid -// or not supported. Gives http status code of 409. +// An exception for trying to create or access a sub-resource that's either +// invalid or not supported. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/UpdateDomainConfig func (c *OpenSearchService) UpdateDomainConfig(input *UpdateDomainConfigInput) (*UpdateDomainConfigOutput, error) { @@ -5208,25 +5062,21 @@ func (c *OpenSearchService) UpdatePackageRequest(input *UpdatePackageInput) (req // An error occurred while processing the request. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - LimitExceededException -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - AccessDeniedException -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/UpdatePackage func (c *OpenSearchService) UpdatePackage(input *UpdatePackageInput) (*UpdatePackageOutput, error) { @@ -5305,25 +5155,21 @@ func (c *OpenSearchService) UpdateVpcEndpointRequest(input *UpdateVpcEndpointInp // Returned Error Types: // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - ConflictException -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. // // - BaseException // An error occurred while processing the request. @@ -5409,25 +5255,20 @@ func (c *OpenSearchService) UpgradeDomainRequest(input *UpgradeDomainInput) (req // An error occurred while processing the request. // // - ResourceNotFoundException -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. // // - ResourceAlreadyExistsException -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. // // - DisabledOperationException -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. // // - ValidationException -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. // // - InternalException -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/UpgradeDomain func (c *OpenSearchService) UpgradeDomain(input *UpgradeDomainInput) (*UpgradeDomainOutput, error) { @@ -5607,8 +5448,7 @@ func (s *AcceptInboundConnectionOutput) SetConnection(v *InboundConnection) *Acc return s } -// An error occurred because user does not have permissions to access the resource. -// Returns HTTP status code 403. +// An error occurred because you don't have permissions to access the resource. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -7581,8 +7421,8 @@ func (s *CompatibleVersionsMap) SetTargetVersions(v []*string) *CompatibleVersio return s } -// An error occurred because the client attempts to remove a resource that is -// currently in use. Returns HTTP status code 409. +// An error occurred because the client attempts to remove a resource that's +// currently in use. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -7646,6 +7486,38 @@ func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } +// The connection properties of an outbound connection. +type ConnectionProperties struct { + _ struct{} `type:"structure"` + + // The endpoint of the remote domain. + Endpoint *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConnectionProperties) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *ConnectionProperties) SetEndpoint(v string) *ConnectionProperties { + s.Endpoint = &v + return s +} + type CreateDomainInput struct { _ struct{} `type:"structure"` @@ -7961,6 +7833,9 @@ type CreateOutboundConnectionInput struct { // ConnectionAlias is a required field ConnectionAlias *string `min:"2" type:"string" required:"true"` + // The connection mode. + ConnectionMode *string `type:"string" enum:"ConnectionMode"` + // Name and Region of the source (local) domain. // // LocalDomainInfo is a required field @@ -8028,6 +7903,12 @@ func (s *CreateOutboundConnectionInput) SetConnectionAlias(v string) *CreateOutb return s } +// SetConnectionMode sets the ConnectionMode field's value. +func (s *CreateOutboundConnectionInput) SetConnectionMode(v string) *CreateOutboundConnectionInput { + s.ConnectionMode = &v + return s +} + // SetLocalDomainInfo sets the LocalDomainInfo field's value. func (s *CreateOutboundConnectionInput) SetLocalDomainInfo(v *DomainInformationContainer) *CreateOutboundConnectionInput { s.LocalDomainInfo = v @@ -8052,6 +7933,12 @@ type CreateOutboundConnectionOutput struct { // for subsequent operations on the connection. ConnectionId *string `min:"10" type:"string"` + // The connection mode. + ConnectionMode *string `type:"string" enum:"ConnectionMode"` + + // The ConnectionProperties for the newly created connection. + ConnectionProperties *ConnectionProperties `type:"structure"` + // The status of the connection. ConnectionStatus *OutboundConnectionStatus `type:"structure"` @@ -8092,6 +7979,18 @@ func (s *CreateOutboundConnectionOutput) SetConnectionId(v string) *CreateOutbou return s } +// SetConnectionMode sets the ConnectionMode field's value. +func (s *CreateOutboundConnectionOutput) SetConnectionMode(v string) *CreateOutboundConnectionOutput { + s.ConnectionMode = &v + return s +} + +// SetConnectionProperties sets the ConnectionProperties field's value. +func (s *CreateOutboundConnectionOutput) SetConnectionProperties(v *ConnectionProperties) *CreateOutboundConnectionOutput { + s.ConnectionProperties = v + return s +} + // SetConnectionStatus sets the ConnectionStatus field's value. func (s *CreateOutboundConnectionOutput) SetConnectionStatus(v *OutboundConnectionStatus) *CreateOutboundConnectionOutput { s.ConnectionStatus = v @@ -10138,8 +10037,7 @@ func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *Describe return s } -// An error occured because the client wanted to access a not supported operation. -// Gives http status code of 409. +// An error occured because the client wanted to access an unsupported operation. type DisabledOperationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12000,6 +11898,9 @@ type InboundConnection struct { // The unique identifier of the connection. ConnectionId *string `min:"10" type:"string"` + // The connection mode. + ConnectionMode *string `type:"string" enum:"ConnectionMode"` + // The current status of the connection. ConnectionStatus *InboundConnectionStatus `type:"structure"` @@ -12034,6 +11935,12 @@ func (s *InboundConnection) SetConnectionId(v string) *InboundConnection { return s } +// SetConnectionMode sets the ConnectionMode field's value. +func (s *InboundConnection) SetConnectionMode(v string) *InboundConnection { + s.ConnectionMode = &v + return s +} + // SetConnectionStatus sets the ConnectionStatus field's value. func (s *InboundConnection) SetConnectionStatus(v *InboundConnectionStatus) *InboundConnection { s.ConnectionStatus = v @@ -12275,9 +12182,8 @@ func (s *InstanceTypeDetails) SetWarmEnabled(v bool) *InstanceTypeDetails { return s } -// The request processing has failed because of an unknown error, exception -// or failure (the failure is internal to the service) . Gives http status code -// of 500. +// Request processing failed because of an unknown error, exception, or internal +// failure. type InternalException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12341,8 +12247,8 @@ func (s *InternalException) RequestID() string { return s.RespMetadata.RequestID } -// The request processing has failed because of invalid pagination token provided -// by customer. Returns an HTTP status code of 400. +// The request processing has failed because you provided an invalid pagination +// token. type InvalidPaginationTokenException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12406,8 +12312,8 @@ func (s *InvalidPaginationTokenException) RequestID() string { return s.RespMetadata.RequestID } -// An exception for trying to create or access sub-resource that is either invalid -// or not supported. Gives http status code of 409. +// An exception for trying to create or access a sub-resource that's either +// invalid or not supported. type InvalidTypeException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12471,8 +12377,8 @@ func (s *InvalidTypeException) RequestID() string { return s.RespMetadata.RequestID } -// An exception for trying to create more than allowed resources or sub-resources. -// Gives http status code of 409. +// An exception for trying to create more than the allowed number of resources +// or sub-resources. type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -13814,6 +13720,12 @@ type OutboundConnection struct { // Unique identifier of the connection. ConnectionId *string `min:"10" type:"string"` + // The connection mode. + ConnectionMode *string `type:"string" enum:"ConnectionMode"` + + // Properties for the outbound connection. + ConnectionProperties *ConnectionProperties `type:"structure"` + // Status of the connection. ConnectionStatus *OutboundConnectionStatus `type:"structure"` @@ -13854,6 +13766,18 @@ func (s *OutboundConnection) SetConnectionId(v string) *OutboundConnection { return s } +// SetConnectionMode sets the ConnectionMode field's value. +func (s *OutboundConnection) SetConnectionMode(v string) *OutboundConnection { + s.ConnectionMode = &v + return s +} + +// SetConnectionProperties sets the ConnectionProperties field's value. +func (s *OutboundConnection) SetConnectionProperties(v *ConnectionProperties) *OutboundConnection { + s.ConnectionProperties = v + return s +} + // SetConnectionStatus sets the ConnectionStatus field's value. func (s *OutboundConnection) SetConnectionStatus(v *OutboundConnectionStatus) *OutboundConnection { s.ConnectionStatus = v @@ -14731,8 +14655,7 @@ func (s *ReservedInstanceOffering) SetUsagePrice(v float64) *ReservedInstanceOff return s } -// An exception for creating a resource that already exists. Gives http status -// code of 400. +// An exception for creating a resource that already exists. type ResourceAlreadyExistsException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -14796,8 +14719,7 @@ func (s *ResourceAlreadyExistsException) RequestID() string { return s.RespMetadata.RequestID } -// An exception for accessing or deleting a resource that does not exist. Gives -// http status code of 400. +// An exception for accessing or deleting a resource that doesn't exist. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -16693,8 +16615,7 @@ func (s *VPCOptions) SetSubnetIds(v []*string) *VPCOptions { return s } -// An exception for missing / invalid input fields. Gives http status code of -// 400. +// An exception for missing or invalid input fields. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -17145,6 +17066,28 @@ func AutoTuneType_Values() []string { } } +// The connection mode for the cross-cluster connection. +// +// - DIRECT - Used for cross-cluster search or cross-cluster replication. +// +// - VPC_ENDPOINT - Used for remote reindex between Amazon OpenSearch Service +// VPC domains. +const ( + // ConnectionModeDirect is a ConnectionMode enum value + ConnectionModeDirect = "DIRECT" + + // ConnectionModeVpcEndpoint is a ConnectionMode enum value + ConnectionModeVpcEndpoint = "VPC_ENDPOINT" +) + +// ConnectionMode_Values returns all elements of the ConnectionMode enum +func ConnectionMode_Values() []string { + return []string{ + ConnectionModeDirect, + ConnectionModeVpcEndpoint, + } +} + const ( // DeploymentStatusPendingUpdate is a DeploymentStatus enum value DeploymentStatusPendingUpdate = "PENDING_UPDATE" diff --git a/service/opensearchservice/errors.go b/service/opensearchservice/errors.go index e0247a5b1ba..ad37f3e6b9e 100644 --- a/service/opensearchservice/errors.go +++ b/service/opensearchservice/errors.go @@ -11,8 +11,7 @@ const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // - // An error occurred because user does not have permissions to access the resource. - // Returns HTTP status code 403. + // An error occurred because you don't have permissions to access the resource. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeBaseException for service response error code @@ -24,65 +23,60 @@ const ( // ErrCodeConflictException for service response error code // "ConflictException". // - // An error occurred because the client attempts to remove a resource that is - // currently in use. Returns HTTP status code 409. + // An error occurred because the client attempts to remove a resource that's + // currently in use. ErrCodeConflictException = "ConflictException" // ErrCodeDisabledOperationException for service response error code // "DisabledOperationException". // - // An error occured because the client wanted to access a not supported operation. - // Gives http status code of 409. + // An error occured because the client wanted to access an unsupported operation. ErrCodeDisabledOperationException = "DisabledOperationException" // ErrCodeInternalException for service response error code // "InternalException". // - // The request processing has failed because of an unknown error, exception - // or failure (the failure is internal to the service) . Gives http status code - // of 500. + // Request processing failed because of an unknown error, exception, or internal + // failure. ErrCodeInternalException = "InternalException" // ErrCodeInvalidPaginationTokenException for service response error code // "InvalidPaginationTokenException". // - // The request processing has failed because of invalid pagination token provided - // by customer. Returns an HTTP status code of 400. + // The request processing has failed because you provided an invalid pagination + // token. ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException" // ErrCodeInvalidTypeException for service response error code // "InvalidTypeException". // - // An exception for trying to create or access sub-resource that is either invalid - // or not supported. Gives http status code of 409. + // An exception for trying to create or access a sub-resource that's either + // invalid or not supported. ErrCodeInvalidTypeException = "InvalidTypeException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // - // An exception for trying to create more than allowed resources or sub-resources. - // Gives http status code of 409. + // An exception for trying to create more than the allowed number of resources + // or sub-resources. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeResourceAlreadyExistsException for service response error code // "ResourceAlreadyExistsException". // - // An exception for creating a resource that already exists. Gives http status - // code of 400. + // An exception for creating a resource that already exists. ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // - // An exception for accessing or deleting a resource that does not exist. Gives - // http status code of 400. + // An exception for accessing or deleting a resource that doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeValidationException for service response error code // "ValidationException". // - // An exception for missing / invalid input fields. Gives http status code of - // 400. + // An exception for missing or invalid input fields. ErrCodeValidationException = "ValidationException" ) diff --git a/service/polly/api.go b/service/polly/api.go index 8bd55e48e9b..d1eef682fc1 100644 --- a/service/polly/api.go +++ b/service/polly/api.go @@ -4376,6 +4376,12 @@ const ( // VoiceIdThiago is a VoiceId enum value VoiceIdThiago = "Thiago" + + // VoiceIdRuth is a VoiceId enum value + VoiceIdRuth = "Ruth" + + // VoiceIdStephen is a VoiceId enum value + VoiceIdStephen = "Stephen" ) // VoiceId_Values returns all elements of the VoiceId enum @@ -4465,5 +4471,7 @@ func VoiceId_Values() []string { VoiceIdRemi, VoiceIdAdriano, VoiceIdThiago, + VoiceIdRuth, + VoiceIdStephen, } } diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 76fd0350feb..bf2c6e4ea2d 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -33009,6 +33009,55 @@ func (s *BatchTransformInput_) SetStartTimeOffset(v string) *BatchTransformInput return s } +// A structure that keeps track of which training jobs launched by your hyperparameter +// tuning job are not improving model performance as evaluated against an objective +// function. +type BestObjectiveNotImproving struct { + _ struct{} `type:"structure"` + + // The number of training jobs that have failed to improve model performance + // by 1% or greater over prior training jobs as evaluated against an objective + // function. + MaxNumberOfTrainingJobsNotImproving *int64 `min:"3" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BestObjectiveNotImproving) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BestObjectiveNotImproving) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BestObjectiveNotImproving) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BestObjectiveNotImproving"} + if s.MaxNumberOfTrainingJobsNotImproving != nil && *s.MaxNumberOfTrainingJobsNotImproving < 3 { + invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobsNotImproving", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxNumberOfTrainingJobsNotImproving sets the MaxNumberOfTrainingJobsNotImproving field's value. +func (s *BestObjectiveNotImproving) SetMaxNumberOfTrainingJobsNotImproving(v int64) *BestObjectiveNotImproving { + s.MaxNumberOfTrainingJobsNotImproving = &v + return s +} + // Contains bias metrics for a model. type Bias struct { _ struct{} `type:"structure"` @@ -35781,6 +35830,40 @@ func (s *ContinuousParameterRangeSpecification) SetMinValue(v string) *Continuou return s } +// A flag to indicating that automatic model tuning (AMT) has detected model +// convergence, defined as a lack of significant improvement (1% or less) against +// an objective metric. +type ConvergenceDetected struct { + _ struct{} `type:"structure"` + + // A flag to stop a tuning job once AMT has detected that the job has converged. + CompleteOnConvergence *string `type:"string" enum:"CompleteOnConvergence"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConvergenceDetected) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConvergenceDetected) GoString() string { + return s.String() +} + +// SetCompleteOnConvergence sets the CompleteOnConvergence field's value. +func (s *ConvergenceDetected) SetCompleteOnConvergence(v string) *ConvergenceDetected { + s.CompleteOnConvergence = &v + return s +} + type CreateActionInput struct { _ struct{} `type:"structure"` @@ -55695,6 +55778,9 @@ type DescribeHyperParameterTuningJobOutput struct { // with the best current HyperParameterTuningJobObjective. BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` + // The total resources consumed by your hyperparameter tuning job. + ConsumedResources *HyperParameterTuningJobConsumedResources `type:"structure"` + // The date and time that the tuning job started. // // CreationTime is a required field @@ -55758,6 +55844,12 @@ type DescribeHyperParameterTuningJobOutput struct { // TrainingJobStatusCounters is a required field TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` + // Tuning job completion information returned as the response from a hyperparameter + // tuning job. This information tells if your tuning job has or has not converged. + // It also includes the number of training jobs that have not improved model + // performance as evaluated against the objective function. + TuningJobCompletionDetails *HyperParameterTuningJobCompletionDetails `type:"structure"` + // The configuration for starting the hyperparameter parameter tuning job using // one or more previous tuning jobs as a starting point. The results of previous // tuning jobs are used to inform which combinations of hyperparameters to search @@ -55789,6 +55881,12 @@ func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParam return s } +// SetConsumedResources sets the ConsumedResources field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetConsumedResources(v *HyperParameterTuningJobConsumedResources) *DescribeHyperParameterTuningJobOutput { + s.ConsumedResources = v + return s +} + // SetCreationTime sets the CreationTime field's value. func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput { s.CreationTime = &v @@ -55867,6 +55965,12 @@ func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v * return s } +// SetTuningJobCompletionDetails sets the TuningJobCompletionDetails field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetTuningJobCompletionDetails(v *HyperParameterTuningJobCompletionDetails) *DescribeHyperParameterTuningJobOutput { + s.TuningJobCompletionDetails = v + return s +} + // SetWarmStartConfig sets the WarmStartConfig field's value. func (s *DescribeHyperParameterTuningJobOutput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *DescribeHyperParameterTuningJobOutput { s.WarmStartConfig = v @@ -70226,6 +70330,52 @@ func (s *HyperParameterTuningInstanceConfig) SetVolumeSizeInGB(v int64) *HyperPa return s } +// A structure that contains runtime information about both current and completed +// hyperparameter tuning jobs. +type HyperParameterTuningJobCompletionDetails struct { + _ struct{} `type:"structure"` + + // The time in timestamp format that AMT detected model convergence, as defined + // by a lack of significant improvement over time based on criteria developed + // over a wide range of diverse benchmarking tests. + ConvergenceDetectedTime *time.Time `type:"timestamp"` + + // The number of training jobs launched by a tuning job that are not improving + // (1% or less) as measured by model performance evaluated against an objective + // function. + NumberOfTrainingJobsObjectiveNotImproving *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s HyperParameterTuningJobCompletionDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s HyperParameterTuningJobCompletionDetails) GoString() string { + return s.String() +} + +// SetConvergenceDetectedTime sets the ConvergenceDetectedTime field's value. +func (s *HyperParameterTuningJobCompletionDetails) SetConvergenceDetectedTime(v time.Time) *HyperParameterTuningJobCompletionDetails { + s.ConvergenceDetectedTime = &v + return s +} + +// SetNumberOfTrainingJobsObjectiveNotImproving sets the NumberOfTrainingJobsObjectiveNotImproving field's value. +func (s *HyperParameterTuningJobCompletionDetails) SetNumberOfTrainingJobsObjectiveNotImproving(v int64) *HyperParameterTuningJobCompletionDetails { + s.NumberOfTrainingJobsObjectiveNotImproving = &v + return s +} + // Configures a hyperparameter tuning job. type HyperParameterTuningJobConfig struct { _ struct{} `type:"structure"` @@ -70391,6 +70541,38 @@ func (s *HyperParameterTuningJobConfig) SetTuningJobCompletionCriteria(v *Tuning return s } +// The total resources consumed by your hyperparameter tuning job. +type HyperParameterTuningJobConsumedResources struct { + _ struct{} `type:"structure"` + + // The wall clock runtime in seconds used by your hyperparameter tuning job. + RuntimeInSeconds *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s HyperParameterTuningJobConsumedResources) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s HyperParameterTuningJobConsumedResources) GoString() string { + return s.String() +} + +// SetRuntimeInSeconds sets the RuntimeInSeconds field's value. +func (s *HyperParameterTuningJobConsumedResources) SetRuntimeInSeconds(v int64) *HyperParameterTuningJobConsumedResources { + s.RuntimeInSeconds = &v + return s +} + // Defines the objective metric for a hyperparameter tuning job. Hyperparameter // tuning uses the value of this metric to evaluate the training jobs it launches, // and returns the training job that results in either the highest or lowest @@ -70466,6 +70648,9 @@ type HyperParameterTuningJobSearchEntity struct { // The container for the summary information about a training job. BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` + // The total amount of resources consumed by a hyperparameter tuning job. + ConsumedResources *HyperParameterTuningJobConsumedResources `type:"structure"` + // The time that a hyperparameter tuning job was created. CreationTime *time.Time `type:"timestamp"` @@ -70514,6 +70699,9 @@ type HyperParameterTuningJobSearchEntity struct { // by status. TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure"` + // Information about either a current or completed hyperparameter tuning job. + TuningJobCompletionDetails *HyperParameterTuningJobCompletionDetails `type:"structure"` + // Specifies the configuration for a hyperparameter tuning job that uses one // or more previous hyperparameter tuning jobs as a starting point. The results // of previous tuning jobs are used to inform which combinations of hyperparameters @@ -70555,6 +70743,12 @@ func (s *HyperParameterTuningJobSearchEntity) SetBestTrainingJob(v *HyperParamet return s } +// SetConsumedResources sets the ConsumedResources field's value. +func (s *HyperParameterTuningJobSearchEntity) SetConsumedResources(v *HyperParameterTuningJobConsumedResources) *HyperParameterTuningJobSearchEntity { + s.ConsumedResources = v + return s +} + // SetCreationTime sets the CreationTime field's value. func (s *HyperParameterTuningJobSearchEntity) SetCreationTime(v time.Time) *HyperParameterTuningJobSearchEntity { s.CreationTime = &v @@ -70639,6 +70833,12 @@ func (s *HyperParameterTuningJobSearchEntity) SetTrainingJobStatusCounters(v *Tr return s } +// SetTuningJobCompletionDetails sets the TuningJobCompletionDetails field's value. +func (s *HyperParameterTuningJobSearchEntity) SetTuningJobCompletionDetails(v *HyperParameterTuningJobCompletionDetails) *HyperParameterTuningJobSearchEntity { + s.TuningJobCompletionDetails = v + return s +} + // SetWarmStartConfig sets the WarmStartConfig field's value. func (s *HyperParameterTuningJobSearchEntity) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *HyperParameterTuningJobSearchEntity { s.WarmStartConfig = v @@ -99508,6 +99708,10 @@ type ResourceLimits struct { // // MaxParallelTrainingJobs is a required field MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"` + + // The maximum time in seconds that a training job launched by a hyperparameter + // tuning job can run. + MaxRuntimeInSeconds *int64 `min:"120" type:"integer"` } // String returns the string representation. @@ -99540,6 +99744,9 @@ func (s *ResourceLimits) Validate() error { if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1)) } + if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 120 { + invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 120)) + } if invalidParams.Len() > 0 { return invalidParams @@ -99559,6 +99766,12 @@ func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { return s } +// SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. +func (s *ResourceLimits) SetMaxRuntimeInSeconds(v int64) *ResourceLimits { + s.MaxRuntimeInSeconds = &v + return s +} + // Resource being access is not found. type ResourceNotFound struct { _ struct{} `type:"structure"` @@ -107283,10 +107496,17 @@ func (s *TrialSummary) SetTrialSource(v *TrialSource) *TrialSummary { type TuningJobCompletionCriteria struct { _ struct{} `type:"structure"` + // A flag to stop your hyperparameter tuning job if model performance fails + // to improve as evaluated against an objective function. + BestObjectiveNotImproving *BestObjectiveNotImproving `type:"structure"` + + // A flag to top your hyperparameter tuning job if automatic model tuning (AMT) + // has detected that your model has converged as evaluated against your objective + // function. + ConvergenceDetected *ConvergenceDetected `type:"structure"` + // The value of the objective metric. - // - // TargetObjectiveMetricValue is a required field - TargetObjectiveMetricValue *float64 `type:"float" required:"true"` + TargetObjectiveMetricValue *float64 `type:"float"` } // String returns the string representation. @@ -107310,8 +107530,10 @@ func (s TuningJobCompletionCriteria) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *TuningJobCompletionCriteria) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TuningJobCompletionCriteria"} - if s.TargetObjectiveMetricValue == nil { - invalidParams.Add(request.NewErrParamRequired("TargetObjectiveMetricValue")) + if s.BestObjectiveNotImproving != nil { + if err := s.BestObjectiveNotImproving.Validate(); err != nil { + invalidParams.AddNested("BestObjectiveNotImproving", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -107320,6 +107542,18 @@ func (s *TuningJobCompletionCriteria) Validate() error { return nil } +// SetBestObjectiveNotImproving sets the BestObjectiveNotImproving field's value. +func (s *TuningJobCompletionCriteria) SetBestObjectiveNotImproving(v *BestObjectiveNotImproving) *TuningJobCompletionCriteria { + s.BestObjectiveNotImproving = v + return s +} + +// SetConvergenceDetected sets the ConvergenceDetected field's value. +func (s *TuningJobCompletionCriteria) SetConvergenceDetected(v *ConvergenceDetected) *TuningJobCompletionCriteria { + s.ConvergenceDetected = v + return s +} + // SetTargetObjectiveMetricValue sets the TargetObjectiveMetricValue field's value. func (s *TuningJobCompletionCriteria) SetTargetObjectiveMetricValue(v float64) *TuningJobCompletionCriteria { s.TargetObjectiveMetricValue = &v @@ -114181,6 +114415,22 @@ func CompilationJobStatus_Values() []string { } } +const ( + // CompleteOnConvergenceDisabled is a CompleteOnConvergence enum value + CompleteOnConvergenceDisabled = "Disabled" + + // CompleteOnConvergenceEnabled is a CompleteOnConvergence enum value + CompleteOnConvergenceEnabled = "Enabled" +) + +// CompleteOnConvergence_Values returns all elements of the CompleteOnConvergence enum +func CompleteOnConvergence_Values() []string { + return []string{ + CompleteOnConvergenceDisabled, + CompleteOnConvergenceEnabled, + } +} + const ( // CompressionTypeNone is a CompressionType enum value CompressionTypeNone = "None" @@ -115082,7 +115332,7 @@ func HyperParameterTuningJobStatus_Values() []string { } // The strategy hyperparameter tuning uses to find the best combination of hyperparameters -// for your model. Currently, the only supported value is Bayesian. +// for your model. const ( // HyperParameterTuningJobStrategyTypeBayesian is a HyperParameterTuningJobStrategyType enum value HyperParameterTuningJobStrategyTypeBayesian = "Bayesian" diff --git a/service/securityhub/api.go b/service/securityhub/api.go index 5dd0a87d76f..f390859909b 100644 --- a/service/securityhub/api.go +++ b/service/securityhub/api.go @@ -6927,6 +6927,42 @@ func (s *AdminAccount) SetStatus(v string) *AdminAccount { return s } +// Information about an enabled security standard in which a security control +// is enabled. +type AssociatedStandard struct { + _ struct{} `type:"structure"` + + // The unique identifier of a standard in which a control is enabled. This field + // consists of the resource portion of the Amazon Resource Name (ARN) returned + // for a standard in the DescribeStandards (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_DescribeStandards.html) + // API response. + StandardsId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatedStandard) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatedStandard) GoString() string { + return s.String() +} + +// SetStandardsId sets the StandardsId field's value. +func (s *AssociatedStandard) SetStandardsId(v string) *AssociatedStandard { + s.StandardsId = &v + return s +} + // Information about an Availability Zone. type AvailabilityZone struct { _ struct{} `type:"structure"` @@ -33696,7 +33732,7 @@ type AwsSageMakerNotebookInstanceDetails struct { // An array of up to three Git repositories associated with the notebook instance. // These can be either the names of Git repositories stored as resources in - // your account, or the URL of Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // your account, or the URL of Git repositories in CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same // level as the default repository of your notebook instance. For more information, // see Associating Git repositories with SageMaker notebook instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html) @@ -33705,7 +33741,7 @@ type AwsSageMakerNotebookInstanceDetails struct { // The Git repository associated with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource - // in your account, or the URL of a Git repository in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // in your account, or the URL of a Git repository in CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. When you open a notebook instance, it opens // in the directory that contains this repository. For more information, see // Associating Git repositories with SageMaker notebook instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html) @@ -34677,6 +34713,16 @@ type AwsSecurityFindingFilters struct { // that generates findings. CompanyName []*StringFilter `type:"list"` + // The unique identifier of a standard in which a control is enabled. This field + // consists of the resource portion of the Amazon Resource Name (ARN) returned + // for a standard in the DescribeStandards (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_DescribeStandards.html) + // API response. + ComplianceAssociatedStandardsId []*StringFilter `type:"list"` + + // The unique identifier of a control across standards. Values for this field + // typically consist of an Amazon Web Service and a number, such as APIGateway.5. + ComplianceSecurityControlId []*StringFilter `type:"list"` + // Exclusive to findings that are generated as the result of a check run against // a specific rule in a supported standard, such as CIS Amazon Web Services // Foundations. Contains security standard-related finding details. @@ -35065,6 +35111,18 @@ func (s *AwsSecurityFindingFilters) SetCompanyName(v []*StringFilter) *AwsSecuri return s } +// SetComplianceAssociatedStandardsId sets the ComplianceAssociatedStandardsId field's value. +func (s *AwsSecurityFindingFilters) SetComplianceAssociatedStandardsId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ComplianceAssociatedStandardsId = v + return s +} + +// SetComplianceSecurityControlId sets the ComplianceSecurityControlId field's value. +func (s *AwsSecurityFindingFilters) SetComplianceSecurityControlId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ComplianceSecurityControlId = v + return s +} + // SetComplianceStatus sets the ComplianceStatus field's value. func (s *AwsSecurityFindingFilters) SetComplianceStatus(v []*StringFilter) *AwsSecurityFindingFilters { s.ComplianceStatus = v @@ -37858,8 +37916,8 @@ func (s *AwsWafv2RulesActionDetails) SetCount(v *AwsWafv2RulesActionCountDetails // Provides details about rules in a rule group. A rule identifies web requests // that you want to allow, block, or count. Each rule includes one top-level -// Statement that AWS WAF uses to identify matching web requests, and parameters -// that govern how AWS WAF handles them. +// Statement that WAF uses to identify matching web requests, and parameters +// that govern how WAF handles them. type AwsWafv2RulesDetails struct { _ struct{} `type:"structure"` @@ -39188,11 +39246,18 @@ func (s *ClassificationStatus) SetReason(v string) *ClassificationStatus { type Compliance struct { _ struct{} `type:"structure"` + // The enabled security standards in which a security control is currently enabled. + AssociatedStandards []*AssociatedStandard `type:"list"` + // For a control, the industry or regulatory framework requirements that are // related to the control. The check for that control is aligned with these // requirements. RelatedRequirements []*string `type:"list"` + // The unique identifier of a control across standards. Values for this field + // typically consist of an Amazon Web Service and a number, such as APIGateway.5. + SecurityControlId *string `type:"string"` + // The result of a standards check. // // The valid values for Status are as follows. @@ -39251,12 +39316,24 @@ func (s *Compliance) Validate() error { return nil } +// SetAssociatedStandards sets the AssociatedStandards field's value. +func (s *Compliance) SetAssociatedStandards(v []*AssociatedStandard) *Compliance { + s.AssociatedStandards = v + return s +} + // SetRelatedRequirements sets the RelatedRequirements field's value. func (s *Compliance) SetRelatedRequirements(v []*string) *Compliance { s.RelatedRequirements = v return s } +// SetSecurityControlId sets the SecurityControlId field's value. +func (s *Compliance) SetSecurityControlId(v string) *Compliance { + s.SecurityControlId = &v + return s +} + // SetStatus sets the Status field's value. func (s *Compliance) SetStatus(v string) *Compliance { s.Status = &v @@ -44761,26 +44838,26 @@ type Member struct { // // The status can have one of the following values: // - // * CREATED - Indicates that the administrator account added the member + // * Created - Indicates that the administrator account added the member // account, but has not yet invited the member account. // - // * INVITED - Indicates that the administrator account invited the member + // * Invited - Indicates that the administrator account invited the member // account. The member account has not yet responded to the invitation. // - // * ENABLED - Indicates that the member account is currently active. For + // * Enabled - Indicates that the member account is currently active. For // manually invited member accounts, indicates that the member account accepted // the invitation. // - // * REMOVED - Indicates that the administrator account disassociated the + // * Removed - Indicates that the administrator account disassociated the // member account. // - // * RESIGNED - Indicates that the member account disassociated themselves + // * Resigned - Indicates that the member account disassociated themselves // from the administrator account. // - // * DELETED - Indicates that the administrator account deleted the member + // * Deleted - Indicates that the administrator account deleted the member // account. // - // * ACCOUNT_SUSPENDED - Indicates that an organization account was suspended + // * AccountSuspended - Indicates that an organization account was suspended // from Amazon Web Services at the same time that the administrator account // tried to enable the organization account as a member account. MemberStatus *string `type:"string"`