From 61e102a192883b19fdc5b2818bf21c0324417b05 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Wed, 23 Aug 2023 18:43:05 +0000 Subject: [PATCH] Regenerated Clients --- .../0561f5a56de9471886bf8d3f0abb0063.json | 8 + .../6a5102e69c1b4d5bb99aed2a9092f74e.json | 8 + .../d8d91b7c4b06408b91aee5daa799d879.json | 8 + config/resolve_credentials_test.go | 2 +- service/apigateway/api_op_CreateApiKey.go | 8 +- service/apigateway/api_op_CreateDomainName.go | 23 ++- service/apigateway/api_op_CreateRestApi.go | 5 +- service/apigateway/api_op_CreateUsagePlan.go | 4 +- service/apigateway/api_op_CreateVpcLink.go | 6 +- service/apigateway/api_op_GetApiKey.go | 4 +- service/apigateway/api_op_GetApiKeys.go | 4 +- service/apigateway/api_op_GetDomainName.go | 11 +- service/apigateway/api_op_GetIntegration.go | 26 +-- .../api_op_GetIntegrationResponse.go | 5 +- service/apigateway/api_op_GetRestApi.go | 3 + service/apigateway/api_op_GetUsagePlan.go | 4 +- service/apigateway/api_op_GetVpcLink.go | 3 +- .../api_op_ImportDocumentationParts.go | 6 +- service/apigateway/api_op_ImportRestApi.go | 7 +- service/apigateway/api_op_PutIntegration.go | 26 +-- .../api_op_PutIntegrationResponse.go | 5 +- service/apigateway/api_op_PutRestApi.go | 3 + .../apigateway/api_op_TestInvokeAuthorizer.go | 2 +- service/apigateway/api_op_TestInvokeMethod.go | 2 +- service/apigateway/api_op_UpdateApiKey.go | 4 +- .../api_op_UpdateDocumentationVersion.go | 2 +- service/apigateway/api_op_UpdateDomainName.go | 11 +- .../apigateway/api_op_UpdateIntegration.go | 26 +-- .../api_op_UpdateIntegrationResponse.go | 5 +- service/apigateway/api_op_UpdateRestApi.go | 3 + service/apigateway/api_op_UpdateUsagePlan.go | 4 +- service/apigateway/api_op_UpdateVpcLink.go | 3 +- service/apigateway/deserializers.go | 54 +++++ service/apigateway/doc.go | 2 +- service/apigateway/endpoints_test.go | 194 +++++++++++++----- service/apigateway/types/types.go | 97 ++++----- .../backup/internal/endpoints/endpoints.go | 3 + service/batch/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../outposts/internal/endpoints/endpoints.go | 6 + service/polly/types/enums.go | 2 + 41 files changed, 407 insertions(+), 198 deletions(-) create mode 100644 .changelog/0561f5a56de9471886bf8d3f0abb0063.json create mode 100644 .changelog/6a5102e69c1b4d5bb99aed2a9092f74e.json create mode 100644 .changelog/d8d91b7c4b06408b91aee5daa799d879.json diff --git a/.changelog/0561f5a56de9471886bf8d3f0abb0063.json b/.changelog/0561f5a56de9471886bf8d3f0abb0063.json new file mode 100644 index 00000000000..aa59490f16a --- /dev/null +++ b/.changelog/0561f5a56de9471886bf8d3f0abb0063.json @@ -0,0 +1,8 @@ +{ + "id": "0561f5a5-6de9-4718-86bf-8d3f0abb0063", + "type": "feature", + "description": "This release adds RootResourceId to GetRestApi response.", + "modules": [ + "service/apigateway" + ] +} \ No newline at end of file diff --git a/.changelog/6a5102e69c1b4d5bb99aed2a9092f74e.json b/.changelog/6a5102e69c1b4d5bb99aed2a9092f74e.json new file mode 100644 index 00000000000..e880d18bb64 --- /dev/null +++ b/.changelog/6a5102e69c1b4d5bb99aed2a9092f74e.json @@ -0,0 +1,8 @@ +{ + "id": "6a5102e6-9c1b-4d5b-b99a-ed2a9092f74e", + "type": "feature", + "description": "Marking fields as sensitive on BundleTask and GetPasswordData", + "modules": [ + "service/ec2" + ] +} \ No newline at end of file diff --git a/.changelog/d8d91b7c4b06408b91aee5daa799d879.json b/.changelog/d8d91b7c4b06408b91aee5daa799d879.json new file mode 100644 index 00000000000..0e66621beda --- /dev/null +++ b/.changelog/d8d91b7c4b06408b91aee5daa799d879.json @@ -0,0 +1,8 @@ +{ + "id": "d8d91b7c-4b06-408b-91ae-e5daa799d879", + "type": "feature", + "description": "Amazon Polly adds 1 new voice - Zayd (ar-AE)", + "modules": [ + "service/polly" + ] +} \ No newline at end of file diff --git a/config/resolve_credentials_test.go b/config/resolve_credentials_test.go index 3e128966d9c..1b155572c93 100644 --- a/config/resolve_credentials_test.go +++ b/config/resolve_credentials_test.go @@ -577,7 +577,7 @@ func TestResolveCredentialsIMDSClient(t *testing.T) { opts := []func(*LoadOptions) error{ WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }), WithHTTPClient(httpClient), - // separate from the local config, should it exist - the default loader will ignore nonexistent profiles + // separate from the local config, should it exist - the default loader will ignore nonexistent profiles WithSharedConfigProfile(" "), WithSharedConfigFiles([]string{}), } diff --git a/service/apigateway/api_op_CreateApiKey.go b/service/apigateway/api_op_CreateApiKey.go index 763d86450a3..ec03b8e17d2 100644 --- a/service/apigateway/api_op_CreateApiKey.go +++ b/service/apigateway/api_op_CreateApiKey.go @@ -36,8 +36,8 @@ func (c *Client) CreateApiKey(ctx context.Context, params *CreateApiKeyInput, op // Request to create an ApiKey resource. type CreateApiKeyInput struct { - // An AWS Marketplace customer identifier , when integrating with the AWS SaaS - // Marketplace. + // An Amazon Web Services Marketplace customer identifier, when integrating with + // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the ApiKey. @@ -76,8 +76,8 @@ type CreateApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time - // An AWS Marketplace customer identifier , when integrating with the AWS SaaS - // Marketplace. + // An Amazon Web Services Marketplace customer identifier, when integrating with + // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. diff --git a/service/apigateway/api_op_CreateDomainName.go b/service/apigateway/api_op_CreateDomainName.go index c15c93faf92..c77e802cb49 100644 --- a/service/apigateway/api_op_CreateDomainName.go +++ b/service/apigateway/api_op_CreateDomainName.go @@ -41,9 +41,9 @@ type CreateDomainNameInput struct { // This member is required. DomainName *string - // The reference to an AWS-managed certificate that will be used by edge-optimized - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by edge-optimized endpoint for this domain name. Certificate Manager is the only + // supported source. CertificateArn *string // [Deprecated] The body of the server certificate that will be used by @@ -82,9 +82,9 @@ type CreateDomainNameInput struct { // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string - // The reference to an AWS-managed certificate that will be used by regional - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by regional endpoint for this domain name. Certificate Manager is the only + // supported source. RegionalCertificateArn *string // The user-friendly name of the certificate that will be used by regional @@ -107,9 +107,9 @@ type CreateDomainNameInput struct { // (RestApi). type CreateDomainNameOutput struct { - // The reference to an AWS-managed certificate that will be used by edge-optimized - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by edge-optimized endpoint for this domain name. Certificate Manager is the only + // supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint for @@ -160,8 +160,9 @@ type CreateDomainNameOutput struct { // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string - // The reference to an AWS-managed certificate that will be used for validating - // the regional domain name. AWS Certificate Manager is the only supported source. + // The reference to an Amazon Web Services-managed certificate that will be used + // for validating the regional domain name. Certificate Manager is the only + // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional diff --git a/service/apigateway/api_op_CreateRestApi.go b/service/apigateway/api_op_CreateRestApi.go index aa88d26ed38..e80c8973b59 100644 --- a/service/apigateway/api_op_CreateRestApi.go +++ b/service/apigateway/api_op_CreateRestApi.go @@ -42,7 +42,7 @@ type CreateRestApiInput struct { Name *string // The source of the API key for metering requests according to a usage plan. - // Valid values are: > HEADER to read the API key from the X-API-Key header of a + // Valid values are: HEADER to read the API key from the X-API-Key header of a // request. AUTHORIZER to read the API key from the UsageIdentifierKey from a // custom authorizer. ApiKeySource types.ApiKeySourceType @@ -138,6 +138,9 @@ type CreateRestApiOutput struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string diff --git a/service/apigateway/api_op_CreateUsagePlan.go b/service/apigateway/api_op_CreateUsagePlan.go index 2ead6a0a993..c2bea13f1b4 100644 --- a/service/apigateway/api_op_CreateUsagePlan.go +++ b/service/apigateway/api_op_CreateUsagePlan.go @@ -83,8 +83,8 @@ type CreateUsagePlanOutput struct { // The name of a usage plan. Name *string - // The AWS Markeplace product identifier to associate with the usage plan as a - // SaaS product on AWS Marketplace. + // The Amazon Web Services Marketplace product identifier to associate with the + // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. diff --git a/service/apigateway/api_op_CreateVpcLink.go b/service/apigateway/api_op_CreateVpcLink.go index 8407beb5969..45eb47c5ddf 100644 --- a/service/apigateway/api_op_CreateVpcLink.go +++ b/service/apigateway/api_op_CreateVpcLink.go @@ -47,7 +47,8 @@ type CreateVpcLinkInput struct { Name *string // The ARN of the network load balancer of the VPC targeted by the VPC link. The - // network load balancer must be owned by the same AWS account of the API owner. + // network load balancer must be owned by the same Amazon Web Services account of + // the API owner. // // This member is required. TargetArns []string @@ -89,7 +90,8 @@ type CreateVpcLinkOutput struct { Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The - // network load balancer must be owned by the same AWS account of the API owner. + // network load balancer must be owned by the same Amazon Web Services account of + // the API owner. TargetArns []string // Metadata pertaining to the operation's result. diff --git a/service/apigateway/api_op_GetApiKey.go b/service/apigateway/api_op_GetApiKey.go index fb27fa07ab9..fd7f88263d0 100644 --- a/service/apigateway/api_op_GetApiKey.go +++ b/service/apigateway/api_op_GetApiKey.go @@ -56,8 +56,8 @@ type GetApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time - // An AWS Marketplace customer identifier , when integrating with the AWS SaaS - // Marketplace. + // An Amazon Web Services Marketplace customer identifier, when integrating with + // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. diff --git a/service/apigateway/api_op_GetApiKeys.go b/service/apigateway/api_op_GetApiKeys.go index ee863b52a0d..81748f5b686 100644 --- a/service/apigateway/api_op_GetApiKeys.go +++ b/service/apigateway/api_op_GetApiKeys.go @@ -35,8 +35,8 @@ func (c *Client) GetApiKeys(ctx context.Context, params *GetApiKeysInput, optFns // A request to get information about the current ApiKeys resource. type GetApiKeysInput struct { - // The identifier of a customer in AWS Marketplace or an external system, such as - // a developer portal. + // The identifier of a customer in Amazon Web Services Marketplace or an external + // system, such as a developer portal. CustomerId *string // A boolean flag to specify whether ( true ) or not ( false ) the result contains diff --git a/service/apigateway/api_op_GetDomainName.go b/service/apigateway/api_op_GetDomainName.go index 619ac58f87a..5a09a50e403 100644 --- a/service/apigateway/api_op_GetDomainName.go +++ b/service/apigateway/api_op_GetDomainName.go @@ -49,9 +49,9 @@ type GetDomainNameInput struct { // (RestApi). type GetDomainNameOutput struct { - // The reference to an AWS-managed certificate that will be used by edge-optimized - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by edge-optimized endpoint for this domain name. Certificate Manager is the only + // supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint for @@ -102,8 +102,9 @@ type GetDomainNameOutput struct { // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string - // The reference to an AWS-managed certificate that will be used for validating - // the regional domain name. AWS Certificate Manager is the only supported source. + // The reference to an Amazon Web Services-managed certificate that will be used + // for validating the regional domain name. Certificate Manager is the only + // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional diff --git a/service/apigateway/api_op_GetIntegration.go b/service/apigateway/api_op_GetIntegration.go index 01aaff09611..d05c7914a62 100644 --- a/service/apigateway/api_op_GetIntegration.go +++ b/service/apigateway/api_op_GetIntegration.go @@ -53,7 +53,7 @@ type GetIntegrationInput struct { noSmithyDocumentSerde } -// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. +// Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration. type GetIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid @@ -88,11 +88,14 @@ type GetIntegrationOutput struct { // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string - // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported AWS - // services, specify null. + // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon + // Web Services services, specify null. Credentials *string - // Specifies the integration's HTTP method type. + // Specifies the integration's HTTP method type. For the Type property, if you + // specify MOCK , this property is optional. For Lambda integrations, you must set + // the integration method to POST . For all other types, you must specify this + // property. HttpMethod *string // Specifies the integration's responses. @@ -148,10 +151,9 @@ type GetIntegrationOutput struct { // Specifies Uniform Resource Identifier (URI) of the integration endpoint. For // HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded - // HTTP(S) URL according to the RFC-3986 specification, for either standard - // integration, where connectionType is not VPC_LINK , or private integration, - // where connectionType is VPC_LINK . For a private HTTP integration, the URI is - // not used for routing. For AWS or AWS_PROXY integrations, the URI is of the form + // HTTP(S) URL according to the RFC-3986 specification for standard integrations. + // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For + // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} @@ -159,10 +161,10 @@ type GetIntegrationOutput struct { // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required - // input parameters. Alternatively, path can be used for an AWS service path-based - // API. The ensuing service_api refers to the path to an Amazon Web Services - // service resource, including the region of the integrated Amazon Web Services - // service, if applicable. For example, for integration with the S3 API of + // input parameters. Alternatively, path can be used for an Amazon Web Services + // service path-based API. The ensuing service_api refers to the path to an Amazon + // Web Services service resource, including the region of the integrated Amazon Web + // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} diff --git a/service/apigateway/api_op_GetIntegrationResponse.go b/service/apigateway/api_op_GetIntegrationResponse.go index 990cd09e962..d65005694b1 100644 --- a/service/apigateway/api_op_GetIntegrationResponse.go +++ b/service/apigateway/api_op_GetIntegrationResponse.go @@ -92,8 +92,9 @@ type GetIntegrationResponseOutput struct { // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the - // back end is an AWS Lambda function, the AWS Lambda function error header is - // matched. For all other HTTP and AWS back ends, the HTTP status code is matched. + // back end is an Lambda function, the Lambda function error header is matched. For + // all other HTTP and Amazon Web Services back ends, the HTTP status code is + // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an diff --git a/service/apigateway/api_op_GetRestApi.go b/service/apigateway/api_op_GetRestApi.go index afad8c3d2b7..a0adf406804 100644 --- a/service/apigateway/api_op_GetRestApi.go +++ b/service/apigateway/api_op_GetRestApi.go @@ -92,6 +92,9 @@ type GetRestApiOutput struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string diff --git a/service/apigateway/api_op_GetUsagePlan.go b/service/apigateway/api_op_GetUsagePlan.go index 0ca2844c935..2e51272ef0d 100644 --- a/service/apigateway/api_op_GetUsagePlan.go +++ b/service/apigateway/api_op_GetUsagePlan.go @@ -63,8 +63,8 @@ type GetUsagePlanOutput struct { // The name of a usage plan. Name *string - // The AWS Markeplace product identifier to associate with the usage plan as a - // SaaS product on AWS Marketplace. + // The Amazon Web Services Marketplace product identifier to associate with the + // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. diff --git a/service/apigateway/api_op_GetVpcLink.go b/service/apigateway/api_op_GetVpcLink.go index 166e150b68e..20f15c1f8ea 100644 --- a/service/apigateway/api_op_GetVpcLink.go +++ b/service/apigateway/api_op_GetVpcLink.go @@ -70,7 +70,8 @@ type GetVpcLinkOutput struct { Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The - // network load balancer must be owned by the same AWS account of the API owner. + // network load balancer must be owned by the same Amazon Web Services account of + // the API owner. TargetArns []string // Metadata pertaining to the operation's result. diff --git a/service/apigateway/api_op_ImportDocumentationParts.go b/service/apigateway/api_op_ImportDocumentationParts.go index 4087ac7243a..3e32c578ade 100644 --- a/service/apigateway/api_op_ImportDocumentationParts.go +++ b/service/apigateway/api_op_ImportDocumentationParts.go @@ -51,9 +51,9 @@ type ImportDocumentationPartsInput struct { // false . FailOnWarnings bool - // A query parameter to indicate whether to overwrite ( OVERWRITE ) any existing - // DocumentationParts definition or to merge ( MERGE ) the new definition into the - // existing one. The default value is MERGE . + // A query parameter to indicate whether to overwrite ( overwrite ) any existing + // DocumentationParts definition or to merge ( merge ) the new definition into the + // existing one. The default value is merge . Mode types.PutMode noSmithyDocumentSerde diff --git a/service/apigateway/api_op_ImportRestApi.go b/service/apigateway/api_op_ImportRestApi.go index 949006093c4..ca7b58d95c2 100644 --- a/service/apigateway/api_op_ImportRestApi.go +++ b/service/apigateway/api_op_ImportRestApi.go @@ -56,9 +56,7 @@ type ImportRestApiInput struct { // configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE , // endpointConfigurationTypes=REGIONAL , or endpointConfigurationTypes=PRIVATE . // The default endpoint type is EDGE . To handle imported basepath , set parameters - // as basepath=ignore , basepath=prepend or basepath=split . For example, the AWS - // CLI command to exclude documentation from the imported API is: The AWS CLI - // command to set the regional endpoint on the imported API is: + // as basepath=ignore , basepath=prepend or basepath=split . Parameters map[string]string noSmithyDocumentSerde @@ -112,6 +110,9 @@ type ImportRestApiOutput struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string diff --git a/service/apigateway/api_op_PutIntegration.go b/service/apigateway/api_op_PutIntegration.go index 1050782d1b2..87388daee89 100644 --- a/service/apigateway/api_op_PutIntegration.go +++ b/service/apigateway/api_op_PutIntegration.go @@ -141,7 +141,7 @@ type PutIntegrationInput struct { noSmithyDocumentSerde } -// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. +// Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration. type PutIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid @@ -176,11 +176,14 @@ type PutIntegrationOutput struct { // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string - // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported AWS - // services, specify null. + // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon + // Web Services services, specify null. Credentials *string - // Specifies the integration's HTTP method type. + // Specifies the integration's HTTP method type. For the Type property, if you + // specify MOCK , this property is optional. For Lambda integrations, you must set + // the integration method to POST . For all other types, you must specify this + // property. HttpMethod *string // Specifies the integration's responses. @@ -236,10 +239,9 @@ type PutIntegrationOutput struct { // Specifies Uniform Resource Identifier (URI) of the integration endpoint. For // HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded - // HTTP(S) URL according to the RFC-3986 specification, for either standard - // integration, where connectionType is not VPC_LINK , or private integration, - // where connectionType is VPC_LINK . For a private HTTP integration, the URI is - // not used for routing. For AWS or AWS_PROXY integrations, the URI is of the form + // HTTP(S) URL according to the RFC-3986 specification for standard integrations. + // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For + // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} @@ -247,10 +249,10 @@ type PutIntegrationOutput struct { // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required - // input parameters. Alternatively, path can be used for an AWS service path-based - // API. The ensuing service_api refers to the path to an Amazon Web Services - // service resource, including the region of the integrated Amazon Web Services - // service, if applicable. For example, for integration with the S3 API of + // input parameters. Alternatively, path can be used for an Amazon Web Services + // service path-based API. The ensuing service_api refers to the path to an Amazon + // Web Services service resource, including the region of the integrated Amazon Web + // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} diff --git a/service/apigateway/api_op_PutIntegrationResponse.go b/service/apigateway/api_op_PutIntegrationResponse.go index e7a8b199f11..929afb505e4 100644 --- a/service/apigateway/api_op_PutIntegrationResponse.go +++ b/service/apigateway/api_op_PutIntegrationResponse.go @@ -118,8 +118,9 @@ type PutIntegrationResponseOutput struct { // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the - // back end is an AWS Lambda function, the AWS Lambda function error header is - // matched. For all other HTTP and AWS back ends, the HTTP status code is matched. + // back end is an Lambda function, the Lambda function error header is matched. For + // all other HTTP and Amazon Web Services back ends, the HTTP status code is + // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an diff --git a/service/apigateway/api_op_PutRestApi.go b/service/apigateway/api_op_PutRestApi.go index d1730a745bf..a1afc467144 100644 --- a/service/apigateway/api_op_PutRestApi.go +++ b/service/apigateway/api_op_PutRestApi.go @@ -117,6 +117,9 @@ type PutRestApiOutput struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string diff --git a/service/apigateway/api_op_TestInvokeAuthorizer.go b/service/apigateway/api_op_TestInvokeAuthorizer.go index 8ee65c4e4e1..27332dd36dc 100644 --- a/service/apigateway/api_op_TestInvokeAuthorizer.go +++ b/service/apigateway/api_op_TestInvokeAuthorizer.go @@ -85,7 +85,7 @@ type TestInvokeAuthorizerOutput struct { // authorizer succeeded. ClientStatus int32 - // The execution latency of the test authorizer request. + // The execution latency, in ms, of the test authorizer request. Latency int64 // The API Gateway execution log for the test authorizer request. diff --git a/service/apigateway/api_op_TestInvokeMethod.go b/service/apigateway/api_op_TestInvokeMethod.go index 53a50b280ae..459b18311dc 100644 --- a/service/apigateway/api_op_TestInvokeMethod.go +++ b/service/apigateway/api_op_TestInvokeMethod.go @@ -85,7 +85,7 @@ type TestInvokeMethodOutput struct { // The headers of the HTTP response. Headers map[string]string - // The execution latency of the test invoke request. + // The execution latency, in ms, of the test invoke request. Latency int64 // The API Gateway execution log for the test invoke request. diff --git a/service/apigateway/api_op_UpdateApiKey.go b/service/apigateway/api_op_UpdateApiKey.go index 599c770497e..1fa8de8f23f 100644 --- a/service/apigateway/api_op_UpdateApiKey.go +++ b/service/apigateway/api_op_UpdateApiKey.go @@ -57,8 +57,8 @@ type UpdateApiKeyOutput struct { // The timestamp when the API Key was created. CreatedDate *time.Time - // An AWS Marketplace customer identifier , when integrating with the AWS SaaS - // Marketplace. + // An Amazon Web Services Marketplace customer identifier, when integrating with + // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. diff --git a/service/apigateway/api_op_UpdateDocumentationVersion.go b/service/apigateway/api_op_UpdateDocumentationVersion.go index 4bdf272e7d2..56fa57d4cc3 100644 --- a/service/apigateway/api_op_UpdateDocumentationVersion.go +++ b/service/apigateway/api_op_UpdateDocumentationVersion.go @@ -41,7 +41,7 @@ type UpdateDocumentationVersionInput struct { // This member is required. DocumentationVersion *string - // The string identifier of the associated RestApi.. + // The string identifier of the associated RestApi. // // This member is required. RestApiId *string diff --git a/service/apigateway/api_op_UpdateDomainName.go b/service/apigateway/api_op_UpdateDomainName.go index 5c3085cf8be..13b04be378e 100644 --- a/service/apigateway/api_op_UpdateDomainName.go +++ b/service/apigateway/api_op_UpdateDomainName.go @@ -52,9 +52,9 @@ type UpdateDomainNameInput struct { // (RestApi). type UpdateDomainNameOutput struct { - // The reference to an AWS-managed certificate that will be used by edge-optimized - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by edge-optimized endpoint for this domain name. Certificate Manager is the only + // supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint for @@ -105,8 +105,9 @@ type UpdateDomainNameOutput struct { // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string - // The reference to an AWS-managed certificate that will be used for validating - // the regional domain name. AWS Certificate Manager is the only supported source. + // The reference to an Amazon Web Services-managed certificate that will be used + // for validating the regional domain name. Certificate Manager is the only + // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional diff --git a/service/apigateway/api_op_UpdateIntegration.go b/service/apigateway/api_op_UpdateIntegration.go index df6b86ae79a..e55a5a67203 100644 --- a/service/apigateway/api_op_UpdateIntegration.go +++ b/service/apigateway/api_op_UpdateIntegration.go @@ -57,7 +57,7 @@ type UpdateIntegrationInput struct { noSmithyDocumentSerde } -// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. +// Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration. type UpdateIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid @@ -92,11 +92,14 @@ type UpdateIntegrationOutput struct { // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string - // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported AWS - // services, specify null. + // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon + // Web Services services, specify null. Credentials *string - // Specifies the integration's HTTP method type. + // Specifies the integration's HTTP method type. For the Type property, if you + // specify MOCK , this property is optional. For Lambda integrations, you must set + // the integration method to POST . For all other types, you must specify this + // property. HttpMethod *string // Specifies the integration's responses. @@ -152,10 +155,9 @@ type UpdateIntegrationOutput struct { // Specifies Uniform Resource Identifier (URI) of the integration endpoint. For // HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded - // HTTP(S) URL according to the RFC-3986 specification, for either standard - // integration, where connectionType is not VPC_LINK , or private integration, - // where connectionType is VPC_LINK . For a private HTTP integration, the URI is - // not used for routing. For AWS or AWS_PROXY integrations, the URI is of the form + // HTTP(S) URL according to the RFC-3986 specification for standard integrations. + // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For + // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} @@ -163,10 +165,10 @@ type UpdateIntegrationOutput struct { // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required - // input parameters. Alternatively, path can be used for an AWS service path-based - // API. The ensuing service_api refers to the path to an Amazon Web Services - // service resource, including the region of the integrated Amazon Web Services - // service, if applicable. For example, for integration with the S3 API of + // input parameters. Alternatively, path can be used for an Amazon Web Services + // service path-based API. The ensuing service_api refers to the path to an Amazon + // Web Services service resource, including the region of the integrated Amazon Web + // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} diff --git a/service/apigateway/api_op_UpdateIntegrationResponse.go b/service/apigateway/api_op_UpdateIntegrationResponse.go index 90cc2e031ae..c9182024296 100644 --- a/service/apigateway/api_op_UpdateIntegrationResponse.go +++ b/service/apigateway/api_op_UpdateIntegrationResponse.go @@ -96,8 +96,9 @@ type UpdateIntegrationResponseOutput struct { // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the - // back end is an AWS Lambda function, the AWS Lambda function error header is - // matched. For all other HTTP and AWS back ends, the HTTP status code is matched. + // back end is an Lambda function, the Lambda function error header is matched. For + // all other HTTP and Amazon Web Services back ends, the HTTP status code is + // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an diff --git a/service/apigateway/api_op_UpdateRestApi.go b/service/apigateway/api_op_UpdateRestApi.go index c1a041ded40..f2353834e7d 100644 --- a/service/apigateway/api_op_UpdateRestApi.go +++ b/service/apigateway/api_op_UpdateRestApi.go @@ -96,6 +96,9 @@ type UpdateRestApiOutput struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string diff --git a/service/apigateway/api_op_UpdateUsagePlan.go b/service/apigateway/api_op_UpdateUsagePlan.go index 2a35c9ff82d..d50929e7134 100644 --- a/service/apigateway/api_op_UpdateUsagePlan.go +++ b/service/apigateway/api_op_UpdateUsagePlan.go @@ -67,8 +67,8 @@ type UpdateUsagePlanOutput struct { // The name of a usage plan. Name *string - // The AWS Markeplace product identifier to associate with the usage plan as a - // SaaS product on AWS Marketplace. + // The Amazon Web Services Marketplace product identifier to associate with the + // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. diff --git a/service/apigateway/api_op_UpdateVpcLink.go b/service/apigateway/api_op_UpdateVpcLink.go index daea18f9629..edbf9250af9 100644 --- a/service/apigateway/api_op_UpdateVpcLink.go +++ b/service/apigateway/api_op_UpdateVpcLink.go @@ -74,7 +74,8 @@ type UpdateVpcLinkOutput struct { Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The - // network load balancer must be owned by the same AWS account of the API owner. + // network load balancer must be owned by the same Amazon Web Services account of + // the API owner. TargetArns []string // Metadata pertaining to the operation's result. diff --git a/service/apigateway/deserializers.go b/service/apigateway/deserializers.go index 0da252c9fd4..224d8932910 100644 --- a/service/apigateway/deserializers.go +++ b/service/apigateway/deserializers.go @@ -2408,6 +2408,15 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err @@ -11955,6 +11964,15 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err @@ -15118,6 +15136,15 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err @@ -16463,6 +16490,15 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err @@ -20987,6 +21023,15 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err @@ -25831,6 +25876,15 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ sv.Policy = ptr.String(jtv) } + case "rootResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RootResourceId = ptr.String(jtv) + } + case "tags": if err := awsRestjson1_deserializeDocumentMapOfStringToString(&sv.Tags, value); err != nil { return err diff --git a/service/apigateway/doc.go b/service/apigateway/doc.go index 919e42e0d28..b769c471c8f 100644 --- a/service/apigateway/doc.go +++ b/service/apigateway/doc.go @@ -5,7 +5,7 @@ // // Amazon API Gateway Amazon API Gateway helps developers deliver robust, secure, // and scalable mobile and web application back ends. API Gateway allows developers -// to securely connect mobile and web applications to APIs that run on AWS Lambda, +// to securely connect mobile and web applications to APIs that run on Lambda, // Amazon EC2, or other publicly addressable web services that are hosted outside // of AWS. package apigateway diff --git a/service/apigateway/endpoints_test.go b/service/apigateway/endpoints_test.go index fb87cc00caf..0ba513f7ff3 100644 --- a/service/apigateway/endpoints_test.go +++ b/service/apigateway/endpoints_test.go @@ -18,8 +18,8 @@ import ( func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("af-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -57,8 +57,8 @@ func TestEndpointCase0(t *testing.T) { func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -96,8 +96,8 @@ func TestEndpointCase1(t *testing.T) { func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -135,8 +135,8 @@ func TestEndpointCase2(t *testing.T) { func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -174,8 +174,8 @@ func TestEndpointCase3(t *testing.T) { func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-3"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -213,8 +213,8 @@ func TestEndpointCase4(t *testing.T) { func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -252,8 +252,8 @@ func TestEndpointCase5(t *testing.T) { func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -291,8 +291,8 @@ func TestEndpointCase6(t *testing.T) { func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -330,8 +330,8 @@ func TestEndpointCase7(t *testing.T) { func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ca-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -369,8 +369,8 @@ func TestEndpointCase8(t *testing.T) { func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -408,8 +408,8 @@ func TestEndpointCase9(t *testing.T) { func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -447,8 +447,8 @@ func TestEndpointCase10(t *testing.T) { func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -486,8 +486,8 @@ func TestEndpointCase11(t *testing.T) { func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -525,8 +525,8 @@ func TestEndpointCase12(t *testing.T) { func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -564,8 +564,8 @@ func TestEndpointCase13(t *testing.T) { func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-3"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -603,8 +603,8 @@ func TestEndpointCase14(t *testing.T) { func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("me-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -642,8 +642,8 @@ func TestEndpointCase15(t *testing.T) { func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("sa-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -681,8 +681,8 @@ func TestEndpointCase16(t *testing.T) { func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -720,8 +720,8 @@ func TestEndpointCase17(t *testing.T) { func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -759,8 +759,8 @@ func TestEndpointCase18(t *testing.T) { func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -798,8 +798,8 @@ func TestEndpointCase19(t *testing.T) { func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -837,8 +837,8 @@ func TestEndpointCase20(t *testing.T) { func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -876,8 +876,8 @@ func TestEndpointCase21(t *testing.T) { func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -915,8 +915,8 @@ func TestEndpointCase22(t *testing.T) { func TestEndpointCase23(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -954,8 +954,8 @@ func TestEndpointCase23(t *testing.T) { func TestEndpointCase24(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -993,8 +993,8 @@ func TestEndpointCase24(t *testing.T) { func TestEndpointCase25(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-northwest-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1032,8 +1032,8 @@ func TestEndpointCase25(t *testing.T) { func TestEndpointCase26(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1071,8 +1071,8 @@ func TestEndpointCase26(t *testing.T) { func TestEndpointCase27(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1110,8 +1110,8 @@ func TestEndpointCase27(t *testing.T) { func TestEndpointCase28(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1149,8 +1149,8 @@ func TestEndpointCase28(t *testing.T) { func TestEndpointCase29(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1188,8 +1188,8 @@ func TestEndpointCase29(t *testing.T) { func TestEndpointCase30(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1227,8 +1227,8 @@ func TestEndpointCase30(t *testing.T) { func TestEndpointCase31(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1266,8 +1266,8 @@ func TestEndpointCase31(t *testing.T) { func TestEndpointCase32(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1305,8 +1305,8 @@ func TestEndpointCase32(t *testing.T) { func TestEndpointCase33(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1344,8 +1344,8 @@ func TestEndpointCase33(t *testing.T) { func TestEndpointCase34(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1379,12 +1379,32 @@ func TestEndpointCase34(t *testing.T) { } } -// For region us-iso-east-1 with FIPS enabled and DualStack disabled +// For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase35(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase36(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1418,12 +1438,52 @@ func TestEndpointCase35(t *testing.T) { } } +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase37(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase38(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase36(t *testing.T) { +func TestEndpointCase39(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1457,12 +1517,32 @@ func TestEndpointCase36(t *testing.T) { } } +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase40(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase37(t *testing.T) { +func TestEndpointCase41(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1497,11 +1577,11 @@ func TestEndpointCase37(t *testing.T) { } // For custom endpoint with region set and fips disabled and dualstack disabled -func TestEndpointCase38(t *testing.T) { +func TestEndpointCase42(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1537,10 +1617,10 @@ func TestEndpointCase38(t *testing.T) { } // For custom endpoint with region not set and fips disabled and dualstack disabled -func TestEndpointCase39(t *testing.T) { +func TestEndpointCase43(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1576,11 +1656,11 @@ func TestEndpointCase39(t *testing.T) { } // For custom endpoint with fips enabled and dualstack disabled -func TestEndpointCase40(t *testing.T) { +func TestEndpointCase44(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1597,11 +1677,11 @@ func TestEndpointCase40(t *testing.T) { } // For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase41(t *testing.T) { +func TestEndpointCase45(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), Endpoint: ptr.String("https://example.com"), } @@ -1616,3 +1696,19 @@ func TestEndpointCase41(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Missing region +func TestEndpointCase46(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/apigateway/types/types.go b/service/apigateway/types/types.go index ac1fd2a06cc..c64f684c9c8 100644 --- a/service/apigateway/types/types.go +++ b/service/apigateway/types/types.go @@ -32,8 +32,8 @@ type ApiKey struct { // The timestamp when the API Key was created. CreatedDate *time.Time - // An AWS Marketplace customer identifier , when integrating with the AWS SaaS - // Marketplace. + // An Amazon Web Services Marketplace customer identifier, when integrating with + // the Amazon Web Services SaaS Marketplace. CustomerId *string // The description of the API Key. @@ -356,9 +356,9 @@ type DocumentationVersion struct { // (RestApi). type DomainName struct { - // The reference to an AWS-managed certificate that will be used by edge-optimized - // endpoint for this domain name. AWS Certificate Manager is the only supported - // source. + // The reference to an Amazon Web Services-managed certificate that will be used + // by edge-optimized endpoint for this domain name. Certificate Manager is the only + // supported source. CertificateArn *string // The name of the certificate that will be used by edge-optimized endpoint for @@ -409,8 +409,9 @@ type DomainName struct { // imported or private CA certificate ARN as the regionalCertificateArn. OwnershipVerificationCertificateArn *string - // The reference to an AWS-managed certificate that will be used for validating - // the regional domain name. AWS Certificate Manager is the only supported source. + // The reference to an Amazon Web Services-managed certificate that will be used + // for validating the regional domain name. Certificate Manager is the only + // supported source. RegionalCertificateArn *string // The name of the certificate that will be used for validating the regional @@ -481,7 +482,7 @@ type GatewayResponse struct { noSmithyDocumentSerde } -// Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. +// Represents an HTTP , HTTP_PROXY , AWS , AWS_PROXY , or Mock integration. type Integration struct { // A list of request parameters whose values API Gateway caches. To be valid @@ -516,11 +517,14 @@ type Integration struct { // integrations, three options are available. To specify an IAM Role for API // Gateway to assume, use the role's Amazon Resource Name (ARN). To require that // the caller's identity be passed through from the request, specify the string - // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported AWS - // services, specify null. + // arn:aws:iam::\*:user/\* . To use resource-based permissions on supported Amazon + // Web Services services, specify null. Credentials *string - // Specifies the integration's HTTP method type. + // Specifies the integration's HTTP method type. For the Type property, if you + // specify MOCK , this property is optional. For Lambda integrations, you must set + // the integration method to POST . For all other types, you must specify this + // property. HttpMethod *string // Specifies the integration's responses. @@ -576,10 +580,9 @@ type Integration struct { // Specifies Uniform Resource Identifier (URI) of the integration endpoint. For // HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded - // HTTP(S) URL according to the RFC-3986 specification, for either standard - // integration, where connectionType is not VPC_LINK , or private integration, - // where connectionType is VPC_LINK . For a private HTTP integration, the URI is - // not used for routing. For AWS or AWS_PROXY integrations, the URI is of the form + // HTTP(S) URL according to the RFC-3986 specification for standard integrations. + // If connectionType is VPC_LINK specify the Network Load Balancer DNS name. For + // AWS or AWS_PROXY integrations, the URI is of the form // arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api} // . Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the // name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} @@ -587,10 +590,10 @@ type Integration struct { // fast host-name lookup. action can be used for an Amazon Web Services service // action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The // ensuing {service_api} refers to a supported action {name} plus any required - // input parameters. Alternatively, path can be used for an AWS service path-based - // API. The ensuing service_api refers to the path to an Amazon Web Services - // service resource, including the region of the integrated Amazon Web Services - // service, if applicable. For example, for integration with the S3 API of + // input parameters. Alternatively, path can be used for an Amazon Web Services + // service path-based API. The ensuing service_api refers to the path to an Amazon + // Web Services service resource, including the region of the integrated Amazon Web + // Services service, if applicable. For example, for integration with the S3 API of // GetObject, the uri can be either // arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or // arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} @@ -633,8 +636,9 @@ type IntegrationResponse struct { // response returns nothing and the error response returns some string, you could // use the .+ regex to match error response. However, make sure that the error // response does not contain any newline ( \n ) character in such cases. If the - // back end is an AWS Lambda function, the AWS Lambda function error header is - // matched. For all other HTTP and AWS back ends, the HTTP status code is matched. + // back end is an Lambda function, the Lambda function error header is matched. For + // all other HTTP and Amazon Web Services back ends, the HTTP status code is + // matched. SelectionPattern *string // Specifies the status code that is used to map the integration response to an @@ -750,59 +754,40 @@ type MethodResponse struct { // Specifies the method setting properties. type MethodSetting struct { - // Specifies whether the cached responses are encrypted. The PATCH path for this - // setting is /{method_setting_key}/caching/dataEncrypted , and the value is a - // Boolean. + // Specifies whether the cached responses are encrypted. CacheDataEncrypted bool // Specifies the time to live (TTL), in seconds, for cached responses. The higher - // the TTL, the longer the response will be cached. The PATCH path for this setting - // is /{method_setting_key}/caching/ttlInSeconds , and the value is an integer. + // the TTL, the longer the response will be cached. CacheTtlInSeconds int32 // Specifies whether responses should be cached and returned for requests. A cache - // cluster must be enabled on the stage for responses to be cached. The PATCH path - // for this setting is /{method_setting_key}/caching/enabled , and the value is a - // Boolean. + // cluster must be enabled on the stage for responses to be cached. CachingEnabled bool // Specifies whether data trace logging is enabled for this method, which affects - // the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this - // setting is /{method_setting_key}/logging/dataTrace , and the value is a Boolean. + // the log entries pushed to Amazon CloudWatch Logs. DataTraceEnabled bool // Specifies the logging level for this method, which affects the log entries - // pushed to Amazon CloudWatch Logs. The PATCH path for this setting is - // /{method_setting_key}/logging/loglevel , and the available levels are OFF , - // ERROR , and INFO . Choose ERROR to write only error-level entries to CloudWatch - // Logs, or choose INFO to include all ERROR events as well as extra informational - // events. + // pushed to Amazon CloudWatch Logs. Valid values are OFF , ERROR , and INFO . + // Choose ERROR to write only error-level entries to CloudWatch Logs, or choose + // INFO to include all ERROR events as well as extra informational events. LoggingLevel *string - // Specifies whether Amazon CloudWatch metrics are enabled for this method. The - // PATCH path for this setting is /{method_setting_key}/metrics/enabled , and the - // value is a Boolean. + // Specifies whether Amazon CloudWatch metrics are enabled for this method. MetricsEnabled bool // Specifies whether authorization is required for a cache invalidation request. - // The PATCH path for this setting is - // /{method_setting_key}/caching/requireAuthorizationForCacheControl , and the - // value is a Boolean. RequireAuthorizationForCacheControl bool - // Specifies the throttling burst limit. The PATCH path for this setting is - // /{method_setting_key}/throttling/burstLimit , and the value is an integer. + // Specifies the throttling burst limit. ThrottlingBurstLimit int32 - // Specifies the throttling rate limit. The PATCH path for this setting is - // /{method_setting_key}/throttling/rateLimit , and the value is a double. + // Specifies the throttling rate limit. ThrottlingRateLimit float64 - // Specifies how to handle unauthorized requests for cache invalidation. The PATCH - // path for this setting is - // /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy , and the - // available values are FAIL_WITH_403 , SUCCEED_WITH_RESPONSE_HEADER , - // SUCCEED_WITHOUT_RESPONSE_HEADER . + // Specifies how to handle unauthorized requests for cache invalidation. UnauthorizedCacheControlHeaderStrategy UnauthorizedCacheControlHeaderStrategy noSmithyDocumentSerde @@ -1037,6 +1022,9 @@ type RestApi struct { // the caller and Method configuration. Policy *string + // The API's root resource ID. + RootResourceId *string + // The collection of tags. Each tag element is associated with a given resource. Tags map[string]string @@ -1221,8 +1209,8 @@ type UsagePlan struct { // The name of a usage plan. Name *string - // The AWS Markeplace product identifier to associate with the usage plan as a - // SaaS product on AWS Marketplace. + // The Amazon Web Services Marketplace product identifier to associate with the + // usage plan as a SaaS product on the Amazon Web Services Marketplace. ProductCode *string // The target maximum number of permitted requests per a given unit time interval. @@ -1282,7 +1270,8 @@ type VpcLink struct { Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The - // network load balancer must be owned by the same AWS account of the API owner. + // network load balancer must be owned by the same Amazon Web Services account of + // the API owner. TargetArns []string noSmithyDocumentSerde diff --git a/service/backup/internal/endpoints/endpoints.go b/service/backup/internal/endpoints/endpoints.go index 267834adec7..efd393822ca 100644 --- a/service/backup/internal/endpoints/endpoints.go +++ b/service/backup/internal/endpoints/endpoints.go @@ -199,6 +199,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-west-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "il-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-central-1", }: endpoints.Endpoint{}, diff --git a/service/batch/internal/endpoints/endpoints.go b/service/batch/internal/endpoints/endpoints.go index 83ae72172cb..a654645e122 100644 --- a/service/batch/internal/endpoints/endpoints.go +++ b/service/batch/internal/endpoints/endpoints.go @@ -235,6 +235,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "il-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-central-1", }: endpoints.Endpoint{}, diff --git a/service/licensemanager/internal/endpoints/endpoints.go b/service/licensemanager/internal/endpoints/endpoints.go index 25ef1b4eebd..9ffe56844e5 100644 --- a/service/licensemanager/internal/endpoints/endpoints.go +++ b/service/licensemanager/internal/endpoints/endpoints.go @@ -223,6 +223,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "il-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, diff --git a/service/outposts/internal/endpoints/endpoints.go b/service/outposts/internal/endpoints/endpoints.go index fd51a1feb25..ee7d2917c95 100644 --- a/service/outposts/internal/endpoints/endpoints.go +++ b/service/outposts/internal/endpoints/endpoints.go @@ -238,6 +238,12 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "il-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "me-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, diff --git a/service/polly/types/enums.go b/service/polly/types/enums.go index aecad7484a8..28ff1bee1b4 100644 --- a/service/polly/types/enums.go +++ b/service/polly/types/enums.go @@ -310,6 +310,7 @@ const ( VoiceIdSofie VoiceId = "Sofie" VoiceIdLisa VoiceId = "Lisa" VoiceIdIsabelle VoiceId = "Isabelle" + VoiceIdZayd VoiceId = "Zayd" ) // Values returns all known values for VoiceId. Note that this can be expanded in @@ -409,5 +410,6 @@ func (VoiceId) Values() []VoiceId { "Sofie", "Lisa", "Isabelle", + "Zayd", } }