From ce039452b6a7e2046ee8e6292260cc9d1e78af7e Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Thu, 5 Jan 2023 19:12:08 +0000 Subject: [PATCH] Regenerated Clients --- .../170e063fc0d04d41937232cacad610ae.json | 8 + .../620ef1e94bd3405da5b533c9c54627a1.json | 8 + .../73a832a540c34492a4ccb1462067e7df.json | 8 + .../75b4c9a2734b4e4aa0c4666f3a902a25.json | 8 + .../bb168dc8a2e34949a0871b96ce5d6f6d.json | 8 + .../fd23736e1c1b447b81b02a7a57e92521.json | 8 + .../ff7214d7a8f2451d8c4f9e3019c7d0ba.json | 8 + .../api_op_GetBackendAPIModels.go | 6 +- service/amplifybackend/deserializers.go | 9 + service/apprunner/deserializers.go | 46 ++++ service/apprunner/serializers.go | 25 ++ service/apprunner/types/types.go | 38 ++- service/connect/types/enums.go | 4 + .../emrserverless/api_op_CreateApplication.go | 14 +- .../emrserverless/api_op_UpdateApplication.go | 13 + service/emrserverless/deserializers.go | 133 ++++++++++ service/emrserverless/serializers.go | 68 +++++ service/emrserverless/types/types.go | 59 ++++- service/lightsail/api_op_CreateDomain.go | 6 +- service/lightsail/api_op_DeleteDisk.go | 2 +- service/lightsail/api_op_DeleteInstance.go | 2 +- service/mwaa/api_op_CreateEnvironment.go | 6 +- service/mwaa/api_op_UpdateEnvironment.go | 2 +- service/mwaa/types/types.go | 2 +- .../rds/api_op_CreateCustomDBEngineVersion.go | 13 + service/rds/api_op_CreateDBInstance.go | 10 + .../rds/api_op_DeleteCustomDBEngineVersion.go | 13 + service/rds/api_op_DescribeCertificates.go | 8 +- service/rds/api_op_ModifyCertificates.go | 8 +- .../rds/api_op_ModifyCustomDBEngineVersion.go | 13 + service/rds/api_op_ModifyDBCluster.go | 2 +- service/rds/api_op_ModifyDBInstance.go | 10 +- service/rds/api_op_StartExportTask.go | 26 +- service/rds/deserializers.go | 243 ++++++++++++++++++ service/rds/serializers.go | 5 + service/rds/types/types.go | 59 ++++- 36 files changed, 857 insertions(+), 44 deletions(-) create mode 100644 .changelog/170e063fc0d04d41937232cacad610ae.json create mode 100644 .changelog/620ef1e94bd3405da5b533c9c54627a1.json create mode 100644 .changelog/73a832a540c34492a4ccb1462067e7df.json create mode 100644 .changelog/75b4c9a2734b4e4aa0c4666f3a902a25.json create mode 100644 .changelog/bb168dc8a2e34949a0871b96ce5d6f6d.json create mode 100644 .changelog/fd23736e1c1b447b81b02a7a57e92521.json create mode 100644 .changelog/ff7214d7a8f2451d8c4f9e3019c7d0ba.json diff --git a/.changelog/170e063fc0d04d41937232cacad610ae.json b/.changelog/170e063fc0d04d41937232cacad610ae.json new file mode 100644 index 00000000000..56ee1e7fde4 --- /dev/null +++ b/.changelog/170e063fc0d04d41937232cacad610ae.json @@ -0,0 +1,8 @@ +{ + "id": "170e063f-c0d0-4d41-9372-32cacad610ae", + "type": "documentation", + "description": "Documentation updates for Amazon Lightsail.", + "modules": [ + "service/lightsail" + ] +} \ No newline at end of file diff --git a/.changelog/620ef1e94bd3405da5b533c9c54627a1.json b/.changelog/620ef1e94bd3405da5b533c9c54627a1.json new file mode 100644 index 00000000000..e11e259593a --- /dev/null +++ b/.changelog/620ef1e94bd3405da5b533c9c54627a1.json @@ -0,0 +1,8 @@ +{ + "id": "620ef1e9-4bd3-405d-a5b5-33c9c54627a1", + "type": "feature", + "description": "Documentation update for a new Initiation Method value in DescribeContact API", + "modules": [ + "service/connect" + ] +} \ No newline at end of file diff --git a/.changelog/73a832a540c34492a4ccb1462067e7df.json b/.changelog/73a832a540c34492a4ccb1462067e7df.json new file mode 100644 index 00000000000..4b8a05b3b13 --- /dev/null +++ b/.changelog/73a832a540c34492a4ccb1462067e7df.json @@ -0,0 +1,8 @@ +{ + "id": "73a832a5-40c3-4492-a4cc-b1462067e7df", + "type": "documentation", + "description": "MWAA supports Apache Airflow version 2.4.3.", + "modules": [ + "service/mwaa" + ] +} \ No newline at end of file diff --git a/.changelog/75b4c9a2734b4e4aa0c4666f3a902a25.json b/.changelog/75b4c9a2734b4e4aa0c4666f3a902a25.json new file mode 100644 index 00000000000..45790fd8db4 --- /dev/null +++ b/.changelog/75b4c9a2734b4e4aa0c4666f3a902a25.json @@ -0,0 +1,8 @@ +{ + "id": "75b4c9a2-734b-4e4a-a0c4-666f3a902a25", + "type": "feature", + "description": "This release adds support for specifying which certificate authority (CA) to use for a DB instance's server certificate during DB instance creation, as well as other CA enhancements.", + "modules": [ + "service/rds" + ] +} \ No newline at end of file diff --git a/.changelog/bb168dc8a2e34949a0871b96ce5d6f6d.json b/.changelog/bb168dc8a2e34949a0871b96ce5d6f6d.json new file mode 100644 index 00000000000..767e01ae8d2 --- /dev/null +++ b/.changelog/bb168dc8a2e34949a0871b96ce5d6f6d.json @@ -0,0 +1,8 @@ +{ + "id": "bb168dc8-a2e3-4949-a087-1b96ce5d6f6d", + "type": "feature", + "description": "Updated GetBackendAPIModels response to include ModelIntrospectionSchema json string", + "modules": [ + "service/amplifybackend" + ] +} \ No newline at end of file diff --git a/.changelog/fd23736e1c1b447b81b02a7a57e92521.json b/.changelog/fd23736e1c1b447b81b02a7a57e92521.json new file mode 100644 index 00000000000..eef09c40530 --- /dev/null +++ b/.changelog/fd23736e1c1b447b81b02a7a57e92521.json @@ -0,0 +1,8 @@ +{ + "id": "fd23736e-1c1b-447b-81b0-2a7a57e92521", + "type": "feature", + "description": "Adds support for customized images. You can now provide runtime images when creating or updating EMR Serverless Applications.", + "modules": [ + "service/emrserverless" + ] +} \ No newline at end of file diff --git a/.changelog/ff7214d7a8f2451d8c4f9e3019c7d0ba.json b/.changelog/ff7214d7a8f2451d8c4f9e3019c7d0ba.json new file mode 100644 index 00000000000..2e8fc65f15c --- /dev/null +++ b/.changelog/ff7214d7a8f2451d8c4f9e3019c7d0ba.json @@ -0,0 +1,8 @@ +{ + "id": "ff7214d7-a8f2-451d-8c4f-9e3019c7d0ba", + "type": "feature", + "description": "This release adds support of securely referencing secrets and configuration data that are stored in Secrets Manager and SSM Parameter Store by adding them as environment secrets in your App Runner service.", + "modules": [ + "service/apprunner" + ] +} \ No newline at end of file diff --git a/service/amplifybackend/api_op_GetBackendAPIModels.go b/service/amplifybackend/api_op_GetBackendAPIModels.go index 6e038744d2d..7298957850c 100644 --- a/service/amplifybackend/api_op_GetBackendAPIModels.go +++ b/service/amplifybackend/api_op_GetBackendAPIModels.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Generates a model schema for existing backend API resource. +// Gets a model introspection schema for an existing backend API resource. func (c *Client) GetBackendAPIModels(ctx context.Context, params *GetBackendAPIModelsInput, optFns ...func(*Options)) (*GetBackendAPIModelsOutput, error) { if params == nil { params = &GetBackendAPIModelsInput{} @@ -50,6 +50,10 @@ type GetBackendAPIModelsInput struct { type GetBackendAPIModelsOutput struct { + // Stringified JSON of the model introspection schema for an existing backend API + // resource. + ModelIntrospectionSchema *string + // Stringified JSON of the datastore model. Models *string diff --git a/service/amplifybackend/deserializers.go b/service/amplifybackend/deserializers.go index 1bcea19a35a..6d50a05d5a2 100644 --- a/service/amplifybackend/deserializers.go +++ b/service/amplifybackend/deserializers.go @@ -3111,6 +3111,15 @@ func awsRestjson1_deserializeOpDocumentGetBackendAPIModelsOutput(v **GetBackendA for key, value := range shape { switch key { + case "modelIntrospectionSchema": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ModelIntrospectionSchema = ptr.String(jtv) + } + case "models": if value != nil { jtv, ok := value.(string) diff --git a/service/apprunner/deserializers.go b/service/apprunner/deserializers.go index 9df8dfdf4ca..92c533b9621 100644 --- a/service/apprunner/deserializers.go +++ b/service/apprunner/deserializers.go @@ -4795,6 +4795,11 @@ func awsAwsjson10_deserializeDocumentCodeConfigurationValues(v **types.CodeConfi sv.Runtime = types.Runtime(jtv) } + case "RuntimeEnvironmentSecrets": + if err := awsAwsjson10_deserializeDocumentRuntimeEnvironmentSecrets(&sv.RuntimeEnvironmentSecrets, value); err != nil { + return err + } + case "RuntimeEnvironmentVariables": if err := awsAwsjson10_deserializeDocumentRuntimeEnvironmentVariables(&sv.RuntimeEnvironmentVariables, value); err != nil { return err @@ -5386,6 +5391,11 @@ func awsAwsjson10_deserializeDocumentImageConfiguration(v **types.ImageConfigura sv.Port = ptr.String(jtv) } + case "RuntimeEnvironmentSecrets": + if err := awsAwsjson10_deserializeDocumentRuntimeEnvironmentSecrets(&sv.RuntimeEnvironmentSecrets, value); err != nil { + return err + } + case "RuntimeEnvironmentVariables": if err := awsAwsjson10_deserializeDocumentRuntimeEnvironmentVariables(&sv.RuntimeEnvironmentVariables, value); err != nil { return err @@ -6173,6 +6183,42 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } +func awsAwsjson10_deserializeDocumentRuntimeEnvironmentSecrets(v *map[string]string, 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 mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuntimeEnvironmentSecretsValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + func awsAwsjson10_deserializeDocumentRuntimeEnvironmentVariables(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/apprunner/serializers.go b/service/apprunner/serializers.go index 23495342e9e..295dfe48b30 100644 --- a/service/apprunner/serializers.go +++ b/service/apprunner/serializers.go @@ -1994,6 +1994,13 @@ func awsAwsjson10_serializeDocumentCodeConfigurationValues(v *types.CodeConfigur ok.String(string(v.Runtime)) } + if v.RuntimeEnvironmentSecrets != nil { + ok := object.Key("RuntimeEnvironmentSecrets") + if err := awsAwsjson10_serializeDocumentRuntimeEnvironmentSecrets(v.RuntimeEnvironmentSecrets, ok); err != nil { + return err + } + } + if v.RuntimeEnvironmentVariables != nil { ok := object.Key("RuntimeEnvironmentVariables") if err := awsAwsjson10_serializeDocumentRuntimeEnvironmentVariables(v.RuntimeEnvironmentVariables, ok); err != nil { @@ -2110,6 +2117,13 @@ func awsAwsjson10_serializeDocumentImageConfiguration(v *types.ImageConfiguratio ok.String(*v.Port) } + if v.RuntimeEnvironmentSecrets != nil { + ok := object.Key("RuntimeEnvironmentSecrets") + if err := awsAwsjson10_serializeDocumentRuntimeEnvironmentSecrets(v.RuntimeEnvironmentSecrets, ok); err != nil { + return err + } + } + if v.RuntimeEnvironmentVariables != nil { ok := object.Key("RuntimeEnvironmentVariables") if err := awsAwsjson10_serializeDocumentRuntimeEnvironmentVariables(v.RuntimeEnvironmentVariables, ok); err != nil { @@ -2238,6 +2252,17 @@ func awsAwsjson10_serializeDocumentNetworkConfiguration(v *types.NetworkConfigur return nil } +func awsAwsjson10_serializeDocumentRuntimeEnvironmentSecrets(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + func awsAwsjson10_serializeDocumentRuntimeEnvironmentVariables(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/apprunner/types/types.go b/service/apprunner/types/types.go index 98121936a0b..10ae952b1b6 100644 --- a/service/apprunner/types/types.go +++ b/service/apprunner/types/types.go @@ -175,9 +175,24 @@ type CodeConfigurationValues struct { // The port that your application listens to in the container. Default: 8080 Port *string + // An array of key-value pairs representing the secrets and parameters that get + // referenced to your service as an environment variable. The supported values are + // either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the + // full ARN of the parameter in the Amazon Web Services Systems Manager Parameter + // Store. + // + // * If the Amazon Web Services Systems Manager Parameter Store parameter + // exists in the same Amazon Web Services Region as the service that you're + // launching, you can use either the full ARN or name of the secret. If the + // parameter exists in a different Region, then the full ARN must be specified. + // + // * + // Currently, cross account referencing of Amazon Web Services Systems Manager + // Parameter Store parameter is not supported. + RuntimeEnvironmentSecrets map[string]string + // The environment variables that are available to your running App Runner service. - // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for - // system use and aren't valid. + // An array of key-value pairs. RuntimeEnvironmentVariables map[string]string // The command App Runner runs to start your application. @@ -343,9 +358,24 @@ type ImageConfiguration struct { // The port that your application listens to in the container. Default: 8080 Port *string + // An array of key-value pairs representing the secrets and parameters that get + // referenced to your service as an environment variable. The supported values are + // either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the + // full ARN of the parameter in the Amazon Web Services Systems Manager Parameter + // Store. + // + // * If the Amazon Web Services Systems Manager Parameter Store parameter + // exists in the same Amazon Web Services Region as the service that you're + // launching, you can use either the full ARN or name of the secret. If the + // parameter exists in a different Region, then the full ARN must be specified. + // + // * + // Currently, cross account referencing of Amazon Web Services Systems Manager + // Parameter Store parameter is not supported. + RuntimeEnvironmentSecrets map[string]string + // Environment variables that are available to your running App Runner service. An - // array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for - // system use and aren't valid. + // array of key-value pairs. RuntimeEnvironmentVariables map[string]string // An optional command that App Runner runs to start the application in the source diff --git a/service/connect/types/enums.go b/service/connect/types/enums.go index 4461a0a19b5..7baa76ed148 100644 --- a/service/connect/types/enums.go +++ b/service/connect/types/enums.go @@ -194,6 +194,8 @@ const ( ContactInitiationMethodQueueTransfer ContactInitiationMethod = "QUEUE_TRANSFER" ContactInitiationMethodCallback ContactInitiationMethod = "CALLBACK" ContactInitiationMethodApi ContactInitiationMethod = "API" + ContactInitiationMethodDisconnect ContactInitiationMethod = "DISCONNECT" + ContactInitiationMethodMonitor ContactInitiationMethod = "MONITOR" ) // Values returns all known values for ContactInitiationMethod. Note that this can @@ -207,6 +209,8 @@ func (ContactInitiationMethod) Values() []ContactInitiationMethod { "QUEUE_TRANSFER", "CALLBACK", "API", + "DISCONNECT", + "MONITOR", } } diff --git a/service/emrserverless/api_op_CreateApplication.go b/service/emrserverless/api_op_CreateApplication.go index 4cbc00b07eb..bcb6989c923 100644 --- a/service/emrserverless/api_op_CreateApplication.go +++ b/service/emrserverless/api_op_CreateApplication.go @@ -36,7 +36,7 @@ type CreateApplicationInput struct { // This member is required. ClientToken *string - // The EMR release version associated with the application. + // The EMR release associated with the application. // // This member is required. ReleaseLabel *string @@ -56,6 +56,10 @@ type CreateApplicationInput struct { // amount of time being idle. AutoStopConfiguration *types.AutoStopConfig + // The image configuration for all worker types. You can either set this parameter + // or imageConfiguration for each worker type in workerTypeSpecifications. + ImageConfiguration *types.ImageConfigurationInput + // The capacity to initialize when the application is created. InitialCapacity map[string]types.InitialCapacityConfig @@ -74,6 +78,14 @@ type CreateApplicationInput struct { // The tags assigned to the application. Tags map[string]string + // The key-value pairs that specify worker type to WorkerTypeSpecificationInput. + // This parameter must contain all valid worker types for a Spark or Hive + // application. Valid worker types include Driver and Executor for Spark + // applications and HiveDriver and TezTask for Hive applications. You can either + // set image details in this parameter for each worker type, or in + // imageConfiguration for all worker types. + WorkerTypeSpecifications map[string]types.WorkerTypeSpecificationInput + noSmithyDocumentSerde } diff --git a/service/emrserverless/api_op_UpdateApplication.go b/service/emrserverless/api_op_UpdateApplication.go index 09e2cda62fe..64655eabbd4 100644 --- a/service/emrserverless/api_op_UpdateApplication.go +++ b/service/emrserverless/api_op_UpdateApplication.go @@ -52,6 +52,11 @@ type UpdateApplicationInput struct { // amount of time being idle. AutoStopConfiguration *types.AutoStopConfig + // The image configuration to be used for all worker types. You can either set this + // parameter or imageConfiguration for each worker type in + // WorkerTypeSpecificationInput. + ImageConfiguration *types.ImageConfigurationInput + // The capacity to initialize when the application is updated. InitialCapacity map[string]types.InitialCapacityConfig @@ -64,6 +69,14 @@ type UpdateApplicationInput struct { // The network configuration for customer VPC connectivity. NetworkConfiguration *types.NetworkConfiguration + // The key-value pairs that specify worker type to WorkerTypeSpecificationInput. + // This parameter must contain all valid worker types for a Spark or Hive + // application. Valid worker types include Driver and Executor for Spark + // applications and HiveDriver and TezTask for Hive applications. You can either + // set image details in this parameter for each worker type, or in + // imageConfiguration for all worker types. + WorkerTypeSpecifications map[string]types.WorkerTypeSpecificationInput + noSmithyDocumentSerde } diff --git a/service/emrserverless/deserializers.go b/service/emrserverless/deserializers.go index d01a7c51595..e9ff3e738e5 100644 --- a/service/emrserverless/deserializers.go +++ b/service/emrserverless/deserializers.go @@ -290,6 +290,9 @@ func awsRestjson1_deserializeOpErrorCreateApplication(response *smithyhttp.Respo case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -2329,6 +2332,11 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in } } + case "imageConfiguration": + if err := awsRestjson1_deserializeDocumentImageConfiguration(&sv.ImageConfiguration, value); err != nil { + return err + } + case "initialCapacity": if err := awsRestjson1_deserializeDocumentInitialCapacityConfigMap(&sv.InitialCapacity, value); err != nil { return err @@ -2410,6 +2418,11 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in } } + case "workerTypeSpecifications": + if err := awsRestjson1_deserializeDocumentWorkerTypeSpecificationMap(&sv.WorkerTypeSpecifications, value); err != nil { + return err + } + default: _, _ = key, value @@ -2940,6 +2953,55 @@ func awsRestjson1_deserializeDocumentHive(v **types.Hive, value interface{}) err return nil } +func awsRestjson1_deserializeDocumentImageConfiguration(v **types.ImageConfiguration, 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.ImageConfiguration + if *v == nil { + sv = &types.ImageConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "imageUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageUri to be of type string, got %T instead", value) + } + sv.ImageUri = ptr.String(jtv) + } + + case "resolvedImageDigest": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) + } + sv.ResolvedImageDigest = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentInitialCapacityConfig(v **types.InitialCapacityConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -4229,3 +4291,74 @@ func awsRestjson1_deserializeDocumentWorkerResourceConfig(v **types.WorkerResour *v = sv return nil } + +func awsRestjson1_deserializeDocumentWorkerTypeSpecification(v **types.WorkerTypeSpecification, 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.WorkerTypeSpecification + if *v == nil { + sv = &types.WorkerTypeSpecification{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "imageConfiguration": + if err := awsRestjson1_deserializeDocumentImageConfiguration(&sv.ImageConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentWorkerTypeSpecificationMap(v *map[string]types.WorkerTypeSpecification, 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 mv map[string]types.WorkerTypeSpecification + if *v == nil { + mv = map[string]types.WorkerTypeSpecification{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.WorkerTypeSpecification + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentWorkerTypeSpecification(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} diff --git a/service/emrserverless/serializers.go b/service/emrserverless/serializers.go index 01c7c30642f..c257519b42a 100644 --- a/service/emrserverless/serializers.go +++ b/service/emrserverless/serializers.go @@ -166,6 +166,13 @@ func awsRestjson1_serializeOpDocumentCreateApplicationInput(v *CreateApplication ok.String(*v.ClientToken) } + if v.ImageConfiguration != nil { + ok := object.Key("imageConfiguration") + if err := awsRestjson1_serializeDocumentImageConfigurationInput(v.ImageConfiguration, ok); err != nil { + return err + } + } + if v.InitialCapacity != nil { ok := object.Key("initialCapacity") if err := awsRestjson1_serializeDocumentInitialCapacityConfigMap(v.InitialCapacity, ok); err != nil { @@ -209,6 +216,13 @@ func awsRestjson1_serializeOpDocumentCreateApplicationInput(v *CreateApplication ok.String(*v.Type) } + if v.WorkerTypeSpecifications != nil { + ok := object.Key("workerTypeSpecifications") + if err := awsRestjson1_serializeDocumentWorkerTypeSpecificationInputMap(v.WorkerTypeSpecifications, ok); err != nil { + return err + } + } + return nil } @@ -1140,6 +1154,13 @@ func awsRestjson1_serializeOpDocumentUpdateApplicationInput(v *UpdateApplication ok.String(*v.ClientToken) } + if v.ImageConfiguration != nil { + ok := object.Key("imageConfiguration") + if err := awsRestjson1_serializeDocumentImageConfigurationInput(v.ImageConfiguration, ok); err != nil { + return err + } + } + if v.InitialCapacity != nil { ok := object.Key("initialCapacity") if err := awsRestjson1_serializeDocumentInitialCapacityConfigMap(v.InitialCapacity, ok); err != nil { @@ -1161,6 +1182,13 @@ func awsRestjson1_serializeOpDocumentUpdateApplicationInput(v *UpdateApplication } } + if v.WorkerTypeSpecifications != nil { + ok := object.Key("workerTypeSpecifications") + if err := awsRestjson1_serializeDocumentWorkerTypeSpecificationInputMap(v.WorkerTypeSpecifications, ok); err != nil { + return err + } + } + return nil } @@ -1286,6 +1314,18 @@ func awsRestjson1_serializeDocumentHive(v *types.Hive, value smithyjson.Value) e return nil } +func awsRestjson1_serializeDocumentImageConfigurationInput(v *types.ImageConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ImageUri != nil { + ok := object.Key("imageUri") + ok.String(*v.ImageUri) + } + + return nil +} + func awsRestjson1_serializeDocumentInitialCapacityConfig(v *types.InitialCapacityConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1530,3 +1570,31 @@ func awsRestjson1_serializeDocumentWorkerResourceConfig(v *types.WorkerResourceC return nil } + +func awsRestjson1_serializeDocumentWorkerTypeSpecificationInput(v *types.WorkerTypeSpecificationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ImageConfiguration != nil { + ok := object.Key("imageConfiguration") + if err := awsRestjson1_serializeDocumentImageConfigurationInput(v.ImageConfiguration, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentWorkerTypeSpecificationInputMap(v map[string]types.WorkerTypeSpecificationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentWorkerTypeSpecificationInput(&mapVar, om); err != nil { + return err + } + } + return nil +} diff --git a/service/emrserverless/types/types.go b/service/emrserverless/types/types.go index 725e3d49e1e..a02edee7350 100644 --- a/service/emrserverless/types/types.go +++ b/service/emrserverless/types/types.go @@ -25,7 +25,7 @@ type Application struct { // This member is required. CreatedAt *time.Time - // The EMR release version associated with the application. + // The EMR release associated with the application. // // This member is required. ReleaseLabel *string @@ -55,6 +55,9 @@ type Application struct { // amount of time being idle. AutoStopConfiguration *AutoStopConfig + // The image configuration applied to all worker types. + ImageConfiguration *ImageConfiguration + // The initial capacity of the application. InitialCapacity map[string]InitialCapacityConfig @@ -75,6 +78,9 @@ type Application struct { // The tags assigned to the application. Tags map[string]string + // The specification applied to each worker type. + WorkerTypeSpecifications map[string]WorkerTypeSpecification + noSmithyDocumentSerde } @@ -96,7 +102,7 @@ type ApplicationSummary struct { // This member is required. Id *string - // The EMR release version associated with the application. + // The EMR release associated with the application. // // This member is required. ReleaseLabel *string @@ -202,6 +208,33 @@ type Hive struct { noSmithyDocumentSerde } +// The applied image configuration. +type ImageConfiguration struct { + + // The image URI. + // + // This member is required. + ImageUri *string + + // The SHA256 digest of the image URI. This indicates which specific image the + // application is configured for. The image digest doesn't exist until an + // application has started. + ResolvedImageDigest *string + + noSmithyDocumentSerde +} + +// The image configuration. +type ImageConfigurationInput struct { + + // The URI of an image in the Amazon ECR registry. This field is required when you + // create a new application. If you leave this field blank in an update, Amazon EMR + // will remove the image configuration. + ImageUri *string + + noSmithyDocumentSerde +} + // The initial capacity configuration per worker. type InitialCapacityConfig struct { @@ -283,7 +316,7 @@ type JobRun struct { // This member is required. JobRunId *string - // The EMR release version associated with the application your job is running on. + // The EMR release associated with the application your job is running on. // // This member is required. ReleaseLabel *string @@ -359,7 +392,7 @@ type JobRunSummary struct { // This member is required. Id *string - // The EMR release version associated with the application your job is running on. + // The EMR release associated with the application your job is running on. // // This member is required. ReleaseLabel *string @@ -515,6 +548,24 @@ type WorkerResourceConfig struct { noSmithyDocumentSerde } +// The specifications for a worker type. +type WorkerTypeSpecification struct { + + // The image configuration for a worker type. + ImageConfiguration *ImageConfiguration + + noSmithyDocumentSerde +} + +// The specifications for a worker type. +type WorkerTypeSpecificationInput struct { + + // The image configuration for a worker type. + ImageConfiguration *ImageConfigurationInput + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde // UnknownUnionMember is returned when a union member is returned over the wire, diff --git a/service/lightsail/api_op_CreateDomain.go b/service/lightsail/api_op_CreateDomain.go index 78f9241d68c..e02219a1486 100644 --- a/service/lightsail/api_op_CreateDomain.go +++ b/service/lightsail/api_op_CreateDomain.go @@ -32,11 +32,7 @@ func (c *Client) CreateDomain(ctx context.Context, params *CreateDomainInput, op type CreateDomainInput struct { - // The domain name to manage (e.g., example.com). You cannot register a new domain - // name using Lightsail. You must register a domain name using Amazon Route 53 or - // another domain name registrar. If you have already registered your domain, you - // can enter its name in this parameter to manage the DNS records for that domain - // using Lightsail. + // The domain name to manage (e.g., example.com). // // This member is required. DomainName *string diff --git a/service/lightsail/api_op_DeleteDisk.go b/service/lightsail/api_op_DeleteDisk.go index 79668dcf213..670f3f3e87c 100644 --- a/service/lightsail/api_op_DeleteDisk.go +++ b/service/lightsail/api_op_DeleteDisk.go @@ -39,7 +39,7 @@ type DeleteDiskInput struct { // This member is required. DiskName *string - // A Boolean value to indicate whether to delete the enabled add-ons for the disk. + // A Boolean value to indicate whether to delete all add-ons for the disk. ForceDeleteAddOns *bool noSmithyDocumentSerde diff --git a/service/lightsail/api_op_DeleteInstance.go b/service/lightsail/api_op_DeleteInstance.go index 0d3025cd3ff..42f9fb74a2e 100644 --- a/service/lightsail/api_op_DeleteInstance.go +++ b/service/lightsail/api_op_DeleteInstance.go @@ -37,7 +37,7 @@ type DeleteInstanceInput struct { // This member is required. InstanceName *string - // A Boolean value to indicate whether to delete the enabled add-ons for the disk. + // A Boolean value to indicate whether to delete all add-ons for the instance. ForceDeleteAddOns *bool noSmithyDocumentSerde diff --git a/service/mwaa/api_op_CreateEnvironment.go b/service/mwaa/api_op_CreateEnvironment.go index 306193ab808..66b45ca9fef 100644 --- a/service/mwaa/api_op_CreateEnvironment.go +++ b/service/mwaa/api_op_CreateEnvironment.go @@ -81,9 +81,9 @@ type CreateEnvironmentInput struct { AirflowConfigurationOptions map[string]string // The Apache Airflow version for your environment. If no value is specified, it - // defaults to the latest version. Valid values: 1.10.12, 2.0.2, and 2.2.2. To - // learn more, see Apache Airflow versions on Amazon Managed Workflows for Apache - // Airflow (MWAA) + // defaults to the latest version. Valid values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. + // For more information, see Apache Airflow versions on Amazon Managed Workflows + // for Apache Airflow (MWAA) // (https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions.html). AirflowVersion *string diff --git a/service/mwaa/api_op_UpdateEnvironment.go b/service/mwaa/api_op_UpdateEnvironment.go index 3b83b9fc693..6b7ed6da643 100644 --- a/service/mwaa/api_op_UpdateEnvironment.go +++ b/service/mwaa/api_op_UpdateEnvironment.go @@ -42,7 +42,7 @@ type UpdateEnvironmentInput struct { AirflowConfigurationOptions map[string]string // The Apache Airflow version for your environment. If no value is specified, - // defaults to the latest version. Valid values: 1.10.12, 2.0.2, and 2.2.2. + // defaults to the latest version. Valid values: 1.10.12, 2.0.2, 2.2.2, and 2.4.3. AirflowVersion *string // The relative path to the DAGs folder on your Amazon S3 bucket. For example, diff --git a/service/mwaa/types/types.go b/service/mwaa/types/types.go index 285f36647e8..7e69325ff4e 100644 --- a/service/mwaa/types/types.go +++ b/service/mwaa/types/types.go @@ -36,7 +36,7 @@ type Environment struct { AirflowConfigurationOptions map[string]string // The Apache Airflow version on your environment. Valid values: 1.10.12, 2.0.2, - // and 2.2.2. + // 2.2.2, and 2.4.3. AirflowVersion *string // The Amazon Resource Name (ARN) of the Amazon MWAA environment. diff --git a/service/rds/api_op_CreateCustomDBEngineVersion.go b/service/rds/api_op_CreateCustomDBEngineVersion.go index d5d692c4173..7ba50cb5bbd 100644 --- a/service/rds/api_op_CreateCustomDBEngineVersion.go +++ b/service/rds/api_op_CreateCustomDBEngineVersion.go @@ -161,6 +161,15 @@ type CreateCustomDBEngineVersionOutput struct { // The status of the DB engine version, either available or deprecated. Status *string + // A list of the supported CA certificate identifiers. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. + SupportedCACertificateIdentifiers []string + // A list of the character sets supported by this engine for the CharacterSetName // parameter of the CreateDBInstance operation. SupportedCharacterSets []types.CharacterSet @@ -190,6 +199,10 @@ type CreateCustomDBEngineVersionOutput struct { // PostgreSQL. SupportsBabelfish bool + // A value that indicates whether the engine version supports rotating the server + // certificate without rebooting the DB instance. + SupportsCertificateRotationWithoutRestart *bool + // A value that indicates whether you can use Aurora global databases with a // specific DB engine version. SupportsGlobalDatabases bool diff --git a/service/rds/api_op_CreateDBInstance.go b/service/rds/api_op_CreateDBInstance.go index a3576d28d90..89301c2c062 100644 --- a/service/rds/api_op_CreateDBInstance.go +++ b/service/rds/api_op_CreateDBInstance.go @@ -249,6 +249,16 @@ type CreateDBInstanceInput struct { // the Amazon RDS User Guide. BackupTarget *string + // Specifies the CA certificate identifier to use for the DB instance’s server + // certificate. This setting doesn't apply to RDS Custom. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. + CACertificateIdentifier *string + // For supported engines, this value indicates that the DB instance should be // associated with the specified CharacterSet. This setting doesn't apply to RDS // Custom. However, if you need to change the character set, you can change it on diff --git a/service/rds/api_op_DeleteCustomDBEngineVersion.go b/service/rds/api_op_DeleteCustomDBEngineVersion.go index 33f1cdf7a95..8531038a3dc 100644 --- a/service/rds/api_op_DeleteCustomDBEngineVersion.go +++ b/service/rds/api_op_DeleteCustomDBEngineVersion.go @@ -130,6 +130,15 @@ type DeleteCustomDBEngineVersionOutput struct { // The status of the DB engine version, either available or deprecated. Status *string + // A list of the supported CA certificate identifiers. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. + SupportedCACertificateIdentifiers []string + // A list of the character sets supported by this engine for the CharacterSetName // parameter of the CreateDBInstance operation. SupportedCharacterSets []types.CharacterSet @@ -159,6 +168,10 @@ type DeleteCustomDBEngineVersionOutput struct { // PostgreSQL. SupportsBabelfish bool + // A value that indicates whether the engine version supports rotating the server + // certificate without rebooting the DB instance. + SupportsCertificateRotationWithoutRestart *bool + // A value that indicates whether you can use Aurora global databases with a // specific DB engine version. SupportsGlobalDatabases bool diff --git a/service/rds/api_op_DescribeCertificates.go b/service/rds/api_op_DescribeCertificates.go index 476c9da6530..7649e59f281 100644 --- a/service/rds/api_op_DescribeCertificates.go +++ b/service/rds/api_op_DescribeCertificates.go @@ -13,7 +13,13 @@ import ( ) // Lists the set of CA certificates provided by Amazon RDS for this Amazon Web -// Services account. +// Services account. For more information, see Using SSL/TLS to encrypt a +// connection to a DB instance +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) +// in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB +// cluster +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) +// in the Amazon Aurora User Guide. func (c *Client) DescribeCertificates(ctx context.Context, params *DescribeCertificatesInput, optFns ...func(*Options)) (*DescribeCertificatesOutput, error) { if params == nil { params = &DescribeCertificatesInput{} diff --git a/service/rds/api_op_ModifyCertificates.go b/service/rds/api_op_ModifyCertificates.go index ea4b910cff4..693b81df262 100644 --- a/service/rds/api_op_ModifyCertificates.go +++ b/service/rds/api_op_ModifyCertificates.go @@ -69,7 +69,13 @@ type ModifyCertificatesInput struct { type ModifyCertificatesOutput struct { - // A CA certificate for an Amazon Web Services account. + // A CA certificate for an Amazon Web Services account. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. Certificate *types.Certificate // Metadata pertaining to the operation's result. diff --git a/service/rds/api_op_ModifyCustomDBEngineVersion.go b/service/rds/api_op_ModifyCustomDBEngineVersion.go index 7dfe08ff3c9..fc42535fe3c 100644 --- a/service/rds/api_op_ModifyCustomDBEngineVersion.go +++ b/service/rds/api_op_ModifyCustomDBEngineVersion.go @@ -135,6 +135,15 @@ type ModifyCustomDBEngineVersionOutput struct { // The status of the DB engine version, either available or deprecated. Status *string + // A list of the supported CA certificate identifiers. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. + SupportedCACertificateIdentifiers []string + // A list of the character sets supported by this engine for the CharacterSetName // parameter of the CreateDBInstance operation. SupportedCharacterSets []types.CharacterSet @@ -164,6 +173,10 @@ type ModifyCustomDBEngineVersionOutput struct { // PostgreSQL. SupportsBabelfish bool + // A value that indicates whether the engine version supports rotating the server + // certificate without rebooting the DB instance. + SupportsCertificateRotationWithoutRestart *bool + // A value that indicates whether you can use Aurora global databases with a // specific DB engine version. SupportsGlobalDatabases bool diff --git a/service/rds/api_op_ModifyDBCluster.go b/service/rds/api_op_ModifyDBCluster.go index 0a403f1ce29..37c6fbc91f5 100644 --- a/service/rds/api_op_ModifyDBCluster.go +++ b/service/rds/api_op_ModifyDBCluster.go @@ -320,7 +320,7 @@ type ModifyDBClusterInput struct { // Can't end with a hyphen or contain two consecutive hyphens // // Example: my-cluster2 - // Valid for: Aurora DB clusters only + // Valid for: Aurora DB clusters and Multi-AZ DB clusters NewDBClusterIdentifier *string // A value that indicates that the DB cluster should be associated with the diff --git a/service/rds/api_op_ModifyDBInstance.go b/service/rds/api_op_ModifyDBInstance.go index 0722888472c..1898e203934 100644 --- a/service/rds/api_op_ModifyDBInstance.go +++ b/service/rds/api_op_ModifyDBInstance.go @@ -120,8 +120,14 @@ type ModifyDBInstanceInput struct { // PostgreSQL read replica only if the source is running PostgreSQL 9.3.5. BackupRetentionPeriod *int32 - // Specifies the certificate to associate with the DB instance. This setting - // doesn't apply to RDS Custom. + // Specifies the CA certificate identifier to use for the DB instance’s server + // certificate. This setting doesn't apply to RDS Custom. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. CACertificateIdentifier *string // A value that indicates whether the DB instance is restarted when you rotate your diff --git a/service/rds/api_op_StartExportTask.go b/service/rds/api_op_StartExportTask.go index e39cad3dd28..024d117f62e 100644 --- a/service/rds/api_op_StartExportTask.go +++ b/service/rds/api_op_StartExportTask.go @@ -46,31 +46,29 @@ type StartExportTaskInput struct { // The ID of the Amazon Web Services KMS key to use to encrypt the snapshot // exported to Amazon S3. The Amazon Web Services KMS key identifier is the key // ARN, key ID, alias ARN, or alias name for the KMS key. The caller of this - // operation must be authorized to execute the following operations. These can be - // set in the Amazon Web Services KMS key policy: + // operation must be authorized to run the following operations. These can be set + // in the Amazon Web Services KMS key policy: // - // * GrantOperation.Encrypt + // * kms:Encrypt // - // * - // GrantOperation.Decrypt - // - // * GrantOperation.GenerateDataKey + // * kms:Decrypt // // * - // GrantOperation.GenerateDataKeyWithoutPlaintext + // kms:GenerateDataKey + // + // * kms:GenerateDataKeyWithoutPlaintext // // * - // GrantOperation.ReEncryptFrom + // kms:ReEncryptFrom // - // * GrantOperation.ReEncryptTo + // * kms:ReEncryptTo // - // * - // GrantOperation.CreateGrant + // * kms:CreateGrant // - // * GrantOperation.DescribeKey + // * kms:DescribeKey // // * - // GrantOperation.RetireGrant + // kms:RetireGrant // // This member is required. KmsKeyId *string diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 5c27ef55f36..19b450b7813 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -2296,6 +2296,9 @@ func awsAwsquery_deserializeOpErrorCreateDBInstance(response *smithyhttp.Respons case strings.EqualFold("BackupPolicyNotFoundFault", errorCode): return awsAwsquery_deserializeErrorBackupPolicyNotFoundFault(response, errorBody) + case strings.EqualFold("CertificateNotFound", errorCode): + return awsAwsquery_deserializeErrorCertificateNotFoundFault(response, errorBody) + case strings.EqualFold("DBClusterNotFoundFault", errorCode): return awsAwsquery_deserializeErrorDBClusterNotFoundFault(response, errorBody) @@ -22903,6 +22906,86 @@ func awsAwsquery_deserializeDocumentBlueGreenDeploymentTaskListUnwrapped(v *[]ty *v = sv return nil } +func awsAwsquery_deserializeDocumentCACertificateIdentifiersList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCACertificateIdentifiersListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -23058,6 +23141,72 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s return nil } +func awsAwsquery_deserializeDocumentCertificateDetails(v **types.CertificateDetails, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CertificateDetails + if *v == nil { + sv = &types.CertificateDetails{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("CAIdentifier", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CAIdentifier = ptr.String(xtv) + } + + case strings.EqualFold("ValidTill", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ValidTill = ptr.Time(t) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -27229,6 +27378,12 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d sv.Status = ptr.String(xtv) } + case strings.EqualFold("SupportedCACertificateIdentifiers", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCACertificateIdentifiersList(&sv.SupportedCACertificateIdentifiers, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("SupportedCharacterSets", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentSupportedCharacterSetsList(&sv.SupportedCharacterSets, nodeDecoder); err != nil { @@ -27275,6 +27430,22 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d sv.SupportsBabelfish = xtv } + case strings.EqualFold("SupportsCertificateRotationWithoutRestart", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsCertificateRotationWithoutRestart = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsGlobalDatabases", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -27674,6 +27845,12 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi sv.CACertificateIdentifier = ptr.String(xtv) } + case strings.EqualFold("CertificateDetails", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCertificateDetails(&sv.CertificateDetails, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("CharacterSetName", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -47025,6 +47202,12 @@ func awsAwsquery_deserializeOpDocumentCreateCustomDBEngineVersionOutput(v **Crea sv.Status = ptr.String(xtv) } + case strings.EqualFold("SupportedCACertificateIdentifiers", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCACertificateIdentifiersList(&sv.SupportedCACertificateIdentifiers, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("SupportedCharacterSets", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentSupportedCharacterSetsList(&sv.SupportedCharacterSets, nodeDecoder); err != nil { @@ -47071,6 +47254,22 @@ func awsAwsquery_deserializeOpDocumentCreateCustomDBEngineVersionOutput(v **Crea sv.SupportsBabelfish = xtv } + case strings.EqualFold("SupportsCertificateRotationWithoutRestart", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsCertificateRotationWithoutRestart = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsGlobalDatabases", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -48169,6 +48368,12 @@ func awsAwsquery_deserializeOpDocumentDeleteCustomDBEngineVersionOutput(v **Dele sv.Status = ptr.String(xtv) } + case strings.EqualFold("SupportedCACertificateIdentifiers", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCACertificateIdentifiersList(&sv.SupportedCACertificateIdentifiers, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("SupportedCharacterSets", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentSupportedCharacterSetsList(&sv.SupportedCharacterSets, nodeDecoder); err != nil { @@ -48215,6 +48420,22 @@ func awsAwsquery_deserializeOpDocumentDeleteCustomDBEngineVersionOutput(v **Dele sv.SupportsBabelfish = xtv } + case strings.EqualFold("SupportsCertificateRotationWithoutRestart", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsCertificateRotationWithoutRestart = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsGlobalDatabases", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -51627,6 +51848,12 @@ func awsAwsquery_deserializeOpDocumentModifyCustomDBEngineVersionOutput(v **Modi sv.Status = ptr.String(xtv) } + case strings.EqualFold("SupportedCACertificateIdentifiers", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCACertificateIdentifiersList(&sv.SupportedCACertificateIdentifiers, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("SupportedCharacterSets", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentSupportedCharacterSetsList(&sv.SupportedCharacterSets, nodeDecoder); err != nil { @@ -51673,6 +51900,22 @@ func awsAwsquery_deserializeOpDocumentModifyCustomDBEngineVersionOutput(v **Modi sv.SupportsBabelfish = xtv } + case strings.EqualFold("SupportsCertificateRotationWithoutRestart", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsCertificateRotationWithoutRestart = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsGlobalDatabases", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/rds/serializers.go b/service/rds/serializers.go index 8a6830d68df..2a8c1692dbb 100644 --- a/service/rds/serializers.go +++ b/service/rds/serializers.go @@ -10544,6 +10544,11 @@ func awsAwsquery_serializeOpDocumentCreateDBInstanceInput(v *CreateDBInstanceInp objectKey.String(*v.BackupTarget) } + if v.CACertificateIdentifier != nil { + objectKey := object.Key("CACertificateIdentifier") + objectKey.String(*v.CACertificateIdentifier) + } + if v.CharacterSetName != nil { objectKey := object.Key("CharacterSetName") objectKey.String(*v.CharacterSetName) diff --git a/service/rds/types/types.go b/service/rds/types/types.go index d5e73eac47c..828882bdf10 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -243,7 +243,13 @@ type BlueGreenDeploymentTask struct { noSmithyDocumentSerde } -// A CA certificate for an Amazon Web Services account. +// A CA certificate for an Amazon Web Services account. For more information, see +// Using SSL/TLS to encrypt a connection to a DB instance +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) +// in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB +// cluster +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) +// in the Amazon Aurora User Guide. type Certificate struct { // The Amazon Resource Name (ARN) for the certificate. @@ -274,6 +280,25 @@ type Certificate struct { noSmithyDocumentSerde } +// Returns the details of the DB instance’s server certificate. For more +// information, see Using SSL/TLS to encrypt a connection to a DB instance +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) +// in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB +// cluster +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) +// in the Amazon Aurora User Guide. +type CertificateDetails struct { + + // The CA identifier of the CA certificate used for the DB instance's server + // certificate. + CAIdentifier *string + + // The expiration date of the DB instance’s server certificate. + ValidTill *time.Time + + noSmithyDocumentSerde +} + // This data type is used as a response element in the action // DescribeDBEngineVersions. type CharacterSet struct { @@ -1200,6 +1225,15 @@ type DBEngineVersion struct { // The status of the DB engine version, either available or deprecated. Status *string + // A list of the supported CA certificate identifiers. For more information, see + // Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. + SupportedCACertificateIdentifiers []string + // A list of the character sets supported by this engine for the CharacterSetName // parameter of the CreateDBInstance operation. SupportedCharacterSets []CharacterSet @@ -1229,6 +1263,10 @@ type DBEngineVersion struct { // PostgreSQL. SupportsBabelfish bool + // A value that indicates whether the engine version supports rotating the server + // certificate without rebooting the DB instance. + SupportsCertificateRotationWithoutRestart *bool + // A value that indicates whether you can use Aurora global databases with a // specific DB engine version. SupportsGlobalDatabases bool @@ -1320,9 +1358,18 @@ type DBInstance struct { // Services Outposts or the Amazon Web Services Region. BackupTarget *string - // The identifier of the CA certificate for this DB instance. + // The identifier of the CA certificate for this DB instance. For more information, + // see Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. CACertificateIdentifier *string + // The details of the DB instance's server certificate. + CertificateDetails *CertificateDetails + // If present, specifies the name of the character set that this instance is // associated with. CharacterSetName *string @@ -3364,7 +3411,13 @@ type PendingModifiedValues struct { // The number of days for which automated backups are retained. BackupRetentionPeriod *int32 - // The identifier of the CA certificate for the DB instance. + // The identifier of the CA certificate for the DB instance. For more information, + // see Using SSL/TLS to encrypt a connection to a DB instance + // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + // in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB + // cluster + // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + // in the Amazon Aurora User Guide. CACertificateIdentifier *string // The name of the compute and memory capacity class for the DB instance.