From ebfdc504e385ffe9562445d0b46cdd7ac6231c9f Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Fri, 16 Aug 2024 18:24:15 +0000 Subject: [PATCH] Regenerated Clients --- .../283003702c9c4e629da469961de234bc.json | 8 ++ .../557331c86d9044a481e43f6acb9ec191.json | 8 ++ .../9b169dfc395f4acf8a59e6d54b1cef28.json | 8 ++ .../a63d7db8b7334147b28539291d2e69ee.json | 8 ++ .../c9f7492776c143eba20231472b79112c.json | 8 ++ .../attributevalue/go_module_metadata.go | 2 +- service/batch/api_op_CancelJob.go | 5 +- .../batch/api_op_CreateComputeEnvironment.go | 3 + .../batch/api_op_UpdateComputeEnvironment.go | 3 + service/batch/deserializers.go | 9 ++ service/batch/serializers.go | 10 ++ service/batch/types/types.go | 3 + service/inspector2/deserializers.go | 2 +- service/quicksight/deserializers.go | 91 +++++++++++++++++++ service/quicksight/types/errors.go | 31 +++++++ service/sagemaker/deserializers.go | 90 ++++++++++++++++++ service/sagemaker/types/types.go | 25 +++++ service/sesv2/api_op_PutAccountDetails.go | 10 +- service/sesv2/types/types.go | 2 + service/sesv2/validators.go | 3 - .../internal/endpoints/endpoints.go | 6 ++ 21 files changed, 322 insertions(+), 13 deletions(-) create mode 100644 .changelog/283003702c9c4e629da469961de234bc.json create mode 100644 .changelog/557331c86d9044a481e43f6acb9ec191.json create mode 100644 .changelog/9b169dfc395f4acf8a59e6d54b1cef28.json create mode 100644 .changelog/a63d7db8b7334147b28539291d2e69ee.json create mode 100644 .changelog/c9f7492776c143eba20231472b79112c.json diff --git a/.changelog/283003702c9c4e629da469961de234bc.json b/.changelog/283003702c9c4e629da469961de234bc.json new file mode 100644 index 00000000000..23bf4f4f57d --- /dev/null +++ b/.changelog/283003702c9c4e629da469961de234bc.json @@ -0,0 +1,8 @@ +{ + "id": "28300370-2c9c-4e62-9da4-69961de234bc", + "type": "feature", + "description": "Introduce Endpoint and EndpointConfig Arns in sagemaker:ListPipelineExecutionSteps API response", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/557331c86d9044a481e43f6acb9ec191.json b/.changelog/557331c86d9044a481e43f6acb9ec191.json new file mode 100644 index 00000000000..013293715a2 --- /dev/null +++ b/.changelog/557331c86d9044a481e43f6acb9ec191.json @@ -0,0 +1,8 @@ +{ + "id": "557331c8-6d90-44a4-81e4-3f6acb9ec191", + "type": "feature", + "description": "Update the correct format of key and values for resource tags", + "modules": [ + "service/inspector2" + ] +} \ No newline at end of file diff --git a/.changelog/9b169dfc395f4acf8a59e6d54b1cef28.json b/.changelog/9b169dfc395f4acf8a59e6d54b1cef28.json new file mode 100644 index 00000000000..f4e2ac9df34 --- /dev/null +++ b/.changelog/9b169dfc395f4acf8a59e6d54b1cef28.json @@ -0,0 +1,8 @@ +{ + "id": "9b169dfc-395f-4acf-8a59-e6d54b1cef28", + "type": "feature", + "description": "Marking use case description field of account details as deprecated.", + "modules": [ + "service/sesv2" + ] +} \ No newline at end of file diff --git a/.changelog/a63d7db8b7334147b28539291d2e69ee.json b/.changelog/a63d7db8b7334147b28539291d2e69ee.json new file mode 100644 index 00000000000..51e00c2ca82 --- /dev/null +++ b/.changelog/a63d7db8b7334147b28539291d2e69ee.json @@ -0,0 +1,8 @@ +{ + "id": "a63d7db8-b733-4147-b285-39291d2e69ee", + "type": "feature", + "description": "Improvements of integration between AWS Batch and EC2.", + "modules": [ + "service/batch" + ] +} \ No newline at end of file diff --git a/.changelog/c9f7492776c143eba20231472b79112c.json b/.changelog/c9f7492776c143eba20231472b79112c.json new file mode 100644 index 00000000000..e7ca2d56e31 --- /dev/null +++ b/.changelog/c9f7492776c143eba20231472b79112c.json @@ -0,0 +1,8 @@ +{ + "id": "c9f74927-76c1-43eb-a202-31472b79112c", + "type": "feature", + "description": "Amazon QuickSight launches Customer Managed Key (CMK) encryption for Data Source metadata", + "modules": [ + "service/quicksight" + ] +} \ No newline at end of file diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index d82f36032fe..47cde575fac 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.65" +const goModuleVersion = "1.14.11" diff --git a/service/batch/api_op_CancelJob.go b/service/batch/api_op_CancelJob.go index ef72787f34d..b142954b4a9 100644 --- a/service/batch/api_op_CancelJob.go +++ b/service/batch/api_op_CancelJob.go @@ -10,9 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED or PENDING -// are canceled. A job in RUNNABLE remains in RUNNABLE until it reaches the head -// of the job queue. Then the job status is updated to FAILED . +// Cancels a job in an Batch job queue. Jobs that are in a SUBMITTED , PENDING , or +// RUNNABLE state are cancelled and the job status is updated to FAILED . // // A PENDING job is canceled after all dependency jobs are completed. Therefore, // it may take longer than expected to cancel a job in PENDING status. diff --git a/service/batch/api_op_CreateComputeEnvironment.go b/service/batch/api_op_CreateComputeEnvironment.go index 527d70124fd..54fda863a94 100644 --- a/service/batch/api_op_CreateComputeEnvironment.go +++ b/service/batch/api_op_CreateComputeEnvironment.go @@ -136,6 +136,9 @@ type CreateComputeEnvironmentInput struct { // [Compute Environments]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html ComputeResources *types.ComputeResource + // Reserved. + Context *string + // The details for the Amazon EKS cluster that supports the compute environment. EksConfiguration *types.EksConfiguration diff --git a/service/batch/api_op_UpdateComputeEnvironment.go b/service/batch/api_op_UpdateComputeEnvironment.go index cab595b2bfd..837ac471e4b 100644 --- a/service/batch/api_op_UpdateComputeEnvironment.go +++ b/service/batch/api_op_UpdateComputeEnvironment.go @@ -43,6 +43,9 @@ type UpdateComputeEnvironmentInput struct { // [Compute Environments]: https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html ComputeResources *types.ComputeResourceUpdate + // Reserved. + Context *string + // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make // calls to other Amazon Web Services services on your behalf. For more // information, see [Batch service IAM role]in the Batch User Guide. diff --git a/service/batch/deserializers.go b/service/batch/deserializers.go index 28506ecd47f..c5267cb62e1 100644 --- a/service/batch/deserializers.go +++ b/service/batch/deserializers.go @@ -4011,6 +4011,15 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE sv.ContainerOrchestrationType = types.OrchestrationType(jtv) } + case "context": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Context = ptr.String(jtv) + } + case "ecsClusterArn": if value != nil { jtv, ok := value.(string) diff --git a/service/batch/serializers.go b/service/batch/serializers.go index 0fa6bc70207..19dcb66ea8f 100644 --- a/service/batch/serializers.go +++ b/service/batch/serializers.go @@ -174,6 +174,11 @@ func awsRestjson1_serializeOpDocumentCreateComputeEnvironmentInput(v *CreateComp } } + if v.Context != nil { + ok := object.Key("context") + ok.String(*v.Context) + } + if v.EksConfiguration != nil { ok := object.Key("eksConfiguration") if err := awsRestjson1_serializeDocumentEksConfiguration(v.EksConfiguration, ok); err != nil { @@ -2106,6 +2111,11 @@ func awsRestjson1_serializeOpDocumentUpdateComputeEnvironmentInput(v *UpdateComp } } + if v.Context != nil { + ok := object.Key("context") + ok.String(*v.Context) + } + if v.ServiceRole != nil { ok := object.Key("serviceRole") ok.String(*v.ServiceRole) diff --git a/service/batch/types/types.go b/service/batch/types/types.go index e876178c03c..fd0bbfdf7ed 100644 --- a/service/batch/types/types.go +++ b/service/batch/types/types.go @@ -168,6 +168,9 @@ type ComputeEnvironmentDetail struct { // (default) or EKS . ContainerOrchestrationType OrchestrationType + // Reserved. + Context *string + // The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the // compute environment uses. EcsClusterArn *string diff --git a/service/inspector2/deserializers.go b/service/inspector2/deserializers.go index 8f2ad48c255..989d32e0fea 100644 --- a/service/inspector2/deserializers.go +++ b/service/inspector2/deserializers.go @@ -18824,7 +18824,7 @@ func awsRestjson1_deserializeDocumentTagValueList(v *[]string, value interface{} if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected TargetResourceTagsValue to be of type string, got %T instead", value) } col = jtv } diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index c7a95873a74..05dc02338b8 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -1821,6 +1821,9 @@ func awsRestjson1_deserializeOpErrorCreateDataSource(response *smithyhttp.Respon case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("CustomerManagedKeyUnavailableException", errorCode): + return awsRestjson1_deserializeErrorCustomerManagedKeyUnavailableException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -30734,6 +30737,9 @@ func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Respon case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("CustomerManagedKeyUnavailableException", errorCode): + return awsRestjson1_deserializeErrorCustomerManagedKeyUnavailableException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -35506,6 +35512,42 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons return output } +func awsRestjson1_deserializeErrorCustomerManagedKeyUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CustomerManagedKeyUnavailableException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentCustomerManagedKeyUnavailableException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + func awsRestjson1_deserializeErrorDomainNotWhitelistedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.DomainNotWhitelistedException{} var buff [1024]byte @@ -48141,6 +48183,55 @@ func awsRestjson1_deserializeDocumentCustomContentVisual(v **types.CustomContent return nil } +func awsRestjson1_deserializeDocumentCustomerManagedKeyUnavailableException(v **types.CustomerManagedKeyUnavailableException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CustomerManagedKeyUnavailableException + if *v == nil { + sv = &types.CustomerManagedKeyUnavailableException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentCustomFilterConfiguration(v **types.CustomFilterConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index cc7974be07f..5eb4fdffd84 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -96,6 +96,37 @@ func (e *ConflictException) ErrorCode() string { } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The customer managed key that is registered to your Amazon QuickSight account +// is unavailable. +type CustomerManagedKeyUnavailableException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + + noSmithyDocumentSerde +} + +func (e *CustomerManagedKeyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CustomerManagedKeyUnavailableException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CustomerManagedKeyUnavailableException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CustomerManagedKeyUnavailableException" + } + return *e.ErrorCodeOverride +} +func (e *CustomerManagedKeyUnavailableException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + // The domain specified isn't on the allow list. All domains for embedded // dashboards must be added to the approved list by an Amazon QuickSight admin. type DomainNotWhitelistedException struct { diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 1ad343db8bf..898b79ca758 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -48125,6 +48125,46 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } +func awsAwsjson11_deserializeDocumentEndpointConfigStepMetadata(v **types.EndpointConfigStepMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EndpointConfigStepMetadata + if *v == nil { + sv = &types.EndpointConfigStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointConfigArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEndpointConfigSummary(v **types.EndpointConfigSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -48764,6 +48804,46 @@ func awsAwsjson11_deserializeDocumentEndpoints(v *[]types.EndpointInfo, value in return nil } +func awsAwsjson11_deserializeDocumentEndpointStepMetadata(v **types.EndpointStepMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EndpointStepMetadata + if *v == nil { + sv = &types.EndpointStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEndpointSummary(v **types.EndpointSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -67750,6 +67830,16 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionStepMetadata(v **types.Pip return err } + case "Endpoint": + if err := awsAwsjson11_deserializeDocumentEndpointStepMetadata(&sv.Endpoint, value); err != nil { + return err + } + + case "EndpointConfig": + if err := awsAwsjson11_deserializeDocumentEndpointConfigStepMetadata(&sv.EndpointConfig, value); err != nil { + return err + } + case "Fail": if err := awsAwsjson11_deserializeDocumentFailStepMetadata(&sv.Fail, value); err != nil { return err diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 7846f59b30f..ba8c4fe38d4 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -5434,6 +5434,15 @@ type Endpoint struct { noSmithyDocumentSerde } +// Metadata for an endpoint configuration step. +type EndpointConfigStepMetadata struct { + + // The Amazon Resource Name (ARN) of the endpoint configuration used in the step. + Arn *string + + noSmithyDocumentSerde +} + // Provides summary information for an endpoint configuration. type EndpointConfigSummary struct { @@ -5605,6 +5614,15 @@ type EndpointPerformance struct { noSmithyDocumentSerde } +// Metadata for an endpoint step. +type EndpointStepMetadata struct { + + // The Amazon Resource Name (ARN) of the endpoint in the step. + Arn *string + + noSmithyDocumentSerde +} + // Provides summary information for an endpoint. type EndpointSummary struct { @@ -13509,6 +13527,13 @@ type PipelineExecutionStepMetadata struct { // The configurations and outcomes of an Amazon EMR step execution. EMR *EMRStepMetadata + // The endpoint that was invoked during this step execution. + Endpoint *EndpointStepMetadata + + // The endpoint configuration used to create an endpoint during this step + // execution. + EndpointConfig *EndpointConfigStepMetadata + // The configurations and outcomes of a Fail step execution. Fail *FailStepMetadata diff --git a/service/sesv2/api_op_PutAccountDetails.go b/service/sesv2/api_op_PutAccountDetails.go index 04a5de013ef..a02580c044f 100644 --- a/service/sesv2/api_op_PutAccountDetails.go +++ b/service/sesv2/api_op_PutAccountDetails.go @@ -35,11 +35,6 @@ type PutAccountDetailsInput struct { // This member is required. MailType types.MailType - // A description of the types of email that you plan to send. - // - // This member is required. - UseCaseDescription *string - // The URL of your website. This information helps us better understand the type // of content that you plan to send. // @@ -65,6 +60,11 @@ type PutAccountDetailsInput struct { // case. ProductionAccessEnabled *bool + // A description of the types of email that you plan to send. + // + // Deprecated: Use case description is optional and deprecated + UseCaseDescription *string + noSmithyDocumentSerde } diff --git a/service/sesv2/types/types.go b/service/sesv2/types/types.go index 82f90ff7d2a..a25c592c428 100644 --- a/service/sesv2/types/types.go +++ b/service/sesv2/types/types.go @@ -32,6 +32,8 @@ type AccountDetails struct { ReviewDetails *ReviewDetails // A description of the types of email that you plan to send. + // + // Deprecated: Use case description is optional and deprecated UseCaseDescription *string // The URL of your website. This information helps us better understand the type diff --git a/service/sesv2/validators.go b/service/sesv2/validators.go index cf320e0b4b2..31e70a6597f 100644 --- a/service/sesv2/validators.go +++ b/service/sesv2/validators.go @@ -3375,9 +3375,6 @@ func validateOpPutAccountDetailsInput(v *PutAccountDetailsInput) error { if v.WebsiteURL == nil { invalidParams.Add(smithy.NewErrParamRequired("WebsiteURL")) } - if v.UseCaseDescription == nil { - invalidParams.Add(smithy.NewErrParamRequired("UseCaseDescription")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/vpclattice/internal/endpoints/endpoints.go b/service/vpclattice/internal/endpoints/endpoints.go index d0eb57a7a55..7531f4feb00 100644 --- a/service/vpclattice/internal/endpoints/endpoints.go +++ b/service/vpclattice/internal/endpoints/endpoints.go @@ -139,6 +139,9 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "af-south-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, @@ -163,6 +166,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-north-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{},