From f0c890c5eaf354ff23feb727ded9f50aaee9f1c4 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Tue, 28 Nov 2023 05:41:04 +0000 Subject: [PATCH] Regenerated Clients --- .../894c869cf8b24417b03a58768ac3080e.json | 8 + service/b2bi/api_client.go | 4 +- .../api_op_CopyServerlessCacheSnapshot.go | 153 + .../elasticache/api_op_CreateCacheCluster.go | 46 +- .../api_op_CreateReplicationGroup.go | 50 +- .../api_op_CreateServerlessCache.go | 193 + .../api_op_CreateServerlessCacheSnapshot.go | 154 + service/elasticache/api_op_CreateUserGroup.go | 7 +- .../api_op_DeleteServerlessCache.go | 142 + .../api_op_DeleteServerlessCacheSnapshot.go | 137 + service/elasticache/api_op_DeleteUserGroup.go | 4 + .../api_op_DescribeReservedCacheNodes.go | 46 +- ..._op_DescribeReservedCacheNodesOfferings.go | 46 +- ...api_op_DescribeServerlessCacheSnapshots.go | 259 + .../api_op_DescribeServerlessCaches.go | 246 + .../api_op_ExportServerlessCacheSnapshot.go | 146 + .../api_op_ModifyReplicationGroup.go | 3 +- .../api_op_ModifyServerlessCache.go | 172 + service/elasticache/api_op_ModifyUserGroup.go | 4 + service/elasticache/deserializers.go | 11719 ++++++++++------ service/elasticache/generated.json | 9 + service/elasticache/serializers.go | 978 +- service/elasticache/types/enums.go | 34 +- service/elasticache/types/errors.go | 248 + service/elasticache/types/types.go | 399 +- service/elasticache/validators.go | 350 + .../internal/endpoints/endpoints.go | 23 + 27 files changed, 11198 insertions(+), 4382 deletions(-) create mode 100644 .changelog/894c869cf8b24417b03a58768ac3080e.json create mode 100644 service/elasticache/api_op_CopyServerlessCacheSnapshot.go create mode 100644 service/elasticache/api_op_CreateServerlessCache.go create mode 100644 service/elasticache/api_op_CreateServerlessCacheSnapshot.go create mode 100644 service/elasticache/api_op_DeleteServerlessCache.go create mode 100644 service/elasticache/api_op_DeleteServerlessCacheSnapshot.go create mode 100644 service/elasticache/api_op_DescribeServerlessCacheSnapshots.go create mode 100644 service/elasticache/api_op_DescribeServerlessCaches.go create mode 100644 service/elasticache/api_op_ExportServerlessCacheSnapshot.go create mode 100644 service/elasticache/api_op_ModifyServerlessCache.go diff --git a/.changelog/894c869cf8b24417b03a58768ac3080e.json b/.changelog/894c869cf8b24417b03a58768ac3080e.json new file mode 100644 index 00000000000..d4600f99582 --- /dev/null +++ b/.changelog/894c869cf8b24417b03a58768ac3080e.json @@ -0,0 +1,8 @@ +{ + "id": "894c869c-f8b2-4417-b03a-58768ac3080e", + "type": "feature", + "description": "Launching Amazon ElastiCache Serverless that enables you to create a cache in under a minute without any capacity management. ElastiCache Serverless monitors the cache's memory, CPU, and network usage and scales both vertically and horizontally to support your application's requirements.", + "modules": [ + "service/elasticache" + ] +} \ No newline at end of file diff --git a/service/b2bi/api_client.go b/service/b2bi/api_client.go index 52abaf812d2..eb482b44091 100644 --- a/service/b2bi/api_client.go +++ b/service/b2bi/api_client.go @@ -45,8 +45,6 @@ func New(options Options, optFns ...func(*Options)) *Client { setResolvedDefaultsMode(&options) - resolveRetryer(&options) - resolveHTTPClient(&options) resolveHTTPSignerV4(&options) @@ -61,6 +59,8 @@ func New(options Options, optFns ...func(*Options)) *Client { fn(&options) } + resolveRetryer(&options) + ignoreAnonymousAuth(&options) resolveAuthSchemes(&options) diff --git a/service/elasticache/api_op_CopyServerlessCacheSnapshot.go b/service/elasticache/api_op_CopyServerlessCacheSnapshot.go new file mode 100644 index 00000000000..fce28df40f0 --- /dev/null +++ b/service/elasticache/api_op_CopyServerlessCacheSnapshot.go @@ -0,0 +1,153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a copy of an existing serverless cache’s snapshot. Available for Redis +// only. +func (c *Client) CopyServerlessCacheSnapshot(ctx context.Context, params *CopyServerlessCacheSnapshotInput, optFns ...func(*Options)) (*CopyServerlessCacheSnapshotOutput, error) { + if params == nil { + params = &CopyServerlessCacheSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CopyServerlessCacheSnapshot", params, optFns, c.addOperationCopyServerlessCacheSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CopyServerlessCacheSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CopyServerlessCacheSnapshotInput struct { + + // The identifier of the existing serverless cache’s snapshot to be copied. + // Available for Redis only. + // + // This member is required. + SourceServerlessCacheSnapshotName *string + + // The identifier for the snapshot to be created. Available for Redis only. + // + // This member is required. + TargetServerlessCacheSnapshotName *string + + // The identifier of the KMS key used to encrypt the target snapshot. Available + // for Redis only. + KmsKeyId *string + + // A list of tags to be added to the target snapshot resource. A tag is a + // key-value pair. Available for Redis only. Default: NULL + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CopyServerlessCacheSnapshotOutput struct { + + // The response for the attempt to copy the serverless cache snapshot. Available + // for Redis only. + ServerlessCacheSnapshot *types.ServerlessCacheSnapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCopyServerlessCacheSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpCopyServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCopyServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CopyServerlessCacheSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCopyServerlessCacheSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCopyServerlessCacheSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCopyServerlessCacheSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CopyServerlessCacheSnapshot", + } +} diff --git a/service/elasticache/api_op_CreateCacheCluster.go b/service/elasticache/api_op_CreateCacheCluster.go index 2485ff2927c..baab36ec2be 100644 --- a/service/elasticache/api_op_CreateCacheCluster.go +++ b/service/elasticache/api_op_CreateCacheCluster.go @@ -69,19 +69,20 @@ type CreateCacheClusterInput struct { // current generation types provide more memory and computational power at lower // cost when compared to their equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -92,15 +93,16 @@ type CreateCacheClusterInput struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node diff --git a/service/elasticache/api_op_CreateReplicationGroup.go b/service/elasticache/api_op_CreateReplicationGroup.go index b9262940e41..553495e2407 100644 --- a/service/elasticache/api_op_CreateReplicationGroup.go +++ b/service/elasticache/api_op_CreateReplicationGroup.go @@ -107,19 +107,20 @@ type CreateReplicationGroupInput struct { // current generation types provide more memory and computational power at lower // cost when compared to their equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -130,15 +131,16 @@ type CreateReplicationGroupInput struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -303,6 +305,10 @@ type CreateReplicationGroupInput struct { // Virtual Private Cloud (Amazon VPC). SecurityGroupIds []string + // The name of the snapshot used to create a replication group. Available for + // Redis only. + ServerlessCacheSnapshotName *string + // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB // snapshot files stored in Amazon S3. The snapshot files are used to populate the // new replication group. The Amazon S3 object name in the ARN cannot contain any diff --git a/service/elasticache/api_op_CreateServerlessCache.go b/service/elasticache/api_op_CreateServerlessCache.go new file mode 100644 index 00000000000..b6908bc8ce6 --- /dev/null +++ b/service/elasticache/api_op_CreateServerlessCache.go @@ -0,0 +1,193 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a serverless cache. +func (c *Client) CreateServerlessCache(ctx context.Context, params *CreateServerlessCacheInput, optFns ...func(*Options)) (*CreateServerlessCacheOutput, error) { + if params == nil { + params = &CreateServerlessCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateServerlessCache", params, optFns, c.addOperationCreateServerlessCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateServerlessCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateServerlessCacheInput struct { + + // The name of the cache engine to be used for creating the serverless cache. + // + // This member is required. + Engine *string + + // User-provided identifier for the serverless cache. This parameter is stored as + // a lowercase string. + // + // This member is required. + ServerlessCacheName *string + + // Sets the cache usage limits for storage and ElastiCache Processing Units for + // the cache. + CacheUsageLimits *types.CacheUsageLimits + + // The daily time that snapshots will be created from the new serverless cache. By + // default this number is populated with 0, i.e. no snapshots will be created on an + // automatic daily basis. Available for Redis only. + DailySnapshotTime *string + + // User-provided description for the serverless cache. The default is NULL, i.e. + // if no description is provided then an empty string will be returned. The maximum + // length is 255 characters. + Description *string + + // ARN of the customer managed key for encrypting the data at rest. If no KMS key + // is provided, a default service key is used. + KmsKeyId *string + + // The version of the cache engine that will be used to create the serverless + // cache. + MajorEngineVersion *string + + // A list of the one or more VPC security groups to be associated with the + // serverless cache. The security group will authorize traffic access for the VPC + // end-point (private-link). If no other information is given this will be the + // VPC’s Default Security Group that is associated with the cluster VPC end-point. + SecurityGroupIds []string + + // The ARN(s) of the snapshot that the new serverless cache will be created from. + // Available for Redis only. + SnapshotArnsToRestore []string + + // The number of snapshots that will be retained for the serverless cache that is + // being created. As new snapshots beyond this limit are added, the oldest + // snapshots will be deleted on a rolling basis. Available for Redis only. + SnapshotRetentionLimit *int32 + + // A list of the identifiers of the subnets where the VPC endpoint for the + // serverless cache will be deployed. All the subnetIds must belong to the same + // VPC. + SubnetIds []string + + // The list of tags (key, value) pairs to be added to the serverless cache + // resource. Default is NULL. + Tags []types.Tag + + // The identifier of the UserGroup to be associated with the serverless cache. + // Available for Redis only. Default is NULL. + UserGroupId *string + + noSmithyDocumentSerde +} + +type CreateServerlessCacheOutput struct { + + // The response for the attempt to create the serverless cache. + ServerlessCache *types.ServerlessCache + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateServerlessCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateServerlessCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateServerlessCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateServerlessCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateServerlessCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateServerlessCache(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateServerlessCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateServerlessCache", + } +} diff --git a/service/elasticache/api_op_CreateServerlessCacheSnapshot.go b/service/elasticache/api_op_CreateServerlessCacheSnapshot.go new file mode 100644 index 00000000000..41a8c4457de --- /dev/null +++ b/service/elasticache/api_op_CreateServerlessCacheSnapshot.go @@ -0,0 +1,154 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// This API creates a copy of an entire ServerlessCache at a specific moment in +// time. Available for Redis only. +func (c *Client) CreateServerlessCacheSnapshot(ctx context.Context, params *CreateServerlessCacheSnapshotInput, optFns ...func(*Options)) (*CreateServerlessCacheSnapshotOutput, error) { + if params == nil { + params = &CreateServerlessCacheSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateServerlessCacheSnapshot", params, optFns, c.addOperationCreateServerlessCacheSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateServerlessCacheSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateServerlessCacheSnapshotInput struct { + + // The name of an existing serverless cache. The snapshot is created from this + // cache. Available for Redis only. + // + // This member is required. + ServerlessCacheName *string + + // The name for the snapshot being created. Must be unique for the customer + // account. Available for Redis only. Must be between 1 and 255 characters. + // + // This member is required. + ServerlessCacheSnapshotName *string + + // The ID of the KMS key used to encrypt the snapshot. Available for Redis only. + // Default: NULL + KmsKeyId *string + + // A list of tags to be added to the snapshot resource. A tag is a key-value pair. + // Available for Redis only. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateServerlessCacheSnapshotOutput struct { + + // The state of a serverless cache snapshot at a specific point in time, to the + // millisecond. Available for Redis only. + ServerlessCacheSnapshot *types.ServerlessCacheSnapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateServerlessCacheSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateServerlessCacheSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateServerlessCacheSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateServerlessCacheSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateServerlessCacheSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateServerlessCacheSnapshot", + } +} diff --git a/service/elasticache/api_op_CreateUserGroup.go b/service/elasticache/api_op_CreateUserGroup.go index ecb0ecc0c93..6c7a1241c52 100644 --- a/service/elasticache/api_op_CreateUserGroup.go +++ b/service/elasticache/api_op_CreateUserGroup.go @@ -42,7 +42,8 @@ type CreateUserGroupInput struct { UserGroupId *string // A list of tags to be added to this resource. A tag is a key-value pair. A tag - // key must be accompanied by a tag value, although null is accepted. + // key must be accompanied by a tag value, although null is accepted. Available for + // Redis only. Tags []types.Tag // The list of user IDs that belong to the user group. @@ -68,6 +69,10 @@ type CreateUserGroupOutput struct { // A list of replication groups that the user group can access. ReplicationGroups []string + // Indicates which serverless caches the specified user group is associated with. + // Available for Redis only. + ServerlessCaches []string + // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". Status *string diff --git a/service/elasticache/api_op_DeleteServerlessCache.go b/service/elasticache/api_op_DeleteServerlessCache.go new file mode 100644 index 00000000000..18d3da14bb6 --- /dev/null +++ b/service/elasticache/api_op_DeleteServerlessCache.go @@ -0,0 +1,142 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a specified existing serverless cache. +func (c *Client) DeleteServerlessCache(ctx context.Context, params *DeleteServerlessCacheInput, optFns ...func(*Options)) (*DeleteServerlessCacheOutput, error) { + if params == nil { + params = &DeleteServerlessCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteServerlessCache", params, optFns, c.addOperationDeleteServerlessCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteServerlessCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteServerlessCacheInput struct { + + // The identifier of the serverless cache to be deleted. + // + // This member is required. + ServerlessCacheName *string + + // Name of the final snapshot to be taken before the serverless cache is deleted. + // Available for Redis only. Default: NULL, i.e. a final snapshot is not taken. + FinalSnapshotName *string + + noSmithyDocumentSerde +} + +type DeleteServerlessCacheOutput struct { + + // Provides the details of the specified serverless cache that is about to be + // deleted. + ServerlessCache *types.ServerlessCache + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteServerlessCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteServerlessCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteServerlessCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteServerlessCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteServerlessCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteServerlessCache(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteServerlessCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteServerlessCache", + } +} diff --git a/service/elasticache/api_op_DeleteServerlessCacheSnapshot.go b/service/elasticache/api_op_DeleteServerlessCacheSnapshot.go new file mode 100644 index 00000000000..186c4558617 --- /dev/null +++ b/service/elasticache/api_op_DeleteServerlessCacheSnapshot.go @@ -0,0 +1,137 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an existing serverless cache snapshot. Available for Redis only. +func (c *Client) DeleteServerlessCacheSnapshot(ctx context.Context, params *DeleteServerlessCacheSnapshotInput, optFns ...func(*Options)) (*DeleteServerlessCacheSnapshotOutput, error) { + if params == nil { + params = &DeleteServerlessCacheSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteServerlessCacheSnapshot", params, optFns, c.addOperationDeleteServerlessCacheSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteServerlessCacheSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteServerlessCacheSnapshotInput struct { + + // Idenfitier of the snapshot to be deleted. Available for Redis only. + // + // This member is required. + ServerlessCacheSnapshotName *string + + noSmithyDocumentSerde +} + +type DeleteServerlessCacheSnapshotOutput struct { + + // The snapshot to be deleted. Available for Redis only. + ServerlessCacheSnapshot *types.ServerlessCacheSnapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteServerlessCacheSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteServerlessCacheSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteServerlessCacheSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteServerlessCacheSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteServerlessCacheSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteServerlessCacheSnapshot", + } +} diff --git a/service/elasticache/api_op_DeleteUserGroup.go b/service/elasticache/api_op_DeleteUserGroup.go index 1adea7b4bc2..c41bdcaab43 100644 --- a/service/elasticache/api_op_DeleteUserGroup.go +++ b/service/elasticache/api_op_DeleteUserGroup.go @@ -58,6 +58,10 @@ type DeleteUserGroupOutput struct { // A list of replication groups that the user group can access. ReplicationGroups []string + // Indicates which serverless caches the specified user group is associated with. + // Available for Redis only. + ServerlessCaches []string + // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". Status *string diff --git a/service/elasticache/api_op_DescribeReservedCacheNodes.go b/service/elasticache/api_op_DescribeReservedCacheNodes.go index 66ff7d67df1..aa50657fa47 100644 --- a/service/elasticache/api_op_DescribeReservedCacheNodes.go +++ b/service/elasticache/api_op_DescribeReservedCacheNodes.go @@ -38,19 +38,20 @@ type DescribeReservedCacheNodesInput struct { // provide more memory and computational power at lower cost when compared to their // equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -61,15 +62,16 @@ type DescribeReservedCacheNodesInput struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node diff --git a/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go b/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go index 73f4603d9e1..cbb7468bd58 100644 --- a/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go +++ b/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go @@ -37,19 +37,20 @@ type DescribeReservedCacheNodesOfferingsInput struct { // provide more memory and computational power at lower cost when compared to their // equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -60,15 +61,16 @@ type DescribeReservedCacheNodesOfferingsInput struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node diff --git a/service/elasticache/api_op_DescribeServerlessCacheSnapshots.go b/service/elasticache/api_op_DescribeServerlessCacheSnapshots.go new file mode 100644 index 00000000000..591dd5cc7ae --- /dev/null +++ b/service/elasticache/api_op_DescribeServerlessCacheSnapshots.go @@ -0,0 +1,259 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about serverless cache snapshots. By default, this API +// lists all of the customer’s serverless cache snapshots. It can also describe a +// single serverless cache snapshot, or the snapshots associated with a particular +// serverless cache. Available for Redis only. +func (c *Client) DescribeServerlessCacheSnapshots(ctx context.Context, params *DescribeServerlessCacheSnapshotsInput, optFns ...func(*Options)) (*DescribeServerlessCacheSnapshotsOutput, error) { + if params == nil { + params = &DescribeServerlessCacheSnapshotsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeServerlessCacheSnapshots", params, optFns, c.addOperationDescribeServerlessCacheSnapshotsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeServerlessCacheSnapshotsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeServerlessCacheSnapshotsInput struct { + + // The maximum number of records to include in the response. If more records exist + // than the specified max-results value, a market is included in the response so + // that remaining results can be retrieved. Available for Redis only.The default is + // 50. The Validation Constraints are a maximum of 50. + MaxResults *int32 + + // An optional marker returned from a prior request to support pagination of + // results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by + // max-results. Available for Redis only. + NextToken *string + + // The identifier of serverless cache. If this parameter is specified, only + // snapshots associated with that specific serverless cache are described. + // Available for Redis only. + ServerlessCacheName *string + + // The identifier of the serverless cache’s snapshot. If this parameter is + // specified, only this snapshot is described. Available for Redis only. + ServerlessCacheSnapshotName *string + + // The type of snapshot that is being described. Available for Redis only. + SnapshotType *string + + noSmithyDocumentSerde +} + +type DescribeServerlessCacheSnapshotsOutput struct { + + // An optional marker returned from a prior request to support pagination of + // results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by + // max-results. Available for Redis only. + NextToken *string + + // The serverless caches snapshots associated with a given description request. + // Available for Redis only. + ServerlessCacheSnapshots []types.ServerlessCacheSnapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeServerlessCacheSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeServerlessCacheSnapshots{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeServerlessCacheSnapshots{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeServerlessCacheSnapshots"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeServerlessCacheSnapshots(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// DescribeServerlessCacheSnapshotsAPIClient is a client that implements the +// DescribeServerlessCacheSnapshots operation. +type DescribeServerlessCacheSnapshotsAPIClient interface { + DescribeServerlessCacheSnapshots(context.Context, *DescribeServerlessCacheSnapshotsInput, ...func(*Options)) (*DescribeServerlessCacheSnapshotsOutput, error) +} + +var _ DescribeServerlessCacheSnapshotsAPIClient = (*Client)(nil) + +// DescribeServerlessCacheSnapshotsPaginatorOptions is the paginator options for +// DescribeServerlessCacheSnapshots +type DescribeServerlessCacheSnapshotsPaginatorOptions struct { + // The maximum number of records to include in the response. If more records exist + // than the specified max-results value, a market is included in the response so + // that remaining results can be retrieved. Available for Redis only.The default is + // 50. The Validation Constraints are a maximum of 50. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// DescribeServerlessCacheSnapshotsPaginator is a paginator for +// DescribeServerlessCacheSnapshots +type DescribeServerlessCacheSnapshotsPaginator struct { + options DescribeServerlessCacheSnapshotsPaginatorOptions + client DescribeServerlessCacheSnapshotsAPIClient + params *DescribeServerlessCacheSnapshotsInput + nextToken *string + firstPage bool +} + +// NewDescribeServerlessCacheSnapshotsPaginator returns a new +// DescribeServerlessCacheSnapshotsPaginator +func NewDescribeServerlessCacheSnapshotsPaginator(client DescribeServerlessCacheSnapshotsAPIClient, params *DescribeServerlessCacheSnapshotsInput, optFns ...func(*DescribeServerlessCacheSnapshotsPaginatorOptions)) *DescribeServerlessCacheSnapshotsPaginator { + if params == nil { + params = &DescribeServerlessCacheSnapshotsInput{} + } + + options := DescribeServerlessCacheSnapshotsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeServerlessCacheSnapshotsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeServerlessCacheSnapshotsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeServerlessCacheSnapshots page. +func (p *DescribeServerlessCacheSnapshotsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeServerlessCacheSnapshotsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.DescribeServerlessCacheSnapshots(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opDescribeServerlessCacheSnapshots(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeServerlessCacheSnapshots", + } +} diff --git a/service/elasticache/api_op_DescribeServerlessCaches.go b/service/elasticache/api_op_DescribeServerlessCaches.go new file mode 100644 index 00000000000..cf90a47e05b --- /dev/null +++ b/service/elasticache/api_op_DescribeServerlessCaches.go @@ -0,0 +1,246 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a specific serverless cache. If no identifier is +// specified, then the API returns information on all the serverless caches +// belonging to this Amazon Web Services account. +func (c *Client) DescribeServerlessCaches(ctx context.Context, params *DescribeServerlessCachesInput, optFns ...func(*Options)) (*DescribeServerlessCachesOutput, error) { + if params == nil { + params = &DescribeServerlessCachesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeServerlessCaches", params, optFns, c.addOperationDescribeServerlessCachesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeServerlessCachesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeServerlessCachesInput struct { + + // The maximum number of records in the response. If more records exist than the + // specified max-records value, the next token is included in the response so that + // remaining results can be retrieved. The default is 50. + MaxResults *int32 + + // An optional marker returned from a prior request to support pagination of + // results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by + // MaxResults. + NextToken *string + + // The identifier for the serverless cache. If this parameter is specified, only + // information about that specific serverless cache is returned. Default: NULL + ServerlessCacheName *string + + noSmithyDocumentSerde +} + +type DescribeServerlessCachesOutput struct { + + // An optional marker returned from a prior request to support pagination of + // results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by + // MaxResults. + NextToken *string + + // The serverless caches associated with a given description request. + ServerlessCaches []types.ServerlessCache + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeServerlessCachesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeServerlessCaches{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeServerlessCaches{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeServerlessCaches"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeServerlessCaches(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// DescribeServerlessCachesAPIClient is a client that implements the +// DescribeServerlessCaches operation. +type DescribeServerlessCachesAPIClient interface { + DescribeServerlessCaches(context.Context, *DescribeServerlessCachesInput, ...func(*Options)) (*DescribeServerlessCachesOutput, error) +} + +var _ DescribeServerlessCachesAPIClient = (*Client)(nil) + +// DescribeServerlessCachesPaginatorOptions is the paginator options for +// DescribeServerlessCaches +type DescribeServerlessCachesPaginatorOptions struct { + // The maximum number of records in the response. If more records exist than the + // specified max-records value, the next token is included in the response so that + // remaining results can be retrieved. The default is 50. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// DescribeServerlessCachesPaginator is a paginator for DescribeServerlessCaches +type DescribeServerlessCachesPaginator struct { + options DescribeServerlessCachesPaginatorOptions + client DescribeServerlessCachesAPIClient + params *DescribeServerlessCachesInput + nextToken *string + firstPage bool +} + +// NewDescribeServerlessCachesPaginator returns a new +// DescribeServerlessCachesPaginator +func NewDescribeServerlessCachesPaginator(client DescribeServerlessCachesAPIClient, params *DescribeServerlessCachesInput, optFns ...func(*DescribeServerlessCachesPaginatorOptions)) *DescribeServerlessCachesPaginator { + if params == nil { + params = &DescribeServerlessCachesInput{} + } + + options := DescribeServerlessCachesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeServerlessCachesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeServerlessCachesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeServerlessCaches page. +func (p *DescribeServerlessCachesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeServerlessCachesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.DescribeServerlessCaches(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opDescribeServerlessCaches(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeServerlessCaches", + } +} diff --git a/service/elasticache/api_op_ExportServerlessCacheSnapshot.go b/service/elasticache/api_op_ExportServerlessCacheSnapshot.go new file mode 100644 index 00000000000..33d4fd30fe7 --- /dev/null +++ b/service/elasticache/api_op_ExportServerlessCacheSnapshot.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides the functionality to export the serverless cache snapshot data to +// Amazon S3. Available for Redis only. +func (c *Client) ExportServerlessCacheSnapshot(ctx context.Context, params *ExportServerlessCacheSnapshotInput, optFns ...func(*Options)) (*ExportServerlessCacheSnapshotOutput, error) { + if params == nil { + params = &ExportServerlessCacheSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ExportServerlessCacheSnapshot", params, optFns, c.addOperationExportServerlessCacheSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ExportServerlessCacheSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ExportServerlessCacheSnapshotInput struct { + + // Name of the Amazon S3 bucket to export the snapshot to. The Amazon S3 bucket + // must also be in same region as the snapshot. Available for Redis only. + // + // This member is required. + S3BucketName *string + + // The identifier of the serverless cache snapshot to be exported to S3. Available + // for Redis only. + // + // This member is required. + ServerlessCacheSnapshotName *string + + noSmithyDocumentSerde +} + +type ExportServerlessCacheSnapshotOutput struct { + + // The state of a serverless cache at a specific point in time, to the + // millisecond. Available for Redis only. + ServerlessCacheSnapshot *types.ServerlessCacheSnapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationExportServerlessCacheSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpExportServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpExportServerlessCacheSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ExportServerlessCacheSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpExportServerlessCacheSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportServerlessCacheSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opExportServerlessCacheSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ExportServerlessCacheSnapshot", + } +} diff --git a/service/elasticache/api_op_ModifyReplicationGroup.go b/service/elasticache/api_op_ModifyReplicationGroup.go index 2345af7124f..155899e2844 100644 --- a/service/elasticache/api_op_ModifyReplicationGroup.go +++ b/service/elasticache/api_op_ModifyReplicationGroup.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Modifies the settings for a replication group. +// Modifies the settings for a replication group. This is limited to Redis 7 and +// newer. // - Scaling for Amazon ElastiCache for Redis (cluster mode enabled) (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/scaling-redis-cluster-mode-enabled.html) // in the ElastiCache User Guide // - ModifyReplicationGroupShardConfiguration (https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html) diff --git a/service/elasticache/api_op_ModifyServerlessCache.go b/service/elasticache/api_op_ModifyServerlessCache.go new file mode 100644 index 00000000000..0b071e2c04e --- /dev/null +++ b/service/elasticache/api_op_ModifyServerlessCache.go @@ -0,0 +1,172 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticache + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// This API modifies the attributes of a serverless cache. +func (c *Client) ModifyServerlessCache(ctx context.Context, params *ModifyServerlessCacheInput, optFns ...func(*Options)) (*ModifyServerlessCacheOutput, error) { + if params == nil { + params = &ModifyServerlessCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyServerlessCache", params, optFns, c.addOperationModifyServerlessCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyServerlessCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyServerlessCacheInput struct { + + // User-provided identifier for the serverless cache to be modified. + // + // This member is required. + ServerlessCacheName *string + + // Modify the cache usage limit for the serverless cache. + CacheUsageLimits *types.CacheUsageLimits + + // The daily time during which Elasticache begins taking a daily snapshot of the + // serverless cache. Available for Redis only. The default is NULL, i.e. the + // existing snapshot time configured for the cluster is not removed. + DailySnapshotTime *string + + // User provided description for the serverless cache. Default = NULL, i.e. the + // existing description is not removed/modified. The description has a maximum + // length of 255 characters. + Description *string + + // The identifier of the UserGroup to be removed from association with the Redis + // serverless cache. Available for Redis only. Default is NULL. + RemoveUserGroup *bool + + // The new list of VPC security groups to be associated with the serverless cache. + // Populating this list means the current VPC security groups will be removed. This + // security group is used to authorize traffic access for the VPC end-point + // (private-link). Default = NULL - the existing list of VPC security groups is not + // removed. + SecurityGroupIds []string + + // The number of days for which Elasticache retains automatic snapshots before + // deleting them. Available for Redis only. Default = NULL, i.e. the existing + // snapshot-retention-limit will not be removed or modified. The maximum value + // allowed is 35 days. + SnapshotRetentionLimit *int32 + + // The identifier of the UserGroup to be associated with the serverless cache. + // Available for Redis only. Default is NULL - the existing UserGroup is not + // removed. + UserGroupId *string + + noSmithyDocumentSerde +} + +type ModifyServerlessCacheOutput struct { + + // The response for the attempt to modify the serverless cache. + ServerlessCache *types.ServerlessCache + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyServerlessCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyServerlessCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyServerlessCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyServerlessCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpModifyServerlessCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyServerlessCache(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyServerlessCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyServerlessCache", + } +} diff --git a/service/elasticache/api_op_ModifyUserGroup.go b/service/elasticache/api_op_ModifyUserGroup.go index 5d04b8484a8..4270de1340c 100644 --- a/service/elasticache/api_op_ModifyUserGroup.go +++ b/service/elasticache/api_op_ModifyUserGroup.go @@ -61,6 +61,10 @@ type ModifyUserGroupOutput struct { // A list of replication groups that the user group can access. ReplicationGroups []string + // Indicates which serverless caches the specified user group is associated with. + // Available for Redis only. + ServerlessCaches []string + // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". Status *string diff --git a/service/elasticache/deserializers.go b/service/elasticache/deserializers.go index 0c9c268056f..4162aa923c0 100644 --- a/service/elasticache/deserializers.go +++ b/service/elasticache/deserializers.go @@ -136,12 +136,24 @@ func awsAwsquery_deserializeOpErrorAddTagsToResource(response *smithyhttp.Respon case strings.EqualFold("InvalidReplicationGroupState", errorCode): return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) + + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) case strings.EqualFold("ReservedCacheNodeNotFound", errorCode): return awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response, errorBody) + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) + case strings.EqualFold("SnapshotNotFoundFault", errorCode): return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) @@ -620,6 +632,135 @@ func awsAwsquery_deserializeOpErrorCompleteMigration(response *smithyhttp.Respon } } +type awsAwsquery_deserializeOpCopyServerlessCacheSnapshot struct { +} + +func (*awsAwsquery_deserializeOpCopyServerlessCacheSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpCopyServerlessCacheSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorCopyServerlessCacheSnapshot(response, &metadata) + } + output := &CopyServerlessCacheSnapshotOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("CopyServerlessCacheSnapshotResult") + 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 out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentCopyServerlessCacheSnapshotOutput(&output, decoder) + 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 out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorCopyServerlessCacheSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotAlreadyExistsFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotQuotaExceededFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotQuotaExceededFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): + return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpCopySnapshot struct { } @@ -1541,14 +1682,14 @@ func awsAwsquery_deserializeOpErrorCreateReplicationGroup(response *smithyhttp.R } } -type awsAwsquery_deserializeOpCreateSnapshot struct { +type awsAwsquery_deserializeOpCreateServerlessCache struct { } -func (*awsAwsquery_deserializeOpCreateSnapshot) ID() string { +func (*awsAwsquery_deserializeOpCreateServerlessCache) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpCreateServerlessCache) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1562,9 +1703,9 @@ func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateSnapshot(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorCreateServerlessCache(response, &metadata) } - output := &CreateSnapshotOutput{} + output := &CreateServerlessCacheOutput{} out.Result = output var buff [1024]byte @@ -1585,7 +1726,7 @@ func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateSnapshotResult") + t, err = decoder.GetElement("CreateServerlessCacheResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1597,7 +1738,7 @@ func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentCreateServerlessCacheOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1611,7 +1752,7 @@ func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsquery_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorCreateServerlessCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1636,11 +1777,8 @@ func awsAwsquery_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + case strings.EqualFold("InvalidCredentialsException", errorCode): + return awsAwsquery_deserializeErrorInvalidCredentialsException(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -1648,24 +1786,30 @@ func awsAwsquery_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidUserGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response, errorBody) - case strings.EqualFold("SnapshotAlreadyExistsFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response, errorBody) + case strings.EqualFold("ServerlessCacheAlreadyExistsFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheAlreadyExistsFault(response, errorBody) - case strings.EqualFold("SnapshotFeatureNotSupportedFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response, errorBody) + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) - case strings.EqualFold("SnapshotQuotaExceededFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response, errorBody) + case strings.EqualFold("ServerlessCacheQuotaForCustomerExceededFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheQuotaForCustomerExceededFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + case strings.EqualFold("UserGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1676,14 +1820,14 @@ func awsAwsquery_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpCreateUser struct { +type awsAwsquery_deserializeOpCreateServerlessCacheSnapshot struct { } -func (*awsAwsquery_deserializeOpCreateUser) ID() string { +func (*awsAwsquery_deserializeOpCreateServerlessCacheSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpCreateServerlessCacheSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1697,9 +1841,9 @@ func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateUser(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorCreateServerlessCacheSnapshot(response, &metadata) } - output := &CreateUserOutput{} + output := &CreateServerlessCacheSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1720,7 +1864,7 @@ func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateUserResult") + t, err = decoder.GetElement("CreateServerlessCacheSnapshotResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1732,7 +1876,7 @@ func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Cont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateUserOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentCreateServerlessCacheSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1746,7 +1890,7 @@ func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorCreateUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorCreateServerlessCacheSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1771,27 +1915,30 @@ func awsAwsquery_deserializeOpErrorCreateUser(response *smithyhttp.Response, met } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("DuplicateUserName", errorCode): - return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotAlreadyExistsFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotQuotaExceededFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotQuotaExceededFault(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) - case strings.EqualFold("UserAlreadyExists", errorCode): - return awsAwsquery_deserializeErrorUserAlreadyExistsFault(response, errorBody) - - case strings.EqualFold("UserQuotaExceeded", errorCode): - return awsAwsquery_deserializeErrorUserQuotaExceededFault(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1802,14 +1949,14 @@ func awsAwsquery_deserializeOpErrorCreateUser(response *smithyhttp.Response, met } } -type awsAwsquery_deserializeOpCreateUserGroup struct { +type awsAwsquery_deserializeOpCreateSnapshot struct { } -func (*awsAwsquery_deserializeOpCreateUserGroup) ID() string { +func (*awsAwsquery_deserializeOpCreateSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1823,9 +1970,9 @@ func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateUserGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorCreateSnapshot(response, &metadata) } - output := &CreateUserGroupOutput{} + output := &CreateSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1846,7 +1993,7 @@ func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateUserGroupResult") + t, err = decoder.GetElement("CreateSnapshotResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1858,7 +2005,7 @@ func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1872,7 +2019,7 @@ func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsquery_deserializeOpErrorCreateUserGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1897,29 +2044,35 @@ func awsAwsquery_deserializeOpErrorCreateUserGroup(response *smithyhttp.Response } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("DefaultUserRequired", errorCode): - return awsAwsquery_deserializeErrorDefaultUserRequired(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("DuplicateUserName", errorCode): - return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): - return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - case strings.EqualFold("UserGroupAlreadyExists", errorCode): - return awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response, errorBody) + case strings.EqualFold("SnapshotAlreadyExistsFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response, errorBody) - case strings.EqualFold("UserGroupQuotaExceeded", errorCode): - return awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response, errorBody) + case strings.EqualFold("SnapshotFeatureNotSupportedFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response, errorBody) - case strings.EqualFold("UserNotFound", errorCode): - return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) + case strings.EqualFold("SnapshotQuotaExceededFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response, errorBody) + + case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): + return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1931,14 +2084,14 @@ func awsAwsquery_deserializeOpErrorCreateUserGroup(response *smithyhttp.Response } } -type awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpCreateUser struct { } -func (*awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpCreateUser) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpCreateUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1952,9 +2105,9 @@ func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorCreateUser(response, &metadata) } - output := &DecreaseNodeGroupsInGlobalReplicationGroupOutput{} + output := &CreateUserOutput{} out.Result = output var buff [1024]byte @@ -1975,7 +2128,7 @@ func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DecreaseNodeGroupsInGlobalReplicationGroupResult") + t, err = decoder.GetElement("CreateUserResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1987,7 +2140,7 @@ func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) Ha } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDecreaseNodeGroupsInGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentCreateUserOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2001,7 +2154,7 @@ func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) Ha return out, metadata, err } -func awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorCreateUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2026,11 +2179,8 @@ func awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(re } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("DuplicateUserName", errorCode): + return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -2038,6 +2188,18 @@ func awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(re case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): + return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + + case strings.EqualFold("UserAlreadyExists", errorCode): + return awsAwsquery_deserializeErrorUserAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("UserQuotaExceeded", errorCode): + return awsAwsquery_deserializeErrorUserQuotaExceededFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2048,7 +2210,253 @@ func awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(re } } -type awsAwsquery_deserializeOpDecreaseReplicaCount struct { +type awsAwsquery_deserializeOpCreateUserGroup struct { +} + +func (*awsAwsquery_deserializeOpCreateUserGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpCreateUserGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorCreateUserGroup(response, &metadata) + } + output := &CreateUserGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("CreateUserGroupResult") + 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 out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(&output, decoder) + 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 out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorCreateUserGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("DefaultUserRequired", errorCode): + return awsAwsquery_deserializeErrorDefaultUserRequired(response, errorBody) + + case strings.EqualFold("DuplicateUserName", errorCode): + return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): + return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + + case strings.EqualFold("UserGroupAlreadyExists", errorCode): + return awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("UserGroupQuotaExceeded", errorCode): + return awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response, errorBody) + + case strings.EqualFold("UserNotFound", errorCode): + return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup struct { +} + +func (*awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpDecreaseNodeGroupsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(response, &metadata) + } + output := &DecreaseNodeGroupsInGlobalReplicationGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("DecreaseNodeGroupsInGlobalReplicationGroupResult") + 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 out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentDecreaseNodeGroupsInGlobalReplicationGroupOutput(&output, decoder) + 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 out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorDecreaseNodeGroupsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsquery_deserializeOpDecreaseReplicaCount struct { } func (*awsAwsquery_deserializeOpDecreaseReplicaCount) ID() string { @@ -2795,14 +3203,14 @@ func awsAwsquery_deserializeOpErrorDeleteReplicationGroup(response *smithyhttp.R } } -type awsAwsquery_deserializeOpDeleteSnapshot struct { +type awsAwsquery_deserializeOpDeleteServerlessCache struct { } -func (*awsAwsquery_deserializeOpDeleteSnapshot) ID() string { +func (*awsAwsquery_deserializeOpDeleteServerlessCache) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDeleteServerlessCache) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2816,9 +3224,9 @@ func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteSnapshot(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDeleteServerlessCache(response, &metadata) } - output := &DeleteSnapshotOutput{} + output := &DeleteServerlessCacheOutput{} out.Result = output var buff [1024]byte @@ -2839,7 +3247,7 @@ func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteSnapshotResult") + t, err = decoder.GetElement("DeleteServerlessCacheResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2851,7 +3259,7 @@ func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteSnapshotOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDeleteServerlessCacheOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2865,7 +3273,7 @@ func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsquery_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDeleteServerlessCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2890,13 +3298,256 @@ func awsAwsquery_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("InvalidCredentialsException", errorCode): + return awsAwsquery_deserializeErrorInvalidCredentialsException(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidSnapshotState", errorCode): + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotAlreadyExistsFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsquery_deserializeOpDeleteServerlessCacheSnapshot struct { +} + +func (*awsAwsquery_deserializeOpDeleteServerlessCacheSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpDeleteServerlessCacheSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorDeleteServerlessCacheSnapshot(response, &metadata) + } + output := &DeleteServerlessCacheSnapshotOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("DeleteServerlessCacheSnapshotResult") + 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 out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentDeleteServerlessCacheSnapshotOutput(&output, decoder) + 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 out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorDeleteServerlessCacheSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsquery_deserializeOpDeleteSnapshot struct { +} + +func (*awsAwsquery_deserializeOpDeleteSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorDeleteSnapshot(response, &metadata) + } + output := &DeleteSnapshotOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("DeleteSnapshotResult") + 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 out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentDeleteSnapshotOutput(&output, decoder) + 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 out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidSnapshotState", errorCode): return awsAwsquery_deserializeErrorInvalidSnapshotStateFault(response, errorBody) case strings.EqualFold("SnapshotNotFoundFault", errorCode): @@ -4496,14 +5147,14 @@ func awsAwsquery_deserializeOpErrorDescribeReservedCacheNodesOfferings(response } } -type awsAwsquery_deserializeOpDescribeServiceUpdates struct { +type awsAwsquery_deserializeOpDescribeServerlessCaches struct { } -func (*awsAwsquery_deserializeOpDescribeServiceUpdates) ID() string { +func (*awsAwsquery_deserializeOpDescribeServerlessCaches) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeServerlessCaches) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4517,9 +5168,9 @@ func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeServerlessCaches(response, &metadata) } - output := &DescribeServiceUpdatesOutput{} + output := &DescribeServerlessCachesOutput{} out.Result = output var buff [1024]byte @@ -4540,7 +5191,7 @@ func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeServiceUpdatesResult") + t, err = decoder.GetElement("DescribeServerlessCachesResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4552,7 +5203,7 @@ func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeServiceUpdatesOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeServerlessCachesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4566,7 +5217,7 @@ func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx return out, metadata, err } -func awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeServerlessCaches(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4597,8 +5248,8 @@ func awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response *smithyhttp.R case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ServiceUpdateNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response, errorBody) + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4610,14 +5261,14 @@ func awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response *smithyhttp.R } } -type awsAwsquery_deserializeOpDescribeSnapshots struct { +type awsAwsquery_deserializeOpDescribeServerlessCacheSnapshots struct { } -func (*awsAwsquery_deserializeOpDescribeSnapshots) ID() string { +func (*awsAwsquery_deserializeOpDescribeServerlessCacheSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeServerlessCacheSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4631,9 +5282,9 @@ func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeSnapshots(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeServerlessCacheSnapshots(response, &metadata) } - output := &DescribeSnapshotsOutput{} + output := &DescribeServerlessCacheSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -4654,7 +5305,7 @@ func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeSnapshotsResult") + t, err = decoder.GetElement("DescribeServerlessCacheSnapshotsResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4666,7 +5317,7 @@ func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeSnapshotsOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeServerlessCacheSnapshotsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4680,7 +5331,7 @@ func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsquery_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeServerlessCacheSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4705,17 +5356,17 @@ func awsAwsquery_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Respon } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("SnapshotNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4727,14 +5378,14 @@ func awsAwsquery_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Respon } } -type awsAwsquery_deserializeOpDescribeUpdateActions struct { +type awsAwsquery_deserializeOpDescribeServiceUpdates struct { } -func (*awsAwsquery_deserializeOpDescribeUpdateActions) ID() string { +func (*awsAwsquery_deserializeOpDescribeServiceUpdates) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeServiceUpdates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4748,9 +5399,9 @@ func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeUpdateActions(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response, &metadata) } - output := &DescribeUpdateActionsOutput{} + output := &DescribeServiceUpdatesOutput{} out.Result = output var buff [1024]byte @@ -4771,7 +5422,7 @@ func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeUpdateActionsResult") + t, err = decoder.GetElement("DescribeServiceUpdatesResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4783,7 +5434,7 @@ func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx c } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeUpdateActionsOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeServiceUpdatesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4797,7 +5448,7 @@ func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsquery_deserializeOpErrorDescribeUpdateActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeServiceUpdates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4828,6 +5479,9 @@ func awsAwsquery_deserializeOpErrorDescribeUpdateActions(response *smithyhttp.Re case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ServiceUpdateNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4838,14 +5492,14 @@ func awsAwsquery_deserializeOpErrorDescribeUpdateActions(response *smithyhttp.Re } } -type awsAwsquery_deserializeOpDescribeUserGroups struct { +type awsAwsquery_deserializeOpDescribeSnapshots struct { } -func (*awsAwsquery_deserializeOpDescribeUserGroups) ID() string { +func (*awsAwsquery_deserializeOpDescribeSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4859,9 +5513,9 @@ func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeUserGroups(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeSnapshots(response, &metadata) } - output := &DescribeUserGroupsOutput{} + output := &DescribeSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -4882,7 +5536,7 @@ func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeUserGroupsResult") + t, err = decoder.GetElement("DescribeSnapshotsResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4894,7 +5548,7 @@ func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx cont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeUserGroupsOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeSnapshotsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4908,7 +5562,7 @@ func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorDescribeUserGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4933,14 +5587,17 @@ func awsAwsquery_deserializeOpErrorDescribeUserGroups(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("UserGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + case strings.EqualFold("SnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4952,14 +5609,14 @@ func awsAwsquery_deserializeOpErrorDescribeUserGroups(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpDescribeUsers struct { +type awsAwsquery_deserializeOpDescribeUpdateActions struct { } -func (*awsAwsquery_deserializeOpDescribeUsers) ID() string { +func (*awsAwsquery_deserializeOpDescribeUpdateActions) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeUpdateActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4973,9 +5630,9 @@ func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeUsers(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeUpdateActions(response, &metadata) } - output := &DescribeUsersOutput{} + output := &DescribeUpdateActionsOutput{} out.Result = output var buff [1024]byte @@ -4996,7 +5653,7 @@ func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeUsersResult") + t, err = decoder.GetElement("DescribeUpdateActionsResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5008,7 +5665,7 @@ func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.C } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeUsersOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeUpdateActionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5022,7 +5679,7 @@ func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsquery_deserializeOpErrorDescribeUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeUpdateActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5050,11 +5707,8 @@ func awsAwsquery_deserializeOpErrorDescribeUsers(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) - - case strings.EqualFold("UserNotFound", errorCode): - return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5066,14 +5720,14 @@ func awsAwsquery_deserializeOpErrorDescribeUsers(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpDescribeUserGroups struct { } -func (*awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpDescribeUserGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeUserGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5087,9 +5741,9 @@ func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeUserGroups(response, &metadata) } - output := &DisassociateGlobalReplicationGroupOutput{} + output := &DescribeUserGroupsOutput{} out.Result = output var buff [1024]byte @@ -5110,7 +5764,7 @@ func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DisassociateGlobalReplicationGroupResult") + t, err = decoder.GetElement("DescribeUserGroupsResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5122,7 +5776,7 @@ func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDese } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDisassociateGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeUserGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5136,7 +5790,7 @@ func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDese return out, metadata, err } -func awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeUserGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5161,17 +5815,14 @@ func awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response * } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("UserGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5183,14 +5834,14 @@ func awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response * } } -type awsAwsquery_deserializeOpFailoverGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpDescribeUsers struct { } -func (*awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpDescribeUsers) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDescribeUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5204,9 +5855,9 @@ func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDescribeUsers(response, &metadata) } - output := &FailoverGlobalReplicationGroupOutput{} + output := &DescribeUsersOutput{} out.Result = output var buff [1024]byte @@ -5227,7 +5878,7 @@ func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("FailoverGlobalReplicationGroupResult") + t, err = decoder.GetElement("DescribeUsersResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5239,7 +5890,7 @@ func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserial } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentFailoverGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDescribeUsersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5253,7 +5904,7 @@ func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserial return out, metadata, err } -func awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDescribeUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5278,17 +5929,14 @@ func awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response *smit } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("UserNotFound", errorCode): + return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5300,14 +5948,14 @@ func awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response *smit } } -type awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup struct { } -func (*awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpDisassociateGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5321,9 +5969,9 @@ func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response, &metadata) } - output := &IncreaseNodeGroupsInGlobalReplicationGroupOutput{} + output := &DisassociateGlobalReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -5344,7 +5992,7 @@ func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("IncreaseNodeGroupsInGlobalReplicationGroupResult") + t, err = decoder.GetElement("DisassociateGlobalReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5356,7 +6004,7 @@ func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) Ha } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentIncreaseNodeGroupsInGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentDisassociateGlobalReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5370,7 +6018,7 @@ func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) Ha return out, metadata, err } -func awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorDisassociateGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5401,6 +6049,9 @@ func awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(re case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -5414,14 +6065,14 @@ func awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(re } } -type awsAwsquery_deserializeOpIncreaseReplicaCount struct { +type awsAwsquery_deserializeOpExportServerlessCacheSnapshot struct { } -func (*awsAwsquery_deserializeOpIncreaseReplicaCount) ID() string { +func (*awsAwsquery_deserializeOpExportServerlessCacheSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpExportServerlessCacheSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5435,9 +6086,9 @@ func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorExportServerlessCacheSnapshot(response, &metadata) } - output := &IncreaseReplicaCountOutput{} + output := &ExportServerlessCacheSnapshotOutput{} out.Result = output var buff [1024]byte @@ -5458,7 +6109,7 @@ func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("IncreaseReplicaCountResult") + t, err = decoder.GetElement("ExportServerlessCacheSnapshotResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5470,7 +6121,7 @@ func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx co } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentIncreaseReplicaCountOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentExportServerlessCacheSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5484,7 +6135,7 @@ func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorExportServerlessCacheSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5509,41 +6160,17 @@ func awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response *smithyhttp.Res } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("ClusterQuotaForCustomerExceeded", errorCode): - return awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response, errorBody) - - case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): - return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) - - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) - - case strings.EqualFold("InvalidKMSKeyFault", errorCode): - return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) - - case strings.EqualFold("InvalidParameterCombination", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): - return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) - - case strings.EqualFold("NoOperationFault", errorCode): - return awsAwsquery_deserializeErrorNoOperationFault(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) - case strings.EqualFold("NodeGroupsPerReplicationGroupQuotaExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response, errorBody) - - case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5555,14 +6182,14 @@ func awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response *smithyhttp.Res } } -type awsAwsquery_deserializeOpListAllowedNodeTypeModifications struct { +type awsAwsquery_deserializeOpFailoverGlobalReplicationGroup struct { } -func (*awsAwsquery_deserializeOpListAllowedNodeTypeModifications) ID() string { +func (*awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpFailoverGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5576,9 +6203,9 @@ func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response, &metadata) } - output := &ListAllowedNodeTypeModificationsOutput{} + output := &FailoverGlobalReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -5599,7 +6226,7 @@ func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ListAllowedNodeTypeModificationsResult") + t, err = decoder.GetElement("FailoverGlobalReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5611,7 +6238,7 @@ func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeseri } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentListAllowedNodeTypeModificationsOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentFailoverGlobalReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5625,7 +6252,7 @@ func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeseri return out, metadata, err } -func awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorFailoverGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5650,8 +6277,11 @@ func awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response *sm } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) + case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -5659,9 +6289,6 @@ func awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response *sm case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5672,14 +6299,14 @@ func awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response *sm } } -type awsAwsquery_deserializeOpListTagsForResource struct { +type awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup struct { } -func (*awsAwsquery_deserializeOpListTagsForResource) ID() string { +func (*awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpIncreaseNodeGroupsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5693,9 +6320,9 @@ func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &IncreaseNodeGroupsInGlobalReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -5716,7 +6343,7 @@ func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ListTagsForResourceResult") + t, err = decoder.GetElement("IncreaseNodeGroupsInGlobalReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5728,7 +6355,7 @@ func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx con } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentListTagsForResourceOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentIncreaseNodeGroupsInGlobalReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5742,7 +6369,7 @@ func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsquery_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorIncreaseNodeGroupsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5767,38 +6394,14 @@ func awsAwsquery_deserializeOpErrorListTagsForResource(response *smithyhttp.Resp } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheSubnetGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidARN", errorCode): - return awsAwsquery_deserializeErrorInvalidARNFault(response, errorBody) - - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("ReservedCacheNodeNotFound", errorCode): - return awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response, errorBody) - - case strings.EqualFold("SnapshotNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) + case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) - case strings.EqualFold("UserGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("UserNotFound", errorCode): - return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5810,14 +6413,14 @@ func awsAwsquery_deserializeOpErrorListTagsForResource(response *smithyhttp.Resp } } -type awsAwsquery_deserializeOpModifyCacheCluster struct { +type awsAwsquery_deserializeOpIncreaseReplicaCount struct { } -func (*awsAwsquery_deserializeOpModifyCacheCluster) ID() string { +func (*awsAwsquery_deserializeOpIncreaseReplicaCount) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpIncreaseReplicaCount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5831,9 +6434,9 @@ func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheCluster(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response, &metadata) } - output := &ModifyCacheClusterOutput{} + output := &IncreaseReplicaCountOutput{} out.Result = output var buff [1024]byte @@ -5854,7 +6457,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyCacheClusterResult") + t, err = decoder.GetElement("IncreaseReplicaCountResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5866,7 +6469,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx cont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyCacheClusterOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentIncreaseReplicaCountOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5880,7 +6483,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorIncreaseReplicaCount(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5905,14 +6508,8 @@ func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + case strings.EqualFold("ClusterQuotaForCustomerExceeded", errorCode): + return awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response, errorBody) case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) @@ -5920,8 +6517,8 @@ func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Respo case strings.EqualFold("InvalidCacheClusterState", errorCode): return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) - case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidKMSKeyFault", errorCode): + return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -5929,15 +6526,24 @@ func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Respo case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) - case strings.EqualFold("NodeQuotaForClusterExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response, errorBody) + case strings.EqualFold("NoOperationFault", errorCode): + return awsAwsquery_deserializeErrorNoOperationFault(response, errorBody) + + case strings.EqualFold("NodeGroupsPerReplicationGroupQuotaExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response, errorBody) case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5948,14 +6554,14 @@ func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpModifyCacheParameterGroup struct { +type awsAwsquery_deserializeOpListAllowedNodeTypeModifications struct { } -func (*awsAwsquery_deserializeOpModifyCacheParameterGroup) ID() string { +func (*awsAwsquery_deserializeOpListAllowedNodeTypeModifications) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpListAllowedNodeTypeModifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5969,9 +6575,9 @@ func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response, &metadata) } - output := &ModifyCacheParameterGroupOutput{} + output := &ListAllowedNodeTypeModificationsOutput{} out.Result = output var buff [1024]byte @@ -5992,7 +6598,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyCacheParameterGroupResult") + t, err = decoder.GetElement("ListAllowedNodeTypeModificationsResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6004,7 +6610,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(c } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyCacheParameterGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentListAllowedNodeTypeModificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6018,7 +6624,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(c return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorListAllowedNodeTypeModifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6043,14 +6649,8 @@ func awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response *smithyhtt } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidCacheParameterGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -6058,6 +6658,9 @@ func awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response *smithyhtt case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6068,14 +6671,14 @@ func awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response *smithyhtt } } -type awsAwsquery_deserializeOpModifyCacheSubnetGroup struct { +type awsAwsquery_deserializeOpListTagsForResource struct { } -func (*awsAwsquery_deserializeOpModifyCacheSubnetGroup) ID() string { +func (*awsAwsquery_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6089,9 +6692,9 @@ func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &ModifyCacheSubnetGroupOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -6112,7 +6715,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyCacheSubnetGroupResult") + t, err = decoder.GetElement("ListTagsForResourceResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6124,7 +6727,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyCacheSubnetGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentListTagsForResourceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6138,7 +6741,7 @@ func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6163,20 +6766,50 @@ func awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) + + case strings.EqualFold("CacheParameterGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + case strings.EqualFold("CacheSubnetGroupNotFoundFault", errorCode): return awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response, errorBody) - case strings.EqualFold("CacheSubnetQuotaExceededFault", errorCode): - return awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response, errorBody) + case strings.EqualFold("InvalidARN", errorCode): + return awsAwsquery_deserializeErrorInvalidARNFault(response, errorBody) - case strings.EqualFold("InvalidSubnet", errorCode): - return awsAwsquery_deserializeErrorInvalidSubnet(response, errorBody) + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("SubnetInUse", errorCode): - return awsAwsquery_deserializeErrorSubnetInUse(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) - case strings.EqualFold("SubnetNotAllowedFault", errorCode): - return awsAwsquery_deserializeErrorSubnetNotAllowedFault(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("ReservedCacheNodeNotFound", errorCode): + return awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("SnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("UserGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("UserNotFound", errorCode): + return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6188,14 +6821,14 @@ func awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response *smithyhttp.R } } -type awsAwsquery_deserializeOpModifyGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpModifyCacheCluster struct { } -func (*awsAwsquery_deserializeOpModifyGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpModifyCacheCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyCacheCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6209,9 +6842,9 @@ func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheCluster(response, &metadata) } - output := &ModifyGlobalReplicationGroupOutput{} + output := &ModifyCacheClusterOutput{} out.Result = output var buff [1024]byte @@ -6232,7 +6865,7 @@ func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyGlobalReplicationGroupResult") + t, err = decoder.GetElement("ModifyCacheClusterResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6244,7 +6877,7 @@ func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserializ } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyCacheClusterOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6258,7 +6891,7 @@ func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserializ return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyCacheCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6283,15 +6916,39 @@ func awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response *smithy } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("CacheParameterGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) + + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + + case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) + + case strings.EqualFold("NodeQuotaForClusterExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response, errorBody) + + case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6302,14 +6959,14 @@ func awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response *smithy } } -type awsAwsquery_deserializeOpModifyReplicationGroup struct { +type awsAwsquery_deserializeOpModifyCacheParameterGroup struct { } -func (*awsAwsquery_deserializeOpModifyReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpModifyCacheParameterGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyCacheParameterGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6323,9 +6980,9 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response, &metadata) } - output := &ModifyReplicationGroupOutput{} + output := &ModifyCacheParameterGroupOutput{} out.Result = output var buff [1024]byte @@ -6346,7 +7003,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyReplicationGroupResult") + t, err = decoder.GetElement("ModifyCacheParameterGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6358,7 +7015,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyCacheParameterGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6372,7 +7029,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyCacheParameterGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6397,26 +7054,14 @@ func awsAwsquery_deserializeOpErrorModifyReplicationGroup(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): - return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) - - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) - - case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidCacheParameterGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response, errorBody) - case strings.EqualFold("InvalidKMSKeyFault", errorCode): - return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -6424,27 +7069,6 @@ func awsAwsquery_deserializeOpErrorModifyReplicationGroup(response *smithyhttp.R case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidUserGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): - return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) - - case strings.EqualFold("NodeQuotaForClusterExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response, errorBody) - - case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) - - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("UserGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6455,14 +7079,14 @@ func awsAwsquery_deserializeOpErrorModifyReplicationGroup(response *smithyhttp.R } } -type awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration struct { +type awsAwsquery_deserializeOpModifyCacheSubnetGroup struct { } -func (*awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) ID() string { +func (*awsAwsquery_deserializeOpModifyCacheSubnetGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyCacheSubnetGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6476,9 +7100,9 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response, &metadata) } - output := &ModifyReplicationGroupShardConfigurationOutput{} + output := &ModifyCacheSubnetGroupOutput{} out.Result = output var buff [1024]byte @@ -6499,7 +7123,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyReplicationGroupShardConfigurationResult") + t, err = decoder.GetElement("ModifyCacheSubnetGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6511,7 +7135,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) Hand } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyReplicationGroupShardConfigurationOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyCacheSubnetGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6525,7 +7149,7 @@ func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) Hand return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyCacheSubnetGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6550,35 +7174,20 @@ func awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(resp } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): - return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) + case strings.EqualFold("CacheSubnetGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + case strings.EqualFold("CacheSubnetQuotaExceededFault", errorCode): + return awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response, errorBody) - case strings.EqualFold("InvalidKMSKeyFault", errorCode): - return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) - - case strings.EqualFold("InvalidParameterCombination", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): - return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) - - case strings.EqualFold("NodeGroupsPerReplicationGroupQuotaExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response, errorBody) + case strings.EqualFold("InvalidSubnet", errorCode): + return awsAwsquery_deserializeErrorInvalidSubnet(response, errorBody) - case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): - return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + case strings.EqualFold("SubnetInUse", errorCode): + return awsAwsquery_deserializeErrorSubnetInUse(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("SubnetNotAllowedFault", errorCode): + return awsAwsquery_deserializeErrorSubnetNotAllowedFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6590,14 +7199,14 @@ func awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(resp } } -type awsAwsquery_deserializeOpModifyUser struct { +type awsAwsquery_deserializeOpModifyGlobalReplicationGroup struct { } -func (*awsAwsquery_deserializeOpModifyUser) ID() string { +func (*awsAwsquery_deserializeOpModifyGlobalReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6611,9 +7220,9 @@ func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyUser(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response, &metadata) } - output := &ModifyUserOutput{} + output := &ModifyGlobalReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -6634,7 +7243,7 @@ func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyUserResult") + t, err = decoder.GetElement("ModifyGlobalReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6646,7 +7255,7 @@ func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Cont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyUserOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyGlobalReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6660,7 +7269,7 @@ func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6685,21 +7294,15 @@ func awsAwsquery_deserializeOpErrorModifyUser(response *smithyhttp.Response, met } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InvalidParameterCombination", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidUserState", errorCode): - return awsAwsquery_deserializeErrorInvalidUserStateFault(response, errorBody) - - case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) - - case strings.EqualFold("UserNotFound", errorCode): - return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6710,14 +7313,14 @@ func awsAwsquery_deserializeOpErrorModifyUser(response *smithyhttp.Response, met } } -type awsAwsquery_deserializeOpModifyUserGroup struct { +type awsAwsquery_deserializeOpModifyReplicationGroup struct { } -func (*awsAwsquery_deserializeOpModifyUserGroup) ID() string { +func (*awsAwsquery_deserializeOpModifyReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6731,9 +7334,9 @@ func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyUserGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyReplicationGroup(response, &metadata) } - output := &ModifyUserGroupOutput{} + output := &ModifyReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -6754,7 +7357,7 @@ func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyUserGroupResult") + t, err = decoder.GetElement("ModifyReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6766,7 +7369,7 @@ func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6780,7 +7383,7 @@ func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsquery_deserializeOpErrorModifyUserGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6805,11 +7408,26 @@ func awsAwsquery_deserializeOpErrorModifyUserGroup(response *smithyhttp.Response } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("DefaultUserRequired", errorCode): - return awsAwsquery_deserializeErrorDefaultUserRequired(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("DuplicateUserName", errorCode): - return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) + case strings.EqualFold("CacheParameterGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) + + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + + case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + + case strings.EqualFold("InvalidKMSKeyFault", errorCode): + return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) @@ -6817,18 +7435,27 @@ func awsAwsquery_deserializeOpErrorModifyUserGroup(response *smithyhttp.Response case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidUserGroupState", errorCode): return awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response, errorBody) - case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) + + case strings.EqualFold("NodeQuotaForClusterExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response, errorBody) + + case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) case strings.EqualFold("UserGroupNotFound", errorCode): return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) - case strings.EqualFold("UserNotFound", errorCode): - return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6839,14 +7466,14 @@ func awsAwsquery_deserializeOpErrorModifyUserGroup(response *smithyhttp.Response } } -type awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering struct { +type awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration struct { } -func (*awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) ID() string { +func (*awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyReplicationGroupShardConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6860,9 +7487,9 @@ func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(response, &metadata) } - output := &PurchaseReservedCacheNodesOfferingOutput{} + output := &ModifyReplicationGroupShardConfigurationOutput{} out.Result = output var buff [1024]byte @@ -6883,7 +7510,7 @@ func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("PurchaseReservedCacheNodesOfferingResult") + t, err = decoder.GetElement("ModifyReplicationGroupShardConfigurationResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6895,7 +7522,7 @@ func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDese } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentPurchaseReservedCacheNodesOfferingOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyReplicationGroupShardConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6909,7 +7536,7 @@ func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDese return out, metadata, err } -func awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyReplicationGroupShardConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6934,23 +7561,35 @@ func awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response * } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("InsufficientCacheClusterCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response, errorBody) + + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + + case strings.EqualFold("InvalidKMSKeyFault", errorCode): + return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ReservedCacheNodeAlreadyExists", errorCode): - return awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response, errorBody) + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("ReservedCacheNodeQuotaExceeded", errorCode): - return awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response, errorBody) + case strings.EqualFold("InvalidVPCNetworkStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response, errorBody) - case strings.EqualFold("ReservedCacheNodesOfferingNotFound", errorCode): - return awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(response, errorBody) + case strings.EqualFold("NodeGroupsPerReplicationGroupQuotaExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response, errorBody) - case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): - return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + case strings.EqualFold("NodeQuotaForCustomerExceeded", errorCode): + return awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6962,14 +7601,14 @@ func awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response * } } -type awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup struct { +type awsAwsquery_deserializeOpModifyServerlessCache struct { } -func (*awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) ID() string { +func (*awsAwsquery_deserializeOpModifyServerlessCache) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyServerlessCache) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6983,9 +7622,9 @@ func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyServerlessCache(response, &metadata) } - output := &RebalanceSlotsInGlobalReplicationGroupOutput{} + output := &ModifyServerlessCacheOutput{} out.Result = output var buff [1024]byte @@ -7006,7 +7645,7 @@ func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) Handle } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RebalanceSlotsInGlobalReplicationGroupResult") + t, err = decoder.GetElement("ModifyServerlessCacheResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7018,7 +7657,7 @@ func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) Handle } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRebalanceSlotsInGlobalReplicationGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyServerlessCacheOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7032,7 +7671,7 @@ func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) Handle return out, metadata, err } -func awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyServerlessCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7057,15 +7696,30 @@ func awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(respon } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidCredentialsException", errorCode): + return awsAwsquery_deserializeErrorInvalidCredentialsException(response, errorBody) - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) + + case strings.EqualFold("InvalidUserGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("UserGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7076,14 +7730,14 @@ func awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(respon } } -type awsAwsquery_deserializeOpRebootCacheCluster struct { +type awsAwsquery_deserializeOpModifyUser struct { } -func (*awsAwsquery_deserializeOpRebootCacheCluster) ID() string { +func (*awsAwsquery_deserializeOpModifyUser) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7097,9 +7751,9 @@ func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRebootCacheCluster(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyUser(response, &metadata) } - output := &RebootCacheClusterOutput{} + output := &ModifyUserOutput{} out.Result = output var buff [1024]byte @@ -7120,7 +7774,7 @@ func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RebootCacheClusterResult") + t, err = decoder.GetElement("ModifyUserResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7132,7 +7786,7 @@ func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx cont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRebootCacheClusterOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyUserOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7146,7 +7800,7 @@ func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorRebootCacheCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7171,11 +7825,20 @@ func awsAwsquery_deserializeOpErrorRebootCacheCluster(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidUserState", errorCode): + return awsAwsquery_deserializeErrorInvalidUserStateFault(response, errorBody) + + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) + + case strings.EqualFold("UserNotFound", errorCode): + return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -7187,14 +7850,14 @@ func awsAwsquery_deserializeOpErrorRebootCacheCluster(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpRemoveTagsFromResource struct { +type awsAwsquery_deserializeOpModifyUserGroup struct { } -func (*awsAwsquery_deserializeOpRemoveTagsFromResource) ID() string { +func (*awsAwsquery_deserializeOpModifyUserGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpModifyUserGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7208,9 +7871,9 @@ func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorModifyUserGroup(response, &metadata) } - output := &RemoveTagsFromResourceOutput{} + output := &ModifyUserGroupOutput{} out.Result = output var buff [1024]byte @@ -7231,7 +7894,7 @@ func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RemoveTagsFromResourceResult") + t, err = decoder.GetElement("ModifyUserGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7243,7 +7906,7 @@ func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRemoveTagsFromResourceOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7257,7 +7920,7 @@ func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx return out, metadata, err } -func awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorModifyUserGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7282,35 +7945,23 @@ func awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheClusterNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) + case strings.EqualFold("DefaultUserRequired", errorCode): + return awsAwsquery_deserializeErrorDefaultUserRequired(response, errorBody) - case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + case strings.EqualFold("DuplicateUserName", errorCode): + return awsAwsquery_deserializeErrorDuplicateUserNameFault(response, errorBody) - case strings.EqualFold("CacheSubnetGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) - case strings.EqualFold("InvalidARN", errorCode): - return awsAwsquery_deserializeErrorInvalidARNFault(response, errorBody) + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidUserGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("ReservedCacheNodeNotFound", errorCode): - return awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response, errorBody) - - case strings.EqualFold("SnapshotNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) - - case strings.EqualFold("TagNotFound", errorCode): - return awsAwsquery_deserializeErrorTagNotFoundFault(response, errorBody) + case strings.EqualFold("ServiceLinkedRoleNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response, errorBody) case strings.EqualFold("UserGroupNotFound", errorCode): return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) @@ -7328,14 +7979,14 @@ func awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response *smithyhttp.R } } -type awsAwsquery_deserializeOpResetCacheParameterGroup struct { +type awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering struct { } -func (*awsAwsquery_deserializeOpResetCacheParameterGroup) ID() string { +func (*awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpPurchaseReservedCacheNodesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7349,9 +8000,9 @@ func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response, &metadata) } - output := &ResetCacheParameterGroupOutput{} + output := &PurchaseReservedCacheNodesOfferingOutput{} out.Result = output var buff [1024]byte @@ -7372,7 +8023,7 @@ func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ResetCacheParameterGroupResult") + t, err = decoder.GetElement("PurchaseReservedCacheNodesOfferingResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7384,7 +8035,7 @@ func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ct } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentResetCacheParameterGroupOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentPurchaseReservedCacheNodesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7398,7 +8049,7 @@ func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ct return out, metadata, err } -func awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorPurchaseReservedCacheNodesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7423,21 +8074,24 @@ func awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response *smithyhttp } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("CacheParameterGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidCacheParameterGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response, errorBody) - - case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ReservedCacheNodeAlreadyExists", errorCode): + return awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response, errorBody) + + case strings.EqualFold("ReservedCacheNodeQuotaExceeded", errorCode): + return awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response, errorBody) + + case strings.EqualFold("ReservedCacheNodesOfferingNotFound", errorCode): + return awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(response, errorBody) + + case strings.EqualFold("TagQuotaPerResourceExceeded", errorCode): + return awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7448,14 +8102,14 @@ func awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response *smithyhttp } } -type awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress struct { +type awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup struct { } -func (*awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) ID() string { +func (*awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpRebalanceSlotsInGlobalReplicationGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7469,9 +8123,9 @@ func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(response, &metadata) } - output := &RevokeCacheSecurityGroupIngressOutput{} + output := &RebalanceSlotsInGlobalReplicationGroupOutput{} out.Result = output var buff [1024]byte @@ -7492,7 +8146,7 @@ func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RevokeCacheSecurityGroupIngressResult") + t, err = decoder.GetElement("RebalanceSlotsInGlobalReplicationGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7504,7 +8158,7 @@ func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeseria } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRevokeCacheSecurityGroupIngressOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentRebalanceSlotsInGlobalReplicationGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7518,7 +8172,7 @@ func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeseria return out, metadata, err } -func awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorRebalanceSlotsInGlobalReplicationGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7543,17 +8197,11 @@ func awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response *smi } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("AuthorizationNotFound", errorCode): - return awsAwsquery_deserializeErrorAuthorizationNotFoundFault(response, errorBody) - - case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) - - case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + case strings.EqualFold("GlobalReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) case strings.EqualFold("InvalidParameterValue", errorCode): return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -7568,14 +8216,14 @@ func awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response *smi } } -type awsAwsquery_deserializeOpStartMigration struct { +type awsAwsquery_deserializeOpRebootCacheCluster struct { } -func (*awsAwsquery_deserializeOpStartMigration) ID() string { +func (*awsAwsquery_deserializeOpRebootCacheCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpRebootCacheCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7589,9 +8237,9 @@ func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorStartMigration(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorRebootCacheCluster(response, &metadata) } - output := &StartMigrationOutput{} + output := &RebootCacheClusterOutput{} out.Result = output var buff [1024]byte @@ -7612,7 +8260,7 @@ func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("StartMigrationResult") + t, err = decoder.GetElement("RebootCacheClusterResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7624,7 +8272,7 @@ func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentStartMigrationOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentRebootCacheClusterOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7638,7 +8286,7 @@ func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsquery_deserializeOpErrorStartMigration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorRebootCacheCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7663,17 +8311,11 @@ func awsAwsquery_deserializeOpErrorStartMigration(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - - case strings.EqualFold("ReplicationGroupAlreadyUnderMigrationFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -7685,14 +8327,14 @@ func awsAwsquery_deserializeOpErrorStartMigration(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpTestFailover struct { +type awsAwsquery_deserializeOpRemoveTagsFromResource struct { } -func (*awsAwsquery_deserializeOpTestFailover) ID() string { +func (*awsAwsquery_deserializeOpRemoveTagsFromResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpRemoveTagsFromResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7706,9 +8348,9 @@ func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorTestFailover(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response, &metadata) } - output := &TestFailoverOutput{} + output := &RemoveTagsFromResourceOutput{} out.Result = output var buff [1024]byte @@ -7729,7 +8371,7 @@ func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("TestFailoverResult") + t, err = decoder.GetElement("RemoveTagsFromResourceResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7741,7 +8383,7 @@ func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Co } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentTestFailoverOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentRemoveTagsFromResourceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7755,7 +8397,7 @@ func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsquery_deserializeOpErrorTestFailover(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorRemoveTagsFromResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7780,32 +8422,53 @@ func awsAwsquery_deserializeOpErrorTestFailover(response *smithyhttp.Response, m } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("APICallRateForCustomerExceeded", errorCode): - return awsAwsquery_deserializeErrorAPICallRateForCustomerExceededFault(response, errorBody) + case strings.EqualFold("CacheClusterNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidCacheClusterState", errorCode): - return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + case strings.EqualFold("CacheParameterGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidKMSKeyFault", errorCode): - return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) + case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidParameterCombination", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + case strings.EqualFold("CacheSubnetGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("InvalidARN", errorCode): + return awsAwsquery_deserializeErrorInvalidARNFault(response, errorBody) case strings.EqualFold("InvalidReplicationGroupState", errorCode): return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("NodeGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidServerlessCacheSnapshotStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response, errorBody) + + case strings.EqualFold("InvalidServerlessCacheStateFault", errorCode): + return awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response, errorBody) case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) - case strings.EqualFold("TestFailoverNotAvailableFault", errorCode): - return awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response, errorBody) + case strings.EqualFold("ReservedCacheNodeNotFound", errorCode): + return awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response, errorBody) + + case strings.EqualFold("ServerlessCacheSnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("SnapshotNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorSnapshotNotFoundFault(response, errorBody) + + case strings.EqualFold("TagNotFound", errorCode): + return awsAwsquery_deserializeErrorTagNotFoundFault(response, errorBody) + + case strings.EqualFold("UserGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorUserGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("UserNotFound", errorCode): + return awsAwsquery_deserializeErrorUserNotFoundFault(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -7817,14 +8480,14 @@ func awsAwsquery_deserializeOpErrorTestFailover(response *smithyhttp.Response, m } } -type awsAwsquery_deserializeOpTestMigration struct { +type awsAwsquery_deserializeOpResetCacheParameterGroup struct { } -func (*awsAwsquery_deserializeOpTestMigration) ID() string { +func (*awsAwsquery_deserializeOpResetCacheParameterGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsquery_deserializeOpResetCacheParameterGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7838,9 +8501,9 @@ func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorTestMigration(response, &metadata) + return out, metadata, awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response, &metadata) } - output := &TestMigrationOutput{} + output := &ResetCacheParameterGroupOutput{} out.Result = output var buff [1024]byte @@ -7861,7 +8524,7 @@ func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("TestMigrationResult") + t, err = decoder.GetElement("ResetCacheParameterGroupResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7873,7 +8536,7 @@ func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.C } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentTestMigrationOutput(&output, decoder) + err = awsAwsquery_deserializeOpDocumentResetCacheParameterGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7887,7 +8550,7 @@ func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsquery_deserializeOpErrorTestMigration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsquery_deserializeOpErrorResetCacheParameterGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7912,17 +8575,20 @@ func awsAwsquery_deserializeOpErrorTestMigration(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InvalidParameterValue", errorCode): - return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("CacheParameterGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response, errorBody) - case strings.EqualFold("InvalidReplicationGroupState", errorCode): - return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + case strings.EqualFold("InvalidCacheParameterGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response, errorBody) - case strings.EqualFold("ReplicationGroupAlreadyUnderMigrationFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response, errorBody) + case strings.EqualFold("InvalidGlobalReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response, errorBody) - case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): - return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -7934,316 +8600,494 @@ func awsAwsquery_deserializeOpErrorTestMigration(response *smithyhttp.Response, } } -func awsAwsquery_deserializeErrorAPICallRateForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.APICallRateForCustomerExceededFault{} +type awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress struct { +} + +func (*awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpRevokeCacheSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response, &metadata) + } + output := &RevokeCacheSecurityGroupIngressOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) rootDecoder := xml.NewDecoder(body) t, err := smithyxml.FetchRootElement(rootDecoder) if err == io.EOF { - return output + return out, metadata, nil } if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + t, err = decoder.GetElement("RevokeCacheSecurityGroupIngressResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(&output, decoder) + err = awsAwsquery_deserializeOpDocumentRevokeCacheSecurityGroupIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } - return output + return out, metadata, err } -func awsAwsquery_deserializeErrorAuthorizationAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AuthorizationAlreadyExistsFault{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } +func awsAwsquery_deserializeOpErrorRevokeCacheSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AuthorizationNotFound", errorCode): + return awsAwsquery_deserializeErrorAuthorizationNotFoundFault(response, errorBody) - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + case strings.EqualFold("CacheSecurityGroupNotFound", errorCode): + return awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("InvalidCacheSecurityGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response, errorBody) + + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } +} - return output +type awsAwsquery_deserializeOpStartMigration struct { } -func awsAwsquery_deserializeErrorAuthorizationNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AuthorizationNotFoundFault{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } +func (*awsAwsquery_deserializeOpStartMigration) ID() string { + return "OperationDeserializer" +} - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") +func (m *awsAwsquery_deserializeOpStartMigration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorStartMigration(response, &metadata) + } + output := &StartMigrationOutput{} + out.Result = output -func awsAwsquery_deserializeErrorCacheClusterAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheClusterAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) rootDecoder := xml.NewDecoder(body) t, err := smithyxml.FetchRootElement(rootDecoder) if err == io.EOF { - return output + return out, metadata, nil } if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + t, err = decoder.GetElement("StartMigrationResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeOpDocumentStartMigrationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } - return output + return out, metadata, err } -func awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheClusterNotFoundFault{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output +func awsAwsquery_deserializeOpErrorStartMigration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupAlreadyUnderMigrationFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } +} - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(&output, decoder) +type awsAwsquery_deserializeOpTestFailover struct { +} + +func (*awsAwsquery_deserializeOpTestFailover) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpTestFailover) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return out, metadata, err } - return output -} + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorTestFailover(response, &metadata) + } + output := &TestFailoverOutput{} + out.Result = output -func awsAwsquery_deserializeErrorCacheParameterGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheParameterGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) rootDecoder := xml.NewDecoder(body) t, err := smithyxml.FetchRootElement(rootDecoder) if err == io.EOF { - return output + return out, metadata, nil } if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + t, err = decoder.GetElement("TestFailoverResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeOpDocumentTestFailoverOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } - return output + return out, metadata, err } -func awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheParameterGroupNotFoundFault{} +func awsAwsquery_deserializeOpErrorTestFailover(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("APICallRateForCustomerExceeded", errorCode): + return awsAwsquery_deserializeErrorAPICallRateForCustomerExceededFault(response, errorBody) + + case strings.EqualFold("InvalidCacheClusterState", errorCode): + return awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response, errorBody) + + case strings.EqualFold("InvalidKMSKeyFault", errorCode): + return awsAwsquery_deserializeErrorInvalidKMSKeyFault(response, errorBody) + + case strings.EqualFold("InvalidParameterCombination", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterCombinationException(response, errorBody) + + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + + case strings.EqualFold("NodeGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + + case strings.EqualFold("TestFailoverNotAvailableFault", errorCode): + return awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsquery_deserializeOpTestMigration struct { +} + +func (*awsAwsquery_deserializeOpTestMigration) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpTestMigration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorTestMigration(response, &metadata) + } + output := &TestMigrationOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) rootDecoder := xml.NewDecoder(body) t, err := smithyxml.FetchRootElement(rootDecoder) if err == io.EOF { - return output + return out, metadata, nil } if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + t, err = decoder.GetElement("TestMigrationResult") if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeOpDocumentTestMigrationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return out, metadata, err } - return output + return out, metadata, err } -func awsAwsquery_deserializeErrorCacheParameterGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheParameterGroupQuotaExceededFault{} +func awsAwsquery_deserializeOpErrorTestMigration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidParameterValue", errorCode): + return awsAwsquery_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("InvalidReplicationGroupState", errorCode): + return awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupAlreadyUnderMigrationFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response, errorBody) + + case strings.EqualFold("ReplicationGroupNotFoundFault", errorCode): + return awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsquery_deserializeErrorAPICallRateForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.APICallRateForCustomerExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8273,7 +9117,7 @@ func awsAwsquery_deserializeErrorCacheParameterGroupQuotaExceededFault(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8286,8 +9130,8 @@ func awsAwsquery_deserializeErrorCacheParameterGroupQuotaExceededFault(response return output } -func awsAwsquery_deserializeErrorCacheSecurityGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSecurityGroupAlreadyExistsFault{} +func awsAwsquery_deserializeErrorAuthorizationAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AuthorizationAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8317,7 +9161,7 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupAlreadyExistsFault(response * } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8330,8 +9174,8 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupAlreadyExistsFault(response * return output } -func awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSecurityGroupNotFoundFault{} +func awsAwsquery_deserializeErrorAuthorizationNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AuthorizationNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8361,7 +9205,7 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8374,8 +9218,8 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response *smith return output } -func awsAwsquery_deserializeErrorCacheSecurityGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSecurityGroupQuotaExceededFault{} +func awsAwsquery_deserializeErrorCacheClusterAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheClusterAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8405,7 +9249,7 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupQuotaExceededFault(response * } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8418,8 +9262,8 @@ func awsAwsquery_deserializeErrorCacheSecurityGroupQuotaExceededFault(response * return output } -func awsAwsquery_deserializeErrorCacheSubnetGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSubnetGroupAlreadyExistsFault{} +func awsAwsquery_deserializeErrorCacheClusterNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheClusterNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8449,7 +9293,7 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupAlreadyExistsFault(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8462,8 +9306,8 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupAlreadyExistsFault(response *sm return output } -func awsAwsquery_deserializeErrorCacheSubnetGroupInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSubnetGroupInUse{} +func awsAwsquery_deserializeErrorCacheParameterGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheParameterGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8493,7 +9337,7 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupInUse(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8506,8 +9350,8 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupInUse(response *smithyhttp.Resp return output } -func awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSubnetGroupNotFoundFault{} +func awsAwsquery_deserializeErrorCacheParameterGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheParameterGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8537,7 +9381,7 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8550,8 +9394,8 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response *smithyh return output } -func awsAwsquery_deserializeErrorCacheSubnetGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSubnetGroupQuotaExceededFault{} +func awsAwsquery_deserializeErrorCacheParameterGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheParameterGroupQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8581,7 +9425,7 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupQuotaExceededFault(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8594,8 +9438,8 @@ func awsAwsquery_deserializeErrorCacheSubnetGroupQuotaExceededFault(response *sm return output } -func awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CacheSubnetQuotaExceededFault{} +func awsAwsquery_deserializeErrorCacheSecurityGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSecurityGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8625,7 +9469,7 @@ func awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8638,8 +9482,8 @@ func awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response *smithyh return output } -func awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ClusterQuotaForCustomerExceededFault{} +func awsAwsquery_deserializeErrorCacheSecurityGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSecurityGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8669,7 +9513,7 @@ func awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response * } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8682,8 +9526,8 @@ func awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response * return output } -func awsAwsquery_deserializeErrorDefaultUserAssociatedToUserGroupFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DefaultUserAssociatedToUserGroupFault{} +func awsAwsquery_deserializeErrorCacheSecurityGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSecurityGroupQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8713,7 +9557,7 @@ func awsAwsquery_deserializeErrorDefaultUserAssociatedToUserGroupFault(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8726,8 +9570,8 @@ func awsAwsquery_deserializeErrorDefaultUserAssociatedToUserGroupFault(response return output } -func awsAwsquery_deserializeErrorDefaultUserRequired(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DefaultUserRequired{} +func awsAwsquery_deserializeErrorCacheSubnetGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSubnetGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8757,7 +9601,7 @@ func awsAwsquery_deserializeErrorDefaultUserRequired(response *smithyhttp.Respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDefaultUserRequired(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8770,8 +9614,8 @@ func awsAwsquery_deserializeErrorDefaultUserRequired(response *smithyhttp.Respon return output } -func awsAwsquery_deserializeErrorDuplicateUserNameFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateUserNameFault{} +func awsAwsquery_deserializeErrorCacheSubnetGroupInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSubnetGroupInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8801,7 +9645,7 @@ func awsAwsquery_deserializeErrorDuplicateUserNameFault(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateUserNameFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8814,8 +9658,8 @@ func awsAwsquery_deserializeErrorDuplicateUserNameFault(response *smithyhttp.Res return output } -func awsAwsquery_deserializeErrorGlobalReplicationGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.GlobalReplicationGroupAlreadyExistsFault{} +func awsAwsquery_deserializeErrorCacheSubnetGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSubnetGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8845,7 +9689,7 @@ func awsAwsquery_deserializeErrorGlobalReplicationGroupAlreadyExistsFault(respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8858,8 +9702,8 @@ func awsAwsquery_deserializeErrorGlobalReplicationGroupAlreadyExistsFault(respon return output } -func awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.GlobalReplicationGroupNotFoundFault{} +func awsAwsquery_deserializeErrorCacheSubnetGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSubnetGroupQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8889,7 +9733,7 @@ func awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8902,8 +9746,8 @@ func awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response *s return output } -func awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InsufficientCacheClusterCapacityFault{} +func awsAwsquery_deserializeErrorCacheSubnetQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CacheSubnetQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8933,7 +9777,7 @@ func awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(&output, decoder) + err = awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8946,8 +9790,8 @@ func awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response return output } -func awsAwsquery_deserializeErrorInvalidARNFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidARNFault{} +func awsAwsquery_deserializeErrorClusterQuotaForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ClusterQuotaForCustomerExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -8977,7 +9821,7 @@ func awsAwsquery_deserializeErrorInvalidARNFault(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidARNFault(&output, decoder) + err = awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8990,8 +9834,8 @@ func awsAwsquery_deserializeErrorInvalidARNFault(response *smithyhttp.Response, return output } -func awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidCacheClusterStateFault{} +func awsAwsquery_deserializeErrorDefaultUserAssociatedToUserGroupFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DefaultUserAssociatedToUserGroupFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9021,7 +9865,7 @@ func awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9034,8 +9878,8 @@ func awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response *smithyh return output } -func awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidCacheParameterGroupStateFault{} +func awsAwsquery_deserializeErrorDefaultUserRequired(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DefaultUserRequired{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9065,7 +9909,7 @@ func awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response * } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentDefaultUserRequired(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9078,8 +9922,8 @@ func awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response * return output } -func awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidCacheSecurityGroupStateFault{} +func awsAwsquery_deserializeErrorDuplicateUserNameFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateUserNameFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9109,7 +9953,7 @@ func awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentDuplicateUserNameFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9122,8 +9966,8 @@ func awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response *s return output } -func awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidGlobalReplicationGroupStateFault{} +func awsAwsquery_deserializeErrorGlobalReplicationGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.GlobalReplicationGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9153,7 +9997,7 @@ func awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9166,8 +10010,8 @@ func awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(respons return output } -func awsAwsquery_deserializeErrorInvalidKMSKeyFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidKMSKeyFault{} +func awsAwsquery_deserializeErrorGlobalReplicationGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.GlobalReplicationGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9197,7 +10041,7 @@ func awsAwsquery_deserializeErrorInvalidKMSKeyFault(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidKMSKeyFault(&output, decoder) + err = awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9210,8 +10054,8 @@ func awsAwsquery_deserializeErrorInvalidKMSKeyFault(response *smithyhttp.Respons return output } -func awsAwsquery_deserializeErrorInvalidParameterCombinationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidParameterCombinationException{} +func awsAwsquery_deserializeErrorInsufficientCacheClusterCapacityFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InsufficientCacheClusterCapacityFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9241,7 +10085,7 @@ func awsAwsquery_deserializeErrorInvalidParameterCombinationException(response * } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidParameterCombinationException(&output, decoder) + err = awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9254,8 +10098,8 @@ func awsAwsquery_deserializeErrorInvalidParameterCombinationException(response * return output } -func awsAwsquery_deserializeErrorInvalidParameterValueException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidParameterValueException{} +func awsAwsquery_deserializeErrorInvalidARNFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidARNFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9285,7 +10129,7 @@ func awsAwsquery_deserializeErrorInvalidParameterValueException(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidParameterValueException(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidARNFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9298,8 +10142,8 @@ func awsAwsquery_deserializeErrorInvalidParameterValueException(response *smithy return output } -func awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidReplicationGroupStateFault{} +func awsAwsquery_deserializeErrorInvalidCacheClusterStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidCacheClusterStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9329,7 +10173,7 @@ func awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9342,8 +10186,8 @@ func awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response *smi return output } -func awsAwsquery_deserializeErrorInvalidSnapshotStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidSnapshotStateFault{} +func awsAwsquery_deserializeErrorInvalidCacheParameterGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidCacheParameterGroupStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9373,7 +10217,7 @@ func awsAwsquery_deserializeErrorInvalidSnapshotStateFault(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9386,8 +10230,8 @@ func awsAwsquery_deserializeErrorInvalidSnapshotStateFault(response *smithyhttp. return output } -func awsAwsquery_deserializeErrorInvalidSubnet(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidSubnet{} +func awsAwsquery_deserializeErrorInvalidCacheSecurityGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidCacheSecurityGroupStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9417,7 +10261,7 @@ func awsAwsquery_deserializeErrorInvalidSubnet(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidSubnet(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9430,8 +10274,8 @@ func awsAwsquery_deserializeErrorInvalidSubnet(response *smithyhttp.Response, er return output } -func awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidUserGroupStateFault{} +func awsAwsquery_deserializeErrorInvalidCredentialsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidCredentialsException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9461,7 +10305,7 @@ func awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidCredentialsException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9474,8 +10318,8 @@ func awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response *smithyhttp return output } -func awsAwsquery_deserializeErrorInvalidUserStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidUserStateFault{} +func awsAwsquery_deserializeErrorInvalidGlobalReplicationGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidGlobalReplicationGroupStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9505,7 +10349,7 @@ func awsAwsquery_deserializeErrorInvalidUserStateFault(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidUserStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9518,8 +10362,8 @@ func awsAwsquery_deserializeErrorInvalidUserStateFault(response *smithyhttp.Resp return output } -func awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidVPCNetworkStateFault{} +func awsAwsquery_deserializeErrorInvalidKMSKeyFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidKMSKeyFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9549,7 +10393,7 @@ func awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidKMSKeyFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9562,8 +10406,8 @@ func awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response *smithyhtt return output } -func awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NodeGroupNotFoundFault{} +func awsAwsquery_deserializeErrorInvalidParameterCombinationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidParameterCombinationException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9593,7 +10437,7 @@ func awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidParameterCombinationException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9606,8 +10450,8 @@ func awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response *smithyhttp.Res return output } -func awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NodeGroupsPerReplicationGroupQuotaExceededFault{} +func awsAwsquery_deserializeErrorInvalidParameterValueException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidParameterValueException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9637,7 +10481,7 @@ func awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidParameterValueException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9650,8 +10494,8 @@ func awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault return output } -func awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NodeQuotaForClusterExceededFault{} +func awsAwsquery_deserializeErrorInvalidReplicationGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidReplicationGroupStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9681,7 +10525,7 @@ func awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9694,8 +10538,8 @@ func awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response *smit return output } -func awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NodeQuotaForCustomerExceededFault{} +func awsAwsquery_deserializeErrorInvalidServerlessCacheSnapshotStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidServerlessCacheSnapshotStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9725,7 +10569,7 @@ func awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidServerlessCacheSnapshotStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9738,8 +10582,8 @@ func awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response *smi return output } -func awsAwsquery_deserializeErrorNoOperationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoOperationFault{} +func awsAwsquery_deserializeErrorInvalidServerlessCacheStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidServerlessCacheStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9769,7 +10613,7 @@ func awsAwsquery_deserializeErrorNoOperationFault(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentNoOperationFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidServerlessCacheStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9782,8 +10626,8 @@ func awsAwsquery_deserializeErrorNoOperationFault(response *smithyhttp.Response, return output } -func awsAwsquery_deserializeErrorReplicationGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReplicationGroupAlreadyExistsFault{} +func awsAwsquery_deserializeErrorInvalidSnapshotStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidSnapshotStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9813,7 +10657,7 @@ func awsAwsquery_deserializeErrorReplicationGroupAlreadyExistsFault(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9826,8 +10670,8 @@ func awsAwsquery_deserializeErrorReplicationGroupAlreadyExistsFault(response *sm return output } -func awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReplicationGroupAlreadyUnderMigrationFault{} +func awsAwsquery_deserializeErrorInvalidSubnet(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidSubnet{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9857,7 +10701,7 @@ func awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidSubnet(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9870,8 +10714,8 @@ func awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(resp return output } -func awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReplicationGroupNotFoundFault{} +func awsAwsquery_deserializeErrorInvalidUserGroupStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidUserGroupStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9901,7 +10745,7 @@ func awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9914,8 +10758,8 @@ func awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response *smithyh return output } -func awsAwsquery_deserializeErrorReplicationGroupNotUnderMigrationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReplicationGroupNotUnderMigrationFault{} +func awsAwsquery_deserializeErrorInvalidUserStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidUserStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9945,7 +10789,7 @@ func awsAwsquery_deserializeErrorReplicationGroupNotUnderMigrationFault(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidUserStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9958,8 +10802,8 @@ func awsAwsquery_deserializeErrorReplicationGroupNotUnderMigrationFault(response return output } -func awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReservedCacheNodeAlreadyExistsFault{} +func awsAwsquery_deserializeErrorInvalidVPCNetworkStateFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidVPCNetworkStateFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -9989,7 +10833,7 @@ func awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10002,8 +10846,8 @@ func awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response *s return output } -func awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReservedCacheNodeNotFoundFault{} +func awsAwsquery_deserializeErrorNodeGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NodeGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10033,7 +10877,7 @@ func awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10046,8 +10890,8 @@ func awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response *smithy return output } -func awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReservedCacheNodeQuotaExceededFault{} +func awsAwsquery_deserializeErrorNodeGroupsPerReplicationGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NodeGroupsPerReplicationGroupQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10077,7 +10921,7 @@ func awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10090,8 +10934,8 @@ func awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response *s return output } -func awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReservedCacheNodesOfferingNotFoundFault{} +func awsAwsquery_deserializeErrorNodeQuotaForClusterExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NodeQuotaForClusterExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10121,7 +10965,7 @@ func awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10134,8 +10978,8 @@ func awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(respons return output } -func awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceLinkedRoleNotFoundFault{} +func awsAwsquery_deserializeErrorNodeQuotaForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NodeQuotaForCustomerExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10165,7 +11009,7 @@ func awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentServiceLinkedRoleNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10178,8 +11022,8 @@ func awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response *smithy return output } -func awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceUpdateNotFoundFault{} +func awsAwsquery_deserializeErrorNoOperationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoOperationFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10209,7 +11053,7 @@ func awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentServiceUpdateNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentNoOperationFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10222,8 +11066,8 @@ func awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response *smithyhttp return output } -func awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SnapshotAlreadyExistsFault{} +func awsAwsquery_deserializeErrorReplicationGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReplicationGroupAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10253,7 +11097,7 @@ func awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSnapshotAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10266,8 +11110,8 @@ func awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response *smithyhttp return output } -func awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SnapshotFeatureNotSupportedFault{} +func awsAwsquery_deserializeErrorReplicationGroupAlreadyUnderMigrationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReplicationGroupAlreadyUnderMigrationFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10297,7 +11141,7 @@ func awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSnapshotFeatureNotSupportedFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10310,8 +11154,8 @@ func awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response *smit return output } -func awsAwsquery_deserializeErrorSnapshotNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SnapshotNotFoundFault{} +func awsAwsquery_deserializeErrorReplicationGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReplicationGroupNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10341,7 +11185,7 @@ func awsAwsquery_deserializeErrorSnapshotNotFoundFault(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSnapshotNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10354,8 +11198,8 @@ func awsAwsquery_deserializeErrorSnapshotNotFoundFault(response *smithyhttp.Resp return output } -func awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SnapshotQuotaExceededFault{} +func awsAwsquery_deserializeErrorReplicationGroupNotUnderMigrationFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReplicationGroupNotUnderMigrationFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10385,7 +11229,7 @@ func awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10398,8 +11242,8 @@ func awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response *smithyhttp return output } -func awsAwsquery_deserializeErrorSubnetInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SubnetInUse{} +func awsAwsquery_deserializeErrorReservedCacheNodeAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReservedCacheNodeAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10429,7 +11273,7 @@ func awsAwsquery_deserializeErrorSubnetInUse(response *smithyhttp.Response, erro } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSubnetInUse(&output, decoder) + err = awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10442,8 +11286,8 @@ func awsAwsquery_deserializeErrorSubnetInUse(response *smithyhttp.Response, erro return output } -func awsAwsquery_deserializeErrorSubnetNotAllowedFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SubnetNotAllowedFault{} +func awsAwsquery_deserializeErrorReservedCacheNodeNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReservedCacheNodeNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10473,7 +11317,7 @@ func awsAwsquery_deserializeErrorSubnetNotAllowedFault(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSubnetNotAllowedFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10486,8 +11330,8 @@ func awsAwsquery_deserializeErrorSubnetNotAllowedFault(response *smithyhttp.Resp return output } -func awsAwsquery_deserializeErrorTagNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TagNotFoundFault{} +func awsAwsquery_deserializeErrorReservedCacheNodeQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReservedCacheNodeQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10517,7 +11361,7 @@ func awsAwsquery_deserializeErrorTagNotFoundFault(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTagNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10530,8 +11374,8 @@ func awsAwsquery_deserializeErrorTagNotFoundFault(response *smithyhttp.Response, return output } -func awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TagQuotaPerResourceExceeded{} +func awsAwsquery_deserializeErrorReservedCacheNodesOfferingNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ReservedCacheNodesOfferingNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10561,7 +11405,7 @@ func awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTagQuotaPerResourceExceeded(&output, decoder) + err = awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10574,8 +11418,8 @@ func awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response *smithyhtt return output } -func awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TestFailoverNotAvailableFault{} +func awsAwsquery_deserializeErrorServerlessCacheAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10605,7 +11449,7 @@ func awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTestFailoverNotAvailableFault(&output, decoder) + err = awsAwsquery_deserializeDocumentServerlessCacheAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10618,8 +11462,8 @@ func awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response *smithyh return output } -func awsAwsquery_deserializeErrorUserAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserAlreadyExistsFault{} +func awsAwsquery_deserializeErrorServerlessCacheNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10649,7 +11493,7 @@ func awsAwsquery_deserializeErrorUserAlreadyExistsFault(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentServerlessCacheNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10662,8 +11506,8 @@ func awsAwsquery_deserializeErrorUserAlreadyExistsFault(response *smithyhttp.Res return output } -func awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserGroupAlreadyExistsFault{} +func awsAwsquery_deserializeErrorServerlessCacheQuotaForCustomerExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheQuotaForCustomerExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10693,7 +11537,7 @@ func awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserGroupAlreadyExistsFault(&output, decoder) + err = awsAwsquery_deserializeDocumentServerlessCacheQuotaForCustomerExceededFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10706,8 +11550,8 @@ func awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response *smithyhtt return output } -func awsAwsquery_deserializeErrorUserGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserGroupNotFoundFault{} +func awsAwsquery_deserializeErrorServerlessCacheSnapshotAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheSnapshotAlreadyExistsFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10737,7 +11581,7 @@ func awsAwsquery_deserializeErrorUserGroupNotFoundFault(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserGroupNotFoundFault(&output, decoder) + err = awsAwsquery_deserializeDocumentServerlessCacheSnapshotAlreadyExistsFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10750,8 +11594,8 @@ func awsAwsquery_deserializeErrorUserGroupNotFoundFault(response *smithyhttp.Res return output } -func awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserGroupQuotaExceededFault{} +func awsAwsquery_deserializeErrorServerlessCacheSnapshotNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheSnapshotNotFoundFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10781,7 +11625,7 @@ func awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserGroupQuotaExceededFault(&output, decoder) + err = awsAwsquery_deserializeDocumentServerlessCacheSnapshotNotFoundFault(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10794,8 +11638,8 @@ func awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response *smithyhtt return output } -func awsAwsquery_deserializeErrorUserNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserNotFoundFault{} +func awsAwsquery_deserializeErrorServerlessCacheSnapshotQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServerlessCacheSnapshotQuotaExceededFault{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -10824,87 +11668,1524 @@ func awsAwsquery_deserializeErrorUserNotFoundFault(response *smithyhttp.Response } } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserNotFoundFault(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentServerlessCacheSnapshotQuotaExceededFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorServiceLinkedRoleNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceLinkedRoleNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentServiceLinkedRoleNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorServiceUpdateNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceUpdateNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentServiceUpdateNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSnapshotAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SnapshotAlreadyExistsFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSnapshotAlreadyExistsFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSnapshotFeatureNotSupportedFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SnapshotFeatureNotSupportedFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSnapshotFeatureNotSupportedFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSnapshotNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SnapshotNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSnapshotNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSnapshotQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SnapshotQuotaExceededFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSubnetInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SubnetInUse{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSubnetInUse(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorSubnetNotAllowedFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SubnetNotAllowedFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentSubnetNotAllowedFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorTagNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TagNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentTagNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorTagQuotaPerResourceExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TagQuotaPerResourceExceeded{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentTagQuotaPerResourceExceeded(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorTestFailoverNotAvailableFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TestFailoverNotAvailableFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentTestFailoverNotAvailableFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserAlreadyExistsFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserAlreadyExistsFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserGroupAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserGroupAlreadyExistsFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserGroupAlreadyExistsFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserGroupNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserGroupNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserGroupNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserGroupQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserGroupQuotaExceededFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserGroupQuotaExceededFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserNotFoundFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserNotFoundFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserNotFoundFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorUserQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UserQuotaExceededFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentUserQuotaExceededFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(v **types.APICallRateForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.APICallRateForCustomerExceededFault + if *v == nil { + sv = &types.APICallRateForCustomerExceededFault{} + } 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("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + 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_deserializeDocumentAuthentication(v **types.Authentication, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Authentication + if *v == nil { + sv = &types.Authentication{} + } 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("PasswordCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.PasswordCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("Type", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Type = types.AuthenticationType(xtv) + } + + 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_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.AuthorizationAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AuthorizationAlreadyExistsFault + if *v == nil { + sv = &types.AuthorizationAlreadyExistsFault{} + } 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("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + 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_deserializeDocumentAuthorizationNotFoundFault(v **types.AuthorizationNotFoundFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AuthorizationNotFoundFault + if *v == nil { + sv = &types.AuthorizationNotFoundFault{} + } 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("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + 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_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AvailabilityZone + if *v == nil { + sv = &types.AvailabilityZone{} + } 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("Name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + 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_deserializeDocumentAvailabilityZonesList(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("AvailabilityZone", 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_deserializeDocumentAvailabilityZonesListUnwrapped(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_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheCluster + if *v == nil { + sv = &types.CacheCluster{} + } 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("ARN", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ARN = ptr.String(xtv) + } + + case strings.EqualFold("AtRestEncryptionEnabled", 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.AtRestEncryptionEnabled = ptr.Bool(xtv) + } + + case strings.EqualFold("AuthTokenEnabled", 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.AuthTokenEnabled = ptr.Bool(xtv) + } + + case strings.EqualFold("AuthTokenLastModifiedDate", 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.AuthTokenLastModifiedDate = ptr.Time(t) + } + + case strings.EqualFold("AutoMinorVersionUpgrade", 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 Boolean to be of type *bool, got %T instead", val) + } + sv.AutoMinorVersionUpgrade = ptr.Bool(xtv) + } + + case strings.EqualFold("CacheClusterCreateTime", 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.CacheClusterCreateTime = ptr.Time(t) + } + + case strings.EqualFold("CacheClusterId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheClusterId = ptr.String(xtv) + } + + case strings.EqualFold("CacheClusterStatus", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheClusterStatus = ptr.String(xtv) + } + + case strings.EqualFold("CacheNodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheNodeList(&sv.CacheNodes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheNodeType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheNodeType = ptr.String(xtv) + } + + case strings.EqualFold("CacheParameterGroup", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheParameterGroupStatus(&sv.CacheParameterGroup, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheSecurityGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(&sv.CacheSecurityGroups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheSubnetGroupName = ptr.String(xtv) + } + + case strings.EqualFold("ClientDownloadLandingPage", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientDownloadLandingPage = ptr.String(xtv) + } + + case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ConfigurationEndpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Engine", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Engine = ptr.String(xtv) + } + + case strings.EqualFold("EngineVersion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EngineVersion = ptr.String(xtv) + } + + case strings.EqualFold("IpDiscovery", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IpDiscovery = types.IpDiscovery(xtv) + } + + case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NetworkType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkType = types.NetworkType(xtv) + } + + case strings.EqualFold("NotificationConfiguration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&sv.NotificationConfiguration, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NumCacheNodes", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NumCacheNodes = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("PendingModifiedValues", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentPendingModifiedValues(&sv.PendingModifiedValues, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("PreferredAvailabilityZone", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreferredAvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreferredMaintenanceWindow = ptr.String(xtv) + } + + case strings.EqualFold("PreferredOutpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreferredOutpostArn = ptr.String(xtv) + } - return output -} + case strings.EqualFold("ReplicationGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ReplicationGroupId = ptr.String(xtv) + } -func awsAwsquery_deserializeErrorUserQuotaExceededFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UserQuotaExceededFault{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } + case strings.EqualFold("ReplicationGroupLogDeliveryEnabled", 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 Boolean to be of type *bool, got %T instead", val) + } + sv.ReplicationGroupLogDeliveryEnabled = ptr.Bool(xtv) + } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } + case strings.EqualFold("SecurityGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSecurityGroupMembershipList(&sv.SecurityGroups, nodeDecoder); err != nil { + return err + } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUserQuotaExceededFault(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } + case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.SnapshotRetentionLimit = ptr.Int32(int32(i64)) + } - return output -} + case strings.EqualFold("SnapshotWindow", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SnapshotWindow = ptr.String(xtv) + } -func awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(v **types.APICallRateForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.APICallRateForCustomerExceededFault - if *v == nil { - sv = &types.APICallRateForCustomerExceededFault{} - } else { - sv = *v - } + case strings.EqualFold("TransitEncryptionEnabled", 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.TransitEncryptionEnabled = ptr.Bool(xtv) + } - 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("message", t.Name.Local): + case strings.EqualFold("TransitEncryptionMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -10914,7 +13195,7 @@ func awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(v **type } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) } default: @@ -10931,13 +13212,13 @@ func awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentAuthentication(v **types.Authentication, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.CacheClusterAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Authentication + var sv *types.CacheClusterAlreadyExistsFault if *v == nil { - sv = &types.Authentication{} + sv = &types.CacheClusterAlreadyExistsFault{} } else { sv = *v } @@ -10953,24 +13234,7 @@ func awsAwsquery_deserializeDocumentAuthentication(v **types.Authentication, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("PasswordCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.PasswordCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Type", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -10980,7 +13244,7 @@ func awsAwsquery_deserializeDocumentAuthentication(v **types.Authentication, dec } { xtv := string(val) - sv.Type = types.AuthenticationType(xtv) + sv.Message = ptr.String(xtv) } default: @@ -10997,17 +13261,18 @@ func awsAwsquery_deserializeDocumentAuthentication(v **types.Authentication, dec return nil } -func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.AuthorizationAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheClusterList(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AuthorizationAlreadyExistsFault + var sv []types.CacheCluster if *v == nil { - sv = &types.AuthorizationAlreadyExistsFault{} + sv = make([]types.CacheCluster, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -11016,24 +13281,18 @@ func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.Au if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("CacheCluster", t.Name.Local): + var col types.CacheCluster + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -11046,13 +13305,37 @@ func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.Au return nil } -func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.AuthorizationNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheClusterListUnwrapped(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheCluster + if *v == nil { + sv = make([]types.CacheCluster, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CacheCluster + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(v **types.CacheClusterNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AuthorizationNotFoundFault + var sv *types.CacheClusterNotFoundFault if *v == nil { - sv = &types.AuthorizationNotFoundFault{} + sv = &types.CacheClusterNotFoundFault{} } else { sv = *v } @@ -11095,13 +13378,13 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori return nil } -func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AvailabilityZone + var sv *types.CacheEngineVersion if *v == nil { - sv = &types.AvailabilityZone{} + sv = &types.CacheEngineVersion{} } else { sv = *v } @@ -11117,7 +13400,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Name", t.Name.Local): + case strings.EqualFold("CacheEngineDescription", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11127,7 +13410,59 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.CacheEngineDescription = ptr.String(xtv) + } + + case strings.EqualFold("CacheEngineVersionDescription", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheEngineVersionDescription = ptr.String(xtv) + } + + case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheParameterGroupFamily = ptr.String(xtv) + } + + case strings.EqualFold("Engine", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Engine = ptr.String(xtv) + } + + case strings.EqualFold("EngineVersion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EngineVersion = ptr.String(xtv) } default: @@ -11144,13 +13479,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.CacheEngineVersion if *v == nil { - sv = make([]string, 0) + sv = make([]types.CacheEngineVersion, 0) } else { sv = *v } @@ -11164,22 +13499,15 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]string, decoder s if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { - case strings.EqualFold("AvailabilityZone", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("CacheEngineVersion", t.Name.Local): + var col types.CacheEngineVersion + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -11195,42 +13523,37 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]string, decoder s return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsAwsquery_deserializeDocumentCacheEngineVersionListUnwrapped(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheEngineVersion if *v == nil { - sv = make([]string, 0) + sv = make([]types.CacheEngineVersion, 0) } else { sv = *v } switch { default: - var mv string + var mv types.CacheEngineVersion t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheCluster + var sv *types.CacheNode if *v == nil { - sv = &types.CacheCluster{} + sv = &types.CacheNode{} } else { sv = *v } @@ -11246,52 +13569,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ARN", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ARN = ptr.String(xtv) - } - - case strings.EqualFold("AtRestEncryptionEnabled", 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.AtRestEncryptionEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("AuthTokenEnabled", 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.AuthTokenEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("AuthTokenLastModifiedDate", t.Name.Local): + case strings.EqualFold("CacheNodeCreateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11305,10 +13583,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return err } - sv.AuthTokenLastModifiedDate = ptr.Time(t) + sv.CacheNodeCreateTime = ptr.Time(t) } - case strings.EqualFold("AutoMinorVersionUpgrade", t.Name.Local): + case strings.EqualFold("CacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11317,14 +13595,11 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.AutoMinorVersionUpgrade = ptr.Bool(xtv) + xtv := string(val) + sv.CacheNodeId = ptr.String(xtv) } - case strings.EqualFold("CacheClusterCreateTime", t.Name.Local): + case strings.EqualFold("CacheNodeStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11334,14 +13609,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CacheClusterCreateTime = ptr.Time(t) + sv.CacheNodeStatus = ptr.String(xtv) } - case strings.EqualFold("CacheClusterId", t.Name.Local): + case strings.EqualFold("CustomerAvailabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11351,10 +13622,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.CacheClusterId = ptr.String(xtv) + sv.CustomerAvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("CacheClusterStatus", t.Name.Local): + case strings.EqualFold("CustomerOutpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11364,16 +13635,16 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.CacheClusterStatus = ptr.String(xtv) + sv.CustomerOutpostArn = ptr.String(xtv) } - case strings.EqualFold("CacheNodes", t.Name.Local): + case strings.EqualFold("Endpoint", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeList(&sv.CacheNodes, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.Endpoint, nodeDecoder); err != nil { return err } - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("ParameterGroupStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11383,22 +13654,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) - } - - case strings.EqualFold("CacheParameterGroup", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheParameterGroupStatus(&sv.CacheParameterGroup, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("CacheSecurityGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(&sv.CacheSecurityGroups, nodeDecoder); err != nil { - return err + sv.ParameterGroupStatus = ptr.String(xtv) } - case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): + case strings.EqualFold("SourceCacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11408,29 +13667,48 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.CacheSubnetGroupName = ptr.String(xtv) + sv.SourceCacheNodeId = ptr.String(xtv) } - case strings.EqualFold("ClientDownloadLandingPage", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ClientDownloadLandingPage = ptr.String(xtv) - } - case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ConfigurationEndpoint, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("Engine", t.Name.Local): +func awsAwsquery_deserializeDocumentCacheNodeIdsList(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("CacheNodeId", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -11440,61 +13718,143 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.Engine = ptr.String(xtv) + col = xtv } + sv = append(sv, col) - case strings.EqualFold("EngineVersion", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.EngineVersion = ptr.String(xtv) - } - case strings.EqualFold("IpDiscovery", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpDiscovery = types.IpDiscovery(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): +func awsAwsquery_deserializeDocumentCacheNodeIdsListUnwrapped(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_deserializeDocumentCacheNodeList(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CacheNode + if *v == nil { + sv = make([]types.CacheNode, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("CacheNode", t.Name.Local): + var col types.CacheNode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("NetworkType", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NetworkType = types.NetworkType(xtv) - } - case strings.EqualFold("NotificationConfiguration", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&sv.NotificationConfiguration, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("NumCacheNodes", t.Name.Local): +func awsAwsquery_deserializeDocumentCacheNodeListUnwrapped(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNode + if *v == nil { + sv = make([]types.CacheNode, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CacheNode + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheNodeTypeSpecificParameter + if *v == nil { + sv = &types.CacheNodeTypeSpecificParameter{} + } 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("AllowedValues", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11504,33 +13864,16 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumCacheNodes = ptr.Int32(int32(i64)) + sv.AllowedValues = ptr.String(xtv) } - case strings.EqualFold("PendingModifiedValues", t.Name.Local): + case strings.EqualFold("CacheNodeTypeSpecificValues", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingModifiedValues(&sv.PendingModifiedValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("PreferredAvailabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(&sv.CacheNodeTypeSpecificValues, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PreferredAvailabilityZone = ptr.String(xtv) - } - case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): + case strings.EqualFold("ChangeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11540,10 +13883,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.PreferredMaintenanceWindow = ptr.String(xtv) + sv.ChangeType = types.ChangeType(xtv) } - case strings.EqualFold("PreferredOutpostArn", t.Name.Local): + case strings.EqualFold("DataType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11553,10 +13896,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.PreferredOutpostArn = ptr.String(xtv) + sv.DataType = ptr.String(xtv) } - case strings.EqualFold("ReplicationGroupId", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11566,10 +13909,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.ReplicationGroupId = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("ReplicationGroupLogDeliveryEnabled", t.Name.Local): + case strings.EqualFold("IsModifiable", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11582,16 +13925,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReplicationGroupLogDeliveryEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("SecurityGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSecurityGroupMembershipList(&sv.SecurityGroups, nodeDecoder); err != nil { - return err + sv.IsModifiable = ptr.Bool(xtv) } - case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): + case strings.EqualFold("MinimumEngineVersion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11601,14 +13938,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SnapshotRetentionLimit = ptr.Int32(int32(i64)) + sv.MinimumEngineVersion = ptr.String(xtv) } - case strings.EqualFold("SnapshotWindow", t.Name.Local): + case strings.EqualFold("ParameterName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11618,10 +13951,10 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } { xtv := string(val) - sv.SnapshotWindow = ptr.String(xtv) + sv.ParameterName = ptr.String(xtv) } - case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): + case strings.EqualFold("Source", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11630,28 +13963,56 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder 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.TransitEncryptionEnabled = ptr.Bool(xtv) + xtv := string(val) + sv.Source = ptr.String(xtv) } - case strings.EqualFold("TransitEncryptionMode", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) - } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CacheNodeTypeSpecificParameter + if *v == nil { + sv = make([]types.CacheNodeTypeSpecificParameter, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("CacheNodeTypeSpecificParameter", t.Name.Local): + var col types.CacheNodeTypeSpecificParameter + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -11664,13 +14025,37 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder return nil } -func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.CacheClusterAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersListUnwrapped(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeTypeSpecificParameter + if *v == nil { + sv = make([]types.CacheNodeTypeSpecificParameter, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CacheNodeTypeSpecificParameter + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheClusterAlreadyExistsFault + var sv *types.CacheNodeTypeSpecificValue if *v == nil { - sv = &types.CacheClusterAlreadyExistsFault{} + sv = &types.CacheNodeTypeSpecificValue{} } else { sv = *v } @@ -11686,7 +14071,7 @@ func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.Cac originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11696,7 +14081,20 @@ func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.Cac } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheNodeType = ptr.String(xtv) + } + + case strings.EqualFold("Value", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Value = ptr.String(xtv) } default: @@ -11713,13 +14111,13 @@ func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.Cac return nil } -func awsAwsquery_deserializeDocumentCacheClusterList(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheCluster + var sv []types.CacheNodeTypeSpecificValue if *v == nil { - sv = make([]types.CacheCluster, 0) + sv = make([]types.CacheNodeTypeSpecificValue, 0) } else { sv = *v } @@ -11734,11 +14132,11 @@ func awsAwsquery_deserializeDocumentCacheClusterList(v *[]types.CacheCluster, de break } switch { - case strings.EqualFold("CacheCluster", t.Name.Local): - var col types.CacheCluster + case strings.EqualFold("CacheNodeTypeSpecificValue", t.Name.Local): + var col types.CacheNodeTypeSpecificValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -11757,22 +14155,22 @@ func awsAwsquery_deserializeDocumentCacheClusterList(v *[]types.CacheCluster, de return nil } -func awsAwsquery_deserializeDocumentCacheClusterListUnwrapped(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheCluster +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueListUnwrapped(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeTypeSpecificValue if *v == nil { - sv = make([]types.CacheCluster, 0) + sv = make([]types.CacheNodeTypeSpecificValue, 0) } else { sv = *v } switch { default: - var mv types.CacheCluster + var mv types.CacheNodeTypeSpecificValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -11781,13 +14179,13 @@ func awsAwsquery_deserializeDocumentCacheClusterListUnwrapped(v *[]types.CacheCl *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(v **types.CacheClusterNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheClusterNotFoundFault + var sv *types.CacheNodeUpdateStatus if *v == nil { - sv = &types.CacheClusterNotFoundFault{} + sv = &types.CacheNodeUpdateStatus{} } else { sv = *v } @@ -11803,7 +14201,7 @@ func awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(v **types.CacheClu originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11813,46 +14211,44 @@ func awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(v **types.CacheClu } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheNodeId = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("NodeDeletionDate", 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.NodeDeletionDate = ptr.Time(t) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CacheEngineVersion - if *v == nil { - sv = &types.CacheEngineVersion{} - } else { - sv = *v - } + case strings.EqualFold("NodeUpdateEndDate", 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.NodeUpdateEndDate = ptr.Time(t) + } - 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("CacheEngineDescription", t.Name.Local): + case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11862,10 +14258,10 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } { xtv := string(val) - sv.CacheEngineDescription = ptr.String(xtv) + sv.NodeUpdateInitiatedBy = types.NodeUpdateInitiatedBy(xtv) } - case strings.EqualFold("CacheEngineVersionDescription", t.Name.Local): + case strings.EqualFold("NodeUpdateInitiatedDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11875,10 +14271,14 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } { xtv := string(val) - sv.CacheEngineVersionDescription = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeUpdateInitiatedDate = ptr.Time(t) } - case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): + case strings.EqualFold("NodeUpdateStartDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11888,10 +14288,14 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } { xtv := string(val) - sv.CacheParameterGroupFamily = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeUpdateStartDate = ptr.Time(t) } - case strings.EqualFold("Engine", t.Name.Local): + case strings.EqualFold("NodeUpdateStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11901,10 +14305,10 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } { xtv := string(val) - sv.Engine = ptr.String(xtv) + sv.NodeUpdateStatus = types.NodeUpdateStatus(xtv) } - case strings.EqualFold("EngineVersion", t.Name.Local): + case strings.EqualFold("NodeUpdateStatusModifiedDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -11914,7 +14318,11 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } { xtv := string(val) - sv.EngineVersion = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeUpdateStatusModifiedDate = ptr.Time(t) } default: @@ -11931,13 +14339,13 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers return nil } -func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheEngineVersion + var sv []types.CacheNodeUpdateStatus if *v == nil { - sv = make([]types.CacheEngineVersion, 0) + sv = make([]types.CacheNodeUpdateStatus, 0) } else { sv = *v } @@ -11952,11 +14360,11 @@ func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]types.CacheEngin break } switch { - case strings.EqualFold("CacheEngineVersion", t.Name.Local): - var col types.CacheEngineVersion + case strings.EqualFold("CacheNodeUpdateStatus", t.Name.Local): + var col types.CacheNodeUpdateStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -11975,22 +14383,22 @@ func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]types.CacheEngin return nil } -func awsAwsquery_deserializeDocumentCacheEngineVersionListUnwrapped(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheEngineVersion +func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusListUnwrapped(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeUpdateStatus if *v == nil { - sv = make([]types.CacheEngineVersion, 0) + sv = make([]types.CacheNodeUpdateStatus, 0) } else { sv = *v } switch { default: - var mv types.CacheEngineVersion + var mv types.CacheNodeUpdateStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -11999,13 +14407,13 @@ func awsAwsquery_deserializeDocumentCacheEngineVersionListUnwrapped(v *[]types.C *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheNode + var sv *types.CacheParameterGroup if *v == nil { - sv = &types.CacheNode{} + sv = &types.CacheParameterGroup{} } else { sv = *v } @@ -12019,39 +14427,9 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith break } originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("CacheNodeCreateTime", 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.CacheNodeCreateTime = ptr.Time(t) - } - - case strings.EqualFold("CacheNodeId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheNodeId = ptr.String(xtv) - } - - case strings.EqualFold("CacheNodeStatus", t.Name.Local): + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12061,10 +14439,10 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } { xtv := string(val) - sv.CacheNodeStatus = ptr.String(xtv) + sv.ARN = ptr.String(xtv) } - case strings.EqualFold("CustomerAvailabilityZone", t.Name.Local): + case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12074,10 +14452,10 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } { xtv := string(val) - sv.CustomerAvailabilityZone = ptr.String(xtv) + sv.CacheParameterGroupFamily = ptr.String(xtv) } - case strings.EqualFold("CustomerOutpostArn", t.Name.Local): + case strings.EqualFold("CacheParameterGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12087,16 +14465,10 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } { xtv := string(val) - sv.CustomerOutpostArn = ptr.String(xtv) - } - - case strings.EqualFold("Endpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.Endpoint, nodeDecoder); err != nil { - return err + sv.CacheParameterGroupName = ptr.String(xtv) } - case strings.EqualFold("ParameterGroupStatus", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12106,10 +14478,10 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } { xtv := string(val) - sv.ParameterGroupStatus = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("SourceCacheNodeId", t.Name.Local): + case strings.EqualFold("IsGlobal", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12118,8 +14490,11 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith break } { - xtv := string(val) - sv.SourceCacheNodeId = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.IsGlobal = ptr.Bool(xtv) } default: @@ -12136,18 +14511,17 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith return nil } -func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(v **types.CacheParameterGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.CacheParameterGroupAlreadyExistsFault if *v == nil { - sv = make([]string, 0) + sv = &types.CacheParameterGroupAlreadyExistsFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -12156,11 +14530,10 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]string, decoder smithy if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeId", t.Name.Local): - var col string + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12170,11 +14543,11 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]string, decoder smithy } { xtv := string(val) - col = xtv + sv.Message = ptr.String(xtv) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -12187,42 +14560,13 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentCacheNodeIdsListUnwrapped(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_deserializeDocumentCacheNodeList(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheNode + var sv []types.CacheParameterGroup if *v == nil { - sv = make([]types.CacheNode, 0) + sv = make([]types.CacheParameterGroup, 0) } else { sv = *v } @@ -12237,11 +14581,11 @@ func awsAwsquery_deserializeDocumentCacheNodeList(v *[]types.CacheNode, decoder break } switch { - case strings.EqualFold("CacheNode", t.Name.Local): - var col types.CacheNode + case strings.EqualFold("CacheParameterGroup", t.Name.Local): + var col types.CacheParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -12260,22 +14604,22 @@ func awsAwsquery_deserializeDocumentCacheNodeList(v *[]types.CacheNode, decoder return nil } -func awsAwsquery_deserializeDocumentCacheNodeListUnwrapped(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheNode +func awsAwsquery_deserializeDocumentCacheParameterGroupListUnwrapped(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheParameterGroup if *v == nil { - sv = make([]types.CacheNode, 0) + sv = make([]types.CacheParameterGroup, 0) } else { sv = *v } switch { default: - var mv types.CacheNode + var mv types.CacheParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -12284,13 +14628,13 @@ func awsAwsquery_deserializeDocumentCacheNodeListUnwrapped(v *[]types.CacheNode, *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(v **types.CacheParameterGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheNodeTypeSpecificParameter + var sv *types.CacheParameterGroupNotFoundFault if *v == nil { - sv = &types.CacheNodeTypeSpecificParameter{} + sv = &types.CacheParameterGroupNotFoundFault{} } else { sv = *v } @@ -12306,7 +14650,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AllowedValues", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12316,16 +14660,46 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.AllowedValues = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("CacheNodeTypeSpecificValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(&sv.CacheNodeTypeSpecificValues, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("ChangeType", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(v **types.CacheParameterGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheParameterGroupQuotaExceededFault + if *v == nil { + sv = &types.CacheParameterGroupQuotaExceededFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12335,10 +14709,52 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.ChangeType = types.ChangeType(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("DataType", t.Name.Local): + 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_deserializeDocumentCacheParameterGroupStatus(v **types.CacheParameterGroupStatus, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheParameterGroupStatus + if *v == nil { + sv = &types.CacheParameterGroupStatus{} + } 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("CacheNodeIdsToReboot", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheNodeIdsList(&sv.CacheNodeIdsToReboot, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheParameterGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12348,10 +14764,10 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.DataType = ptr.String(xtv) + sv.CacheParameterGroupName = ptr.String(xtv) } - case strings.EqualFold("Description", t.Name.Local): + case strings.EqualFold("ParameterApplyStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12361,10 +14777,46 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.ParameterApplyStatus = ptr.String(xtv) } - case strings.EqualFold("IsModifiable", t.Name.Local): + 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_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheSecurityGroup + if *v == nil { + sv = &types.CacheSecurityGroup{} + } 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("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12373,14 +14825,11 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.IsModifiable = ptr.Bool(xtv) + xtv := string(val) + sv.ARN = ptr.String(xtv) } - case strings.EqualFold("MinimumEngineVersion", t.Name.Local): + case strings.EqualFold("CacheSecurityGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12390,10 +14839,10 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.MinimumEngineVersion = ptr.String(xtv) + sv.CacheSecurityGroupName = ptr.String(xtv) } - case strings.EqualFold("ParameterName", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12403,10 +14852,16 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.ParameterName = ptr.String(xtv) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("EC2SecurityGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEC2SecurityGroupList(&sv.EC2SecurityGroups, nodeDecoder); err != nil { + return err } - case strings.EqualFold("Source", t.Name.Local): + case strings.EqualFold("OwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12416,7 +14871,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } { xtv := string(val) - sv.Source = ptr.String(xtv) + sv.OwnerId = ptr.String(xtv) } default: @@ -12433,18 +14888,17 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(v **types.CacheSecurityGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheNodeTypeSpecificParameter + var sv *types.CacheSecurityGroupAlreadyExistsFault if *v == nil { - sv = make([]types.CacheNodeTypeSpecificParameter, 0) + sv = &types.CacheSecurityGroupAlreadyExistsFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -12453,18 +14907,24 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]typ if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeTypeSpecificParameter", t.Name.Local): - var col types.CacheNodeTypeSpecificParameter - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -12477,37 +14937,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]typ return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersListUnwrapped(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheNodeTypeSpecificParameter - if *v == nil { - sv = make([]types.CacheNodeTypeSpecificParameter, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CacheNodeTypeSpecificParameter - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheNodeTypeSpecificValue + var sv *types.CacheSecurityGroupMembership if *v == nil { - sv = &types.CacheNodeTypeSpecificValue{} + sv = &types.CacheSecurityGroupMembership{} } else { sv = *v } @@ -12523,7 +14959,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("CacheSecurityGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12533,10 +14969,10 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) + sv.CacheSecurityGroupName = ptr.String(xtv) } - case strings.EqualFold("Value", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12546,7 +14982,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo } { xtv := string(val) - sv.Value = ptr.String(xtv) + sv.Status = ptr.String(xtv) } default: @@ -12563,13 +14999,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheNodeTypeSpecificValue + var sv []types.CacheSecurityGroupMembership if *v == nil { - sv = make([]types.CacheNodeTypeSpecificValue, 0) + sv = make([]types.CacheSecurityGroupMembership, 0) } else { sv = *v } @@ -12584,11 +15020,11 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]types.Ca break } switch { - case strings.EqualFold("CacheNodeTypeSpecificValue", t.Name.Local): - var col types.CacheNodeTypeSpecificValue + case strings.EqualFold("CacheSecurityGroup", t.Name.Local): + var col types.CacheSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -12607,22 +15043,22 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]types.Ca return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueListUnwrapped(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheNodeTypeSpecificValue +func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipListUnwrapped(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSecurityGroupMembership if *v == nil { - sv = make([]types.CacheNodeTypeSpecificValue, 0) + sv = make([]types.CacheSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv types.CacheNodeTypeSpecificValue + var mv types.CacheSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -12631,13 +15067,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueListUnwrapped(v *[ *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(v **types.CacheSecurityGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheNodeUpdateStatus + var sv *types.CacheSecurityGroupNotFoundFault if *v == nil { - sv = &types.CacheNodeUpdateStatus{} + sv = &types.CacheSecurityGroupNotFoundFault{} } else { sv = *v } @@ -12653,54 +15089,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheNodeId = ptr.String(xtv) - } - - case strings.EqualFold("NodeDeletionDate", 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.NodeDeletionDate = ptr.Time(t) - } - - case strings.EqualFold("NodeUpdateEndDate", 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.NodeUpdateEndDate = ptr.Time(t) - } - - case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12710,57 +15099,46 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd } { xtv := string(val) - sv.NodeUpdateInitiatedBy = types.NodeUpdateInitiatedBy(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("NodeUpdateInitiatedDate", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NodeUpdateInitiatedDate = ptr.Time(t) - } - case strings.EqualFold("NodeUpdateStartDate", 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.NodeUpdateStartDate = ptr.Time(t) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("NodeUpdateStatus", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NodeUpdateStatus = types.NodeUpdateStatus(xtv) - } +func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **types.CacheSecurityGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheSecurityGroupQuotaExceededFault + if *v == nil { + sv = &types.CacheSecurityGroupQuotaExceededFault{} + } else { + sv = *v + } - case strings.EqualFold("NodeUpdateStatusModifiedDate", t.Name.Local): + 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12770,11 +15148,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NodeUpdateStatusModifiedDate = ptr.Time(t) + sv.Message = ptr.String(xtv) } default: @@ -12791,13 +15165,13 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd return nil } -func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheNodeUpdateStatus + var sv []types.CacheSecurityGroup if *v == nil { - sv = make([]types.CacheNodeUpdateStatus, 0) + sv = make([]types.CacheSecurityGroup, 0) } else { sv = *v } @@ -12812,11 +15186,11 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]types.CacheNo break } switch { - case strings.EqualFold("CacheNodeUpdateStatus", t.Name.Local): - var col types.CacheNodeUpdateStatus + case strings.EqualFold("CacheSecurityGroup", t.Name.Local): + var col types.CacheSecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -12835,22 +15209,22 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]types.CacheNo return nil } -func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusListUnwrapped(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheNodeUpdateStatus +func awsAwsquery_deserializeDocumentCacheSecurityGroupsUnwrapped(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSecurityGroup if *v == nil { - sv = make([]types.CacheNodeUpdateStatus, 0) + sv = make([]types.CacheSecurityGroup, 0) } else { sv = *v } switch { default: - var mv types.CacheNodeUpdateStatus + var mv types.CacheSecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -12859,13 +15233,13 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusListUnwrapped(v *[]type *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheParameterGroup + var sv *types.CacheSubnetGroup if *v == nil { - sv = &types.CacheParameterGroup{} + sv = &types.CacheSubnetGroup{} } else { sv = *v } @@ -12894,7 +15268,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter sv.ARN = ptr.String(xtv) } - case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): + case strings.EqualFold("CacheSubnetGroupDescription", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12904,10 +15278,10 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } { xtv := string(val) - sv.CacheParameterGroupFamily = ptr.String(xtv) + sv.CacheSubnetGroupDescription = ptr.String(xtv) } - case strings.EqualFold("CacheParameterGroupName", t.Name.Local): + case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12917,23 +15291,22 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } { xtv := string(val) - sv.CacheParameterGroupName = ptr.String(xtv) + sv.CacheSubnetGroupName = ptr.String(xtv) } - case strings.EqualFold("Description", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("Subnets", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) + + case strings.EqualFold("SupportedNetworkTypes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNetworkTypeList(&sv.SupportedNetworkTypes, nodeDecoder); err != nil { + return err } - case strings.EqualFold("IsGlobal", t.Name.Local): + case strings.EqualFold("VpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -12942,11 +15315,8 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.IsGlobal = ptr.Bool(xtv) + xtv := string(val) + sv.VpcId = ptr.String(xtv) } default: @@ -12963,13 +15333,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(v **types.CacheParameterGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types.CacheSubnetGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheParameterGroupAlreadyExistsFault + var sv *types.CacheSubnetGroupAlreadyExistsFault if *v == nil { - sv = &types.CacheParameterGroupAlreadyExistsFault{} + sv = &types.CacheSubnetGroupAlreadyExistsFault{} } else { sv = *v } @@ -13012,18 +15382,17 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(v **ty return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetGroupInUse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheParameterGroup + var sv *types.CacheSubnetGroupInUse if *v == nil { - sv = make([]types.CacheParameterGroup, 0) + sv = &types.CacheSubnetGroupInUse{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -13032,18 +15401,24 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]types.CachePara if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheParameterGroup", t.Name.Local): - var col types.CacheParameterGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -13056,37 +15431,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]types.CachePara return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupListUnwrapped(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheParameterGroup - if *v == nil { - sv = make([]types.CacheParameterGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CacheParameterGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(v **types.CacheParameterGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.CacheSubnetGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheParameterGroupNotFoundFault + var sv *types.CacheSubnetGroupNotFoundFault if *v == nil { - sv = &types.CacheParameterGroupNotFoundFault{} + sv = &types.CacheSubnetGroupNotFoundFault{} } else { sv = *v } @@ -13129,13 +15480,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(v **types.C return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(v **types.CacheParameterGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types.CacheSubnetGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheParameterGroupQuotaExceededFault + var sv *types.CacheSubnetGroupQuotaExceededFault if *v == nil { - sv = &types.CacheParameterGroupQuotaExceededFault{} + sv = &types.CacheSubnetGroupQuotaExceededFault{} } else { sv = *v } @@ -13178,17 +15529,18 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(v **ty return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CacheParameterGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheParameterGroupStatus + var sv []types.CacheSubnetGroup if *v == nil { - sv = &types.CacheParameterGroupStatus{} + sv = make([]types.CacheSubnetGroup, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -13197,29 +15549,77 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CachePar if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeIdsToReboot", t.Name.Local): + case strings.EqualFold("CacheSubnetGroup", t.Name.Local): + var col types.CacheSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeIdsList(&sv.CacheNodeIdsToReboot, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("CacheParameterGroupName", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheParameterGroupName = ptr.String(xtv) - } - case strings.EqualFold("ParameterApplyStatus", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCacheSubnetGroupsUnwrapped(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSubnetGroup + if *v == nil { + sv = make([]types.CacheSubnetGroup, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CacheSubnetGroup + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(v **types.CacheSubnetQuotaExceededFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheSubnetQuotaExceededFault + if *v == nil { + sv = &types.CacheSubnetQuotaExceededFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13229,7 +15629,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CachePar } { xtv := string(val) - sv.ParameterApplyStatus = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -13246,13 +15646,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CachePar return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheUsageLimits(v **types.CacheUsageLimits, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSecurityGroup + var sv *types.CacheUsageLimits if *v == nil { - sv = &types.CacheSecurityGroup{} + sv = &types.CacheUsageLimits{} } else { sv = *v } @@ -13268,33 +15668,55 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ARN", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("DataStorage", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentDataStorage(&sv.DataStorage, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ARN = ptr.String(xtv) + + case strings.EqualFold("ECPUPerSecond", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentECPUPerSecond(&sv.ECPUPerSecond, nodeDecoder); err != nil { + return err } - case strings.EqualFold("CacheSecurityGroupName", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheSecurityGroupName = ptr.String(xtv) - } - case strings.EqualFold("Description", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(v **types.CloudWatchLogsDestinationDetails, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CloudWatchLogsDestinationDetails + if *v == nil { + sv = &types.CloudWatchLogsDestinationDetails{} + } 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("LogGroup", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13304,16 +15726,48 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.LogGroup = ptr.String(xtv) } - case strings.EqualFold("EC2SecurityGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroupList(&sv.EC2SecurityGroups, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("OwnerId", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentClusterIdList(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("ClusterId", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -13323,11 +15777,11 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + col = xtv } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -13340,13 +15794,42 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(v **types.CacheSecurityGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterIdListUnwrapped(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_deserializeDocumentClusterQuotaForCustomerExceededFault(v **types.ClusterQuotaForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSecurityGroupAlreadyExistsFault + var sv *types.ClusterQuotaForCustomerExceededFault if *v == nil { - sv = &types.CacheSecurityGroupAlreadyExistsFault{} + sv = &types.ClusterQuotaForCustomerExceededFault{} } else { sv = *v } @@ -13389,13 +15872,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(v **typ return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDataStorage(v **types.DataStorage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSecurityGroupMembership + var sv *types.DataStorage if *v == nil { - sv = &types.CacheSecurityGroupMembership{} + sv = &types.DataStorage{} } else { sv = *v } @@ -13411,7 +15894,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheSecurityGroupName", t.Name.Local): + case strings.EqualFold("Maximum", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13421,10 +15904,14 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache } { xtv := string(val) - sv.CacheSecurityGroupName = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Maximum = ptr.Int32(int32(i64)) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("Unit", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13434,7 +15921,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache } { xtv := string(val) - sv.Status = ptr.String(xtv) + sv.Unit = types.DataStorageUnit(xtv) } default: @@ -13451,18 +15938,17 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(v **types.DefaultUserAssociatedToUserGroupFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheSecurityGroupMembership + var sv *types.DefaultUserAssociatedToUserGroupFault if *v == nil { - sv = make([]types.CacheSecurityGroupMembership, 0) + sv = &types.DefaultUserAssociatedToUserGroupFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -13471,18 +15957,24 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]types. if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheSecurityGroup", t.Name.Local): - var col types.CacheSecurityGroupMembership - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -13495,37 +15987,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]types. return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipListUnwrapped(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheSecurityGroupMembership - if *v == nil { - sv = make([]types.CacheSecurityGroupMembership, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CacheSecurityGroupMembership - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(v **types.CacheSecurityGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDefaultUserRequired(v **types.DefaultUserRequired, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSecurityGroupNotFoundFault + var sv *types.DefaultUserRequired if *v == nil { - sv = &types.CacheSecurityGroupNotFoundFault{} + sv = &types.DefaultUserRequired{} } else { sv = *v } @@ -13568,13 +16036,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(v **types.Ca return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **types.CacheSecurityGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDestinationDetails(v **types.DestinationDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSecurityGroupQuotaExceededFault + var sv *types.DestinationDetails if *v == nil { - sv = &types.CacheSecurityGroupQuotaExceededFault{} + sv = &types.DestinationDetails{} } else { sv = *v } @@ -13590,17 +16058,16 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("CloudWatchLogsDetails", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(&sv.CloudWatchLogsDetails, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) + + case strings.EqualFold("KinesisFirehoseDetails", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(&sv.KinesisFirehoseDetails, nodeDecoder); err != nil { + return err } default: @@ -13617,18 +16084,17 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **typ return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateUserNameFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheSecurityGroup + var sv *types.DuplicateUserNameFault if *v == nil { - sv = make([]types.CacheSecurityGroup, 0) + sv = &types.DuplicateUserNameFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -13637,18 +16103,24 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]types.CacheSecurity if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheSecurityGroup", t.Name.Local): - var col types.CacheSecurityGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -13661,37 +16133,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]types.CacheSecurity return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupsUnwrapped(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheSecurityGroup - if *v == nil { - sv = make([]types.CacheSecurityGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CacheSecurityGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSubnetGroup + var sv *types.EC2SecurityGroup if *v == nil { - sv = &types.CacheSubnetGroup{} + sv = &types.EC2SecurityGroup{} } else { sv = *v } @@ -13707,7 +16155,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ARN", t.Name.Local): + case strings.EqualFold("EC2SecurityGroupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13717,10 +16165,10 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } { xtv := string(val) - sv.ARN = ptr.String(xtv) + sv.EC2SecurityGroupName = ptr.String(xtv) } - case strings.EqualFold("CacheSubnetGroupDescription", t.Name.Local): + case strings.EqualFold("EC2SecurityGroupOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13730,10 +16178,10 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } { xtv := string(val) - sv.CacheSubnetGroupDescription = ptr.String(xtv) + sv.EC2SecurityGroupOwnerId = ptr.String(xtv) } - case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13743,36 +16191,55 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } { xtv := string(val) - sv.CacheSubnetGroupName = ptr.String(xtv) + sv.Status = ptr.String(xtv) } - case strings.EqualFold("Subnets", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("SupportedNetworkTypes", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.EC2SecurityGroup + if *v == nil { + sv = make([]types.EC2SecurityGroup, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("EC2SecurityGroup", t.Name.Local): + var col types.EC2SecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNetworkTypeList(&sv.SupportedNetworkTypes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("VpcId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.VpcId = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -13785,13 +16252,37 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types.CacheSubnetGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.EC2SecurityGroup + if *v == nil { + sv = make([]types.EC2SecurityGroup, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.EC2SecurityGroup + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentECPUPerSecond(v **types.ECPUPerSecond, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSubnetGroupAlreadyExistsFault + var sv *types.ECPUPerSecond if *v == nil { - sv = &types.CacheSubnetGroupAlreadyExistsFault{} + sv = &types.ECPUPerSecond{} } else { sv = *v } @@ -13807,7 +16298,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("Maximum", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13817,7 +16308,11 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types } { xtv := string(val) - sv.Message = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Maximum = ptr.Int32(int32(i64)) } default: @@ -13834,13 +16329,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetGroupInUse, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSubnetGroupInUse + var sv *types.Endpoint if *v == nil { - sv = &types.CacheSubnetGroupInUse{} + sv = &types.Endpoint{} } else { sv = *v } @@ -13856,7 +16351,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetG originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("Address", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13866,7 +16361,24 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetG } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Address = ptr.String(xtv) + } + + case strings.EqualFold("Port", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Port = ptr.Int32(int32(i64)) } default: @@ -13883,13 +16395,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetG return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.CacheSubnetGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSubnetGroupNotFoundFault + var sv *types.EngineDefaults if *v == nil { - sv = &types.CacheSubnetGroupNotFoundFault{} + sv = &types.EngineDefaults{} } else { sv = *v } @@ -13905,7 +16417,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.Cach originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CacheNodeTypeSpecificParameters", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(&sv.CacheNodeTypeSpecificParameters, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13915,7 +16433,26 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.Cach } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheParameterGroupFamily = ptr.String(xtv) + } + + case strings.EqualFold("Marker", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Marker = ptr.String(xtv) + } + + case strings.EqualFold("Parameters", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentParametersList(&sv.Parameters, nodeDecoder); err != nil { + return err } default: @@ -13932,13 +16469,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.Cach return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types.CacheSubnetGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheSubnetGroupQuotaExceededFault + var sv *types.Event if *v == nil { - sv = &types.CacheSubnetGroupQuotaExceededFault{} + sv = &types.Event{} } else { sv = *v } @@ -13954,7 +16491,24 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("Date", 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.Date = ptr.Time(t) + } + + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -13967,6 +16521,32 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types sv.Message = ptr.String(xtv) } + case strings.EqualFold("SourceIdentifier", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SourceIdentifier = ptr.String(xtv) + } + + case strings.EqualFold("SourceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SourceType = types.SourceType(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -13981,13 +16561,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheSubnetGroup + var sv []types.Event if *v == nil { - sv = make([]types.CacheSubnetGroup, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -14002,11 +16582,11 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]types.CacheSubnetGrou break } switch { - case strings.EqualFold("CacheSubnetGroup", t.Name.Local): - var col types.CacheSubnetGroup + case strings.EqualFold("Event", t.Name.Local): + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -14025,86 +16605,37 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]types.CacheSubnetGrou return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupsUnwrapped(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheSubnetGroup +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]types.CacheSubnetGroup, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv types.CacheSubnetGroup + var mv types.Event t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(v **types.CacheSubnetQuotaExceededFault, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CacheSubnetQuotaExceededFault - if *v == nil { - sv = &types.CacheSubnetQuotaExceededFault{} - } 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("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { + return err } - decoder = originalDecoder + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(v **types.CloudWatchLogsDestinationDetails, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CloudWatchLogsDestinationDetails + var sv *types.GlobalNodeGroup if *v == nil { - sv = &types.CloudWatchLogsDestinationDetails{} + sv = &types.GlobalNodeGroup{} } else { sv = *v } @@ -14120,7 +16651,7 @@ func awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(v **types.C originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("LogGroup", t.Name.Local): + case strings.EqualFold("GlobalNodeGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14130,7 +16661,20 @@ func awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(v **types.C } { xtv := string(val) - sv.LogGroup = ptr.String(xtv) + sv.GlobalNodeGroupId = ptr.String(xtv) + } + + case strings.EqualFold("Slots", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Slots = ptr.String(xtv) } default: @@ -14147,13 +16691,13 @@ func awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(v **types.C return nil } -func awsAwsquery_deserializeDocumentClusterIdList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.GlobalNodeGroup if *v == nil { - sv = make([]string, 0) + sv = make([]types.GlobalNodeGroup, 0) } else { sv = *v } @@ -14167,22 +16711,15 @@ func awsAwsquery_deserializeDocumentClusterIdList(v *[]string, decoder smithyxml if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { - case strings.EqualFold("ClusterId", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("GlobalNodeGroup", t.Name.Local): + var col types.GlobalNodeGroup + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -14198,42 +16735,37 @@ func awsAwsquery_deserializeDocumentClusterIdList(v *[]string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentClusterIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsAwsquery_deserializeDocumentGlobalNodeGroupListUnwrapped(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalNodeGroup if *v == nil { - sv = make([]string, 0) + sv = make([]types.GlobalNodeGroup, 0) } else { sv = *v } switch { default: - var mv string + var mv types.GlobalNodeGroup t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(v **types.ClusterQuotaForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClusterQuotaForCustomerExceededFault + var sv *types.GlobalReplicationGroup if *v == nil { - sv = &types.ClusterQuotaForCustomerExceededFault{} + sv = &types.GlobalReplicationGroup{} } else { sv = *v } @@ -14249,7 +16781,7 @@ func awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14259,46 +16791,42 @@ func awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(v **typ } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.ARN = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("AtRestEncryptionEnabled", 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.AtRestEncryptionEnabled = ptr.Bool(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(v **types.DefaultUserAssociatedToUserGroupFault, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DefaultUserAssociatedToUserGroupFault - if *v == nil { - sv = &types.DefaultUserAssociatedToUserGroupFault{} - } else { - sv = *v - } + case strings.EqualFold("AuthTokenEnabled", 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.AuthTokenEnabled = ptr.Bool(xtv) + } - 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("message", t.Name.Local): + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14308,46 +16836,26 @@ func awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(v **ty } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheNodeType = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ClusterEnabled", 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.ClusterEnabled = ptr.Bool(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDefaultUserRequired(v **types.DefaultUserRequired, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DefaultUserRequired - if *v == nil { - sv = &types.DefaultUserRequired{} - } 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("message", t.Name.Local): + case strings.EqualFold("Engine", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14357,56 +16865,88 @@ func awsAwsquery_deserializeDocumentDefaultUserRequired(v **types.DefaultUserReq } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Engine = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("EngineVersion", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.EngineVersion = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("GlobalNodeGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentGlobalNodeGroupList(&sv.GlobalNodeGroups, nodeDecoder); err != nil { + return err + } -func awsAwsquery_deserializeDocumentDestinationDetails(v **types.DestinationDetails, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DestinationDetails - if *v == nil { - sv = &types.DestinationDetails{} - } else { - sv = *v - } + case strings.EqualFold("GlobalReplicationGroupDescription", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.GlobalReplicationGroupDescription = ptr.String(xtv) + } + + case strings.EqualFold("GlobalReplicationGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.GlobalReplicationGroupId = ptr.String(xtv) + } - 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("CloudWatchLogsDetails", t.Name.Local): + case strings.EqualFold("Members", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCloudWatchLogsDestinationDetails(&sv.CloudWatchLogsDetails, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(&sv.Members, nodeDecoder); err != nil { return err } - case strings.EqualFold("KinesisFirehoseDetails", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(&sv.KinesisFirehoseDetails, nodeDecoder); err != nil { + case strings.EqualFold("Status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = ptr.String(xtv) + } + + case strings.EqualFold("TransitEncryptionEnabled", 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.TransitEncryptionEnabled = ptr.Bool(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -14422,13 +16962,13 @@ func awsAwsquery_deserializeDocumentDestinationDetails(v **types.DestinationDeta return nil } -func awsAwsquery_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateUserNameFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(v **types.GlobalReplicationGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DuplicateUserNameFault + var sv *types.GlobalReplicationGroupAlreadyExistsFault if *v == nil { - sv = &types.DuplicateUserNameFault{} + sv = &types.GlobalReplicationGroupAlreadyExistsFault{} } else { sv = *v } @@ -14471,13 +17011,13 @@ func awsAwsquery_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateUs return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalReplicationGroupInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EC2SecurityGroup + var sv *types.GlobalReplicationGroupInfo if *v == nil { - sv = &types.EC2SecurityGroup{} + sv = &types.GlobalReplicationGroupInfo{} } else { sv = *v } @@ -14493,20 +17033,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("EC2SecurityGroupName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EC2SecurityGroupName = ptr.String(xtv) - } - - case strings.EqualFold("EC2SecurityGroupOwnerId", t.Name.Local): + case strings.EqualFold("GlobalReplicationGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14516,10 +17043,10 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } { xtv := string(val) - sv.EC2SecurityGroupOwnerId = ptr.String(xtv) + sv.GlobalReplicationGroupId = ptr.String(xtv) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("GlobalReplicationGroupMemberRole", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14529,7 +17056,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } { xtv := string(val) - sv.Status = ptr.String(xtv) + sv.GlobalReplicationGroupMemberRole = ptr.String(xtv) } default: @@ -14546,13 +17073,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.EC2SecurityGroup + var sv []types.GlobalReplicationGroup if *v == nil { - sv = make([]types.EC2SecurityGroup, 0) + sv = make([]types.GlobalReplicationGroup, 0) } else { sv = *v } @@ -14567,11 +17094,11 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityG break } switch { - case strings.EqualFold("EC2SecurityGroup", t.Name.Local): - var col types.EC2SecurityGroup + case strings.EqualFold("GlobalReplicationGroup", t.Name.Local): + var col types.GlobalReplicationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -14590,22 +17117,22 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityG return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.EC2SecurityGroup +func awsAwsquery_deserializeDocumentGlobalReplicationGroupListUnwrapped(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalReplicationGroup if *v == nil { - sv = make([]types.EC2SecurityGroup, 0) + sv = make([]types.GlobalReplicationGroup, 0) } else { sv = *v } switch { default: - var mv types.EC2SecurityGroup + var mv types.GlobalReplicationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -14614,79 +17141,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2 *v = sv return nil } -func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Endpoint - if *v == nil { - sv = &types.Endpoint{} - } 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("Address", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Address = ptr.String(xtv) - } - - case strings.EqualFold("Port", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Port = ptr.Int32(int32(i64)) - } - - 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_deserializeDocumentEngineDefaults(v **types.EngineDefaults, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EngineDefaults + var sv *types.GlobalReplicationGroupMember if *v == nil { - sv = &types.EngineDefaults{} + sv = &types.GlobalReplicationGroupMember{} } else { sv = *v } @@ -14702,26 +17163,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeTypeSpecificParameters", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(&sv.CacheNodeTypeSpecificParameters, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheParameterGroupFamily = ptr.String(xtv) - } - - case strings.EqualFold("Marker", t.Name.Local): + case strings.EqualFold("AutomaticFailover", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14731,52 +17173,10 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } { xtv := string(val) - sv.Marker = ptr.String(xtv) - } - - case strings.EqualFold("Parameters", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParametersList(&sv.Parameters, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.AutomaticFailover = types.AutomaticFailoverStatus(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Event - if *v == nil { - sv = &types.Event{} - } 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("Date", t.Name.Local): + case strings.EqualFold("ReplicationGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14786,14 +17186,10 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.Date = ptr.Time(t) + sv.ReplicationGroupId = ptr.String(xtv) } - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("ReplicationGroupRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14803,10 +17199,10 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.ReplicationGroupRegion = ptr.String(xtv) } - case strings.EqualFold("SourceIdentifier", t.Name.Local): + case strings.EqualFold("Role", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14816,10 +17212,10 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } { xtv := string(val) - sv.SourceIdentifier = ptr.String(xtv) + sv.Role = ptr.String(xtv) } - case strings.EqualFold("SourceType", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14829,7 +17225,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } { xtv := string(val) - sv.SourceType = types.SourceType(xtv) + sv.Status = ptr.String(xtv) } default: @@ -14846,13 +17242,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Event + var sv []types.GlobalReplicationGroupMember if *v == nil { - sv = make([]types.Event, 0) + sv = make([]types.GlobalReplicationGroupMember, 0) } else { sv = *v } @@ -14867,11 +17263,11 @@ func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxm break } switch { - case strings.EqualFold("Event", t.Name.Local): - var col types.Event + case strings.EqualFold("GlobalReplicationGroupMember", t.Name.Local): + var col types.GlobalReplicationGroupMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -14890,22 +17286,22 @@ func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { - var sv []types.Event +func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberListUnwrapped(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalReplicationGroupMember if *v == nil { - sv = make([]types.Event, 0) + sv = make([]types.GlobalReplicationGroupMember, 0) } else { sv = *v } switch { default: - var mv types.Event + var mv types.GlobalReplicationGroupMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -14914,13 +17310,13 @@ func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder *v = sv return nil } -func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(v **types.GlobalReplicationGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalNodeGroup + var sv *types.GlobalReplicationGroupNotFoundFault if *v == nil { - sv = &types.GlobalNodeGroup{} + sv = &types.GlobalReplicationGroupNotFoundFault{} } else { sv = *v } @@ -14936,20 +17332,7 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("GlobalNodeGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.GlobalNodeGroupId = ptr.String(xtv) - } - - case strings.EqualFold("Slots", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -14959,7 +17342,7 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d } { xtv := string(val) - sv.Slots = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -14976,18 +17359,17 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d return nil } -func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(v **types.InsufficientCacheClusterCapacityFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.GlobalNodeGroup + var sv *types.InsufficientCacheClusterCapacityFault if *v == nil { - sv = make([]types.GlobalNodeGroup, 0) + sv = &types.InsufficientCacheClusterCapacityFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -14996,18 +17378,24 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]types.GlobalNodeGro if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("GlobalNodeGroup", t.Name.Local): - var col types.GlobalNodeGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -15020,37 +17408,13 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]types.GlobalNodeGro return nil } -func awsAwsquery_deserializeDocumentGlobalNodeGroupListUnwrapped(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.GlobalNodeGroup - if *v == nil { - sv = make([]types.GlobalNodeGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.GlobalNodeGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalReplicationGroup + var sv *types.InvalidARNFault if *v == nil { - sv = &types.GlobalReplicationGroup{} + sv = &types.InvalidARNFault{} } else { sv = *v } @@ -15066,94 +17430,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ARN", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ARN = ptr.String(xtv) - } - - case strings.EqualFold("AtRestEncryptionEnabled", 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.AtRestEncryptionEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("AuthTokenEnabled", 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.AuthTokenEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("CacheNodeType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) - } - - case strings.EqualFold("ClusterEnabled", 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.ClusterEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("Engine", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Engine = ptr.String(xtv) - } - - case strings.EqualFold("EngineVersion", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15163,48 +17440,46 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } { xtv := string(val) - sv.EngineVersion = ptr.String(xtv) - } - - case strings.EqualFold("GlobalNodeGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalNodeGroupList(&sv.GlobalNodeGroups, nodeDecoder); err != nil { - return err + sv.Message = ptr.String(xtv) } - case strings.EqualFold("GlobalReplicationGroupDescription", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.GlobalReplicationGroupDescription = ptr.String(xtv) - } - case strings.EqualFold("GlobalReplicationGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.GlobalReplicationGroupId = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("Members", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(&sv.Members, nodeDecoder); err != nil { - return err - } +func awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(v **types.InvalidCacheClusterStateFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InvalidCacheClusterStateFault + if *v == nil { + sv = &types.InvalidCacheClusterStateFault{} + } else { + sv = *v + } - case strings.EqualFold("Status", t.Name.Local): + 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15214,23 +17489,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } { xtv := string(val) - sv.Status = ptr.String(xtv) - } - - case strings.EqualFold("TransitEncryptionEnabled", 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.TransitEncryptionEnabled = ptr.Bool(xtv) + sv.Message = ptr.String(xtv) } default: @@ -15247,13 +17506,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(v **types.GlobalReplicationGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(v **types.InvalidCacheParameterGroupStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalReplicationGroupAlreadyExistsFault + var sv *types.InvalidCacheParameterGroupStateFault if *v == nil { - sv = &types.GlobalReplicationGroupAlreadyExistsFault{} + sv = &types.InvalidCacheParameterGroupStateFault{} } else { sv = *v } @@ -15296,13 +17555,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(v * return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalReplicationGroupInfo, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(v **types.InvalidCacheSecurityGroupStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalReplicationGroupInfo + var sv *types.InvalidCacheSecurityGroupStateFault if *v == nil { - sv = &types.GlobalReplicationGroupInfo{} + sv = &types.InvalidCacheSecurityGroupStateFault{} } else { sv = *v } @@ -15318,20 +17577,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("GlobalReplicationGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.GlobalReplicationGroupId = ptr.String(xtv) - } - - case strings.EqualFold("GlobalReplicationGroupMemberRole", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15341,7 +17587,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR } { xtv := string(val) - sv.GlobalReplicationGroupMemberRole = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -15358,18 +17604,17 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidCredentialsException(v **types.InvalidCredentialsException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.GlobalReplicationGroup + var sv *types.InvalidCredentialsException if *v == nil { - sv = make([]types.GlobalReplicationGroup, 0) + sv = &types.InvalidCredentialsException{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -15378,18 +17623,24 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]types.Global if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("GlobalReplicationGroup", t.Name.Local): - var col types.GlobalReplicationGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -15402,37 +17653,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]types.Global return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupListUnwrapped(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.GlobalReplicationGroup - if *v == nil { - sv = make([]types.GlobalReplicationGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.GlobalReplicationGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(v **types.InvalidGlobalReplicationGroupStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalReplicationGroupMember + var sv *types.InvalidGlobalReplicationGroupStateFault if *v == nil { - sv = &types.GlobalReplicationGroupMember{} + sv = &types.InvalidGlobalReplicationGroupStateFault{} } else { sv = *v } @@ -15448,7 +17675,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AutomaticFailover", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15458,23 +17685,46 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } { xtv := string(val) - sv.AutomaticFailover = types.AutomaticFailoverStatus(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("ReplicationGroupId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ReplicationGroupId = ptr.String(xtv) - } - case strings.EqualFold("ReplicationGroupRegion", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InvalidKMSKeyFault + if *v == nil { + sv = &types.InvalidKMSKeyFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15484,23 +17734,46 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } { xtv := string(val) - sv.ReplicationGroupRegion = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("Role", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Role = ptr.String(xtv) - } - case strings.EqualFold("Status", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **types.InvalidParameterCombinationException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InvalidParameterCombinationException + if *v == nil { + sv = &types.InvalidParameterCombinationException{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -15510,7 +17783,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } { xtv := string(val) - sv.Status = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -15527,18 +17800,17 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.InvalidParameterValueException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.GlobalReplicationGroupMember + var sv *types.InvalidParameterValueException if *v == nil { - sv = make([]types.GlobalReplicationGroupMember, 0) + sv = &types.InvalidParameterValueException{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -15547,18 +17819,24 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]types. if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("GlobalReplicationGroupMember", t.Name.Local): - var col types.GlobalReplicationGroupMember - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -15571,37 +17849,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]types. return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberListUnwrapped(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { - var sv []types.GlobalReplicationGroupMember - if *v == nil { - sv = make([]types.GlobalReplicationGroupMember, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.GlobalReplicationGroupMember - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(v **types.GlobalReplicationGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(v **types.InvalidReplicationGroupStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GlobalReplicationGroupNotFoundFault + var sv *types.InvalidReplicationGroupStateFault if *v == nil { - sv = &types.GlobalReplicationGroupNotFoundFault{} + sv = &types.InvalidReplicationGroupStateFault{} } else { sv = *v } @@ -15644,13 +17898,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(v **type return nil } -func awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(v **types.InsufficientCacheClusterCapacityFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidServerlessCacheSnapshotStateFault(v **types.InvalidServerlessCacheSnapshotStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InsufficientCacheClusterCapacityFault + var sv *types.InvalidServerlessCacheSnapshotStateFault if *v == nil { - sv = &types.InsufficientCacheClusterCapacityFault{} + sv = &types.InvalidServerlessCacheSnapshotStateFault{} } else { sv = *v } @@ -15693,13 +17947,13 @@ func awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(v **ty return nil } -func awsAwsquery_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidServerlessCacheStateFault(v **types.InvalidServerlessCacheStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidARNFault + var sv *types.InvalidServerlessCacheStateFault if *v == nil { - sv = &types.InvalidARNFault{} + sv = &types.InvalidServerlessCacheStateFault{} } else { sv = *v } @@ -15742,13 +17996,13 @@ func awsAwsquery_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, d return nil } -func awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(v **types.InvalidCacheClusterStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidSnapshotStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidCacheClusterStateFault + var sv *types.InvalidSnapshotStateFault if *v == nil { - sv = &types.InvalidCacheClusterStateFault{} + sv = &types.InvalidSnapshotStateFault{} } else { sv = *v } @@ -15791,13 +18045,13 @@ func awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(v **types.Inva return nil } -func awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(v **types.InvalidCacheParameterGroupStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidCacheParameterGroupStateFault + var sv *types.InvalidSubnet if *v == nil { - sv = &types.InvalidCacheParameterGroupStateFault{} + sv = &types.InvalidSubnet{} } else { sv = *v } @@ -15840,13 +18094,13 @@ func awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(v **typ return nil } -func awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(v **types.InvalidCacheSecurityGroupStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.InvalidUserGroupStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidCacheSecurityGroupStateFault + var sv *types.InvalidUserGroupStateFault if *v == nil { - sv = &types.InvalidCacheSecurityGroupStateFault{} + sv = &types.InvalidUserGroupStateFault{} } else { sv = *v } @@ -15889,13 +18143,13 @@ func awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(v **type return nil } -func awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(v **types.InvalidGlobalReplicationGroupStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidUserStateFault(v **types.InvalidUserStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidGlobalReplicationGroupStateFault + var sv *types.InvalidUserStateFault if *v == nil { - sv = &types.InvalidGlobalReplicationGroupStateFault{} + sv = &types.InvalidUserStateFault{} } else { sv = *v } @@ -15938,13 +18192,13 @@ func awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(v ** return nil } -func awsAwsquery_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.InvalidVPCNetworkStateFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidKMSKeyFault + var sv *types.InvalidVPCNetworkStateFault if *v == nil { - sv = &types.InvalidKMSKeyFault{} + sv = &types.InvalidVPCNetworkStateFault{} } else { sv = *v } @@ -15987,13 +18241,13 @@ func awsAwsquery_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyFa return nil } -func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **types.InvalidParameterCombinationException, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(v **types.KinesisFirehoseDestinationDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidParameterCombinationException + var sv *types.KinesisFirehoseDestinationDetails if *v == nil { - sv = &types.InvalidParameterCombinationException{} + sv = &types.KinesisFirehoseDestinationDetails{} } else { sv = *v } @@ -16009,7 +18263,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("DeliveryStream", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16019,7 +18273,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **typ } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.DeliveryStream = ptr.String(xtv) } default: @@ -16036,13 +18290,13 @@ func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **typ return nil } -func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.InvalidParameterValueException, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidParameterValueException + var sv *types.LogDeliveryConfiguration if *v == nil { - sv = &types.InvalidParameterValueException{} + sv = &types.LogDeliveryConfiguration{} } else { sv = *v } @@ -16058,7 +18312,52 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("DestinationDetails", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentDestinationDetails(&sv.DestinationDetails, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("DestinationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DestinationType = types.DestinationType(xtv) + } + + case strings.EqualFold("LogFormat", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogFormat = types.LogFormat(xtv) + } + + case strings.EqualFold("LogType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogType = types.LogType(xtv) + } + + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16071,6 +18370,19 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv sv.Message = ptr.String(xtv) } + case strings.EqualFold("Status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.LogDeliveryConfigurationStatus(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -16085,17 +18397,18 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv return nil } -func awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(v **types.InvalidReplicationGroupStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(v *[]types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidReplicationGroupStateFault + var sv []types.LogDeliveryConfiguration if *v == nil { - sv = &types.InvalidReplicationGroupStateFault{} + sv = make([]types.LogDeliveryConfiguration, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16104,24 +18417,18 @@ func awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(v **types. if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("LogDeliveryConfiguration", t.Name.Local): + var col types.LogDeliveryConfiguration + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16134,17 +18441,42 @@ func awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(v **types. return nil } -func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidSnapshotStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogDeliveryConfigurationListUnwrapped(v *[]types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LogDeliveryConfiguration + if *v == nil { + sv = make([]types.LogDeliveryConfiguration, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.LogDeliveryConfiguration + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentNetworkTypeList(v *[]types.NetworkType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidSnapshotStateFault + var sv []types.NetworkType if *v == nil { - sv = &types.InvalidSnapshotStateFault{} + sv = make([]types.NetworkType, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16153,10 +18485,11 @@ func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidS if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("member", t.Name.Local): + var col types.NetworkType val, err := decoder.Value() if err != nil { return err @@ -16166,11 +18499,11 @@ func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidS } { xtv := string(val) - sv.Message = ptr.String(xtv) + col = types.NetworkType(xtv) } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16183,13 +18516,42 @@ func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidS return nil } -func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNetworkTypeListUnwrapped(v *[]types.NetworkType, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkType + if *v == nil { + sv = make([]types.NetworkType, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NetworkType + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.NetworkType(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidSubnet + var sv *types.NodeGroup if *v == nil { - sv = &types.InvalidSubnet{} + sv = &types.NodeGroup{} } else { sv = *v } @@ -16205,7 +18567,51 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("NodeGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NodeGroupId = ptr.String(xtv) + } + + case strings.EqualFold("NodeGroupMembers", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNodeGroupMemberList(&sv.NodeGroupMembers, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("PrimaryEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.PrimaryEndpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ReaderEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ReaderEndpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Slots", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Slots = ptr.String(xtv) + } + + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16215,7 +18621,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Status = ptr.String(xtv) } default: @@ -16232,13 +18638,13 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod return nil } -func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.InvalidUserGroupStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidUserGroupStateFault + var sv *types.NodeGroupConfiguration if *v == nil { - sv = &types.InvalidUserGroupStateFault{} + sv = &types.NodeGroupConfiguration{} } else { sv = *v } @@ -16254,7 +18660,7 @@ func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.Invalid originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("NodeGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16264,7 +18670,75 @@ func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.Invalid } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.NodeGroupId = ptr.String(xtv) + } + + case strings.EqualFold("PrimaryAvailabilityZone", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrimaryAvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("PrimaryOutpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrimaryOutpostArn = ptr.String(xtv) + } + + case strings.EqualFold("ReplicaAvailabilityZones", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentAvailabilityZonesList(&sv.ReplicaAvailabilityZones, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ReplicaCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.ReplicaCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("ReplicaOutpostArns", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentOutpostArnsList(&sv.ReplicaOutpostArns, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Slots", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Slots = ptr.String(xtv) } default: @@ -16281,17 +18755,18 @@ func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.Invalid return nil } -func awsAwsquery_deserializeDocumentInvalidUserStateFault(v **types.InvalidUserStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupList(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidUserStateFault + var sv []types.NodeGroup if *v == nil { - sv = &types.InvalidUserStateFault{} + sv = make([]types.NodeGroup, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16300,24 +18775,18 @@ func awsAwsquery_deserializeDocumentInvalidUserStateFault(v **types.InvalidUserS if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("NodeGroup", t.Name.Local): + var col types.NodeGroup + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16330,13 +18799,37 @@ func awsAwsquery_deserializeDocumentInvalidUserStateFault(v **types.InvalidUserS return nil } -func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.InvalidVPCNetworkStateFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupListUnwrapped(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroup + if *v == nil { + sv = make([]types.NodeGroup, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NodeGroup + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidVPCNetworkStateFault + var sv *types.NodeGroupMember if *v == nil { - sv = &types.InvalidVPCNetworkStateFault{} + sv = &types.NodeGroupMember{} } else { sv = *v } @@ -16352,7 +18845,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CacheClusterId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16362,7 +18855,65 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheClusterId = ptr.String(xtv) + } + + case strings.EqualFold("CacheNodeId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheNodeId = ptr.String(xtv) + } + + case strings.EqualFold("CurrentRole", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CurrentRole = ptr.String(xtv) + } + + case strings.EqualFold("PreferredAvailabilityZone", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreferredAvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("PreferredOutpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreferredOutpostArn = ptr.String(xtv) + } + + case strings.EqualFold("ReadEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ReadEndpoint, nodeDecoder); err != nil { + return err } default: @@ -16379,17 +18930,18 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali return nil } -func awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(v **types.KinesisFirehoseDestinationDetails, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.KinesisFirehoseDestinationDetails + var sv []types.NodeGroupMember if *v == nil { - sv = &types.KinesisFirehoseDestinationDetails{} + sv = make([]types.NodeGroupMember, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16398,24 +18950,18 @@ func awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(v **types. if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DeliveryStream", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("NodeGroupMember", t.Name.Local): + var col types.NodeGroupMember + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.DeliveryStream = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16428,13 +18974,37 @@ func awsAwsquery_deserializeDocumentKinesisFirehoseDestinationDetails(v **types. return nil } -func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupMemberListUnwrapped(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupMember + if *v == nil { + sv = make([]types.NodeGroupMember, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NodeGroupMember + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.LogDeliveryConfiguration + var sv *types.NodeGroupMemberUpdateStatus if *v == nil { - sv = &types.LogDeliveryConfiguration{} + sv = &types.NodeGroupMemberUpdateStatus{} } else { sv = *v } @@ -16450,13 +19020,20 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DestinationDetails", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDestinationDetails(&sv.DestinationDetails, nodeDecoder); err != nil { + case strings.EqualFold("CacheClusterId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.CacheClusterId = ptr.String(xtv) + } - case strings.EqualFold("DestinationType", t.Name.Local): + case strings.EqualFold("CacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16466,10 +19043,10 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive } { xtv := string(val) - sv.DestinationType = types.DestinationType(xtv) + sv.CacheNodeId = ptr.String(xtv) } - case strings.EqualFold("LogFormat", t.Name.Local): + case strings.EqualFold("NodeDeletionDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16479,10 +19056,14 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive } { xtv := string(val) - sv.LogFormat = types.LogFormat(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeDeletionDate = ptr.Time(t) } - case strings.EqualFold("LogType", t.Name.Local): + case strings.EqualFold("NodeUpdateEndDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16492,10 +19073,14 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive } { xtv := string(val) - sv.LogType = types.LogType(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeUpdateEndDate = ptr.Time(t) } - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16505,10 +19090,10 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.NodeUpdateInitiatedBy = types.NodeUpdateInitiatedBy(xtv) } - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("NodeUpdateInitiatedDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16518,7 +19103,58 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive } { xtv := string(val) - sv.Status = types.LogDeliveryConfigurationStatus(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NodeUpdateInitiatedDate = ptr.Time(t) + } + + case strings.EqualFold("NodeUpdateStartDate", 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.NodeUpdateStartDate = ptr.Time(t) + } + + case strings.EqualFold("NodeUpdateStatus", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NodeUpdateStatus = types.NodeUpdateStatus(xtv) + } + + case strings.EqualFold("NodeUpdateStatusModifiedDate", 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.NodeUpdateStatusModifiedDate = ptr.Time(t) } default: @@ -16535,13 +19171,13 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfiguration(v **types.LogDelive return nil } -func awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(v *[]types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.LogDeliveryConfiguration + var sv []types.NodeGroupMemberUpdateStatus if *v == nil { - sv = make([]types.LogDeliveryConfiguration, 0) + sv = make([]types.NodeGroupMemberUpdateStatus, 0) } else { sv = *v } @@ -16556,11 +19192,11 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(v *[]types.LogD break } switch { - case strings.EqualFold("LogDeliveryConfiguration", t.Name.Local): - var col types.LogDeliveryConfiguration + case strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local): + var col types.NodeGroupMemberUpdateStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -16579,22 +19215,22 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(v *[]types.LogD return nil } -func awsAwsquery_deserializeDocumentLogDeliveryConfigurationListUnwrapped(v *[]types.LogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []types.LogDeliveryConfiguration +func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusListUnwrapped(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupMemberUpdateStatus if *v == nil { - sv = make([]types.LogDeliveryConfiguration, 0) + sv = make([]types.NodeGroupMemberUpdateStatus, 0) } else { sv = *v } switch { default: - var mv types.LogDeliveryConfiguration + var mv types.NodeGroupMemberUpdateStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -16603,18 +19239,17 @@ func awsAwsquery_deserializeDocumentLogDeliveryConfigurationListUnwrapped(v *[]t *v = sv return nil } -func awsAwsquery_deserializeDocumentNetworkTypeList(v *[]types.NetworkType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(v **types.NodeGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NetworkType + var sv *types.NodeGroupNotFoundFault if *v == nil { - sv = make([]types.NetworkType, 0) + sv = &types.NodeGroupNotFoundFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16623,11 +19258,10 @@ func awsAwsquery_deserializeDocumentNetworkTypeList(v *[]types.NetworkType, deco if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.NetworkType + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16637,11 +19271,11 @@ func awsAwsquery_deserializeDocumentNetworkTypeList(v *[]types.NetworkType, deco } { xtv := string(val) - col = types.NetworkType(xtv) + sv.Message = ptr.String(xtv) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16654,42 +19288,62 @@ func awsAwsquery_deserializeDocumentNetworkTypeList(v *[]types.NetworkType, deco return nil } -func awsAwsquery_deserializeDocumentNetworkTypeListUnwrapped(v *[]types.NetworkType, decoder smithyxml.NodeDecoder) error { - var sv []types.NetworkType +func awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFault(v **types.NodeGroupsPerReplicationGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.NodeGroupsPerReplicationGroupQuotaExceededFault if *v == nil { - sv = make([]types.NetworkType, 0) + sv = &types.NodeGroupsPerReplicationGroupQuotaExceededFault{} } else { sv = *v } - switch { - default: - var mv types.NetworkType - t := decoder.StartEl - _ = t - val, err := decoder.Value() + for { + t, done, err := decoder.Token() if err != nil { return err } - if val == nil { + if done { break } - { - xtv := string(val) - mv = types.NetworkType(xtv) + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + } - sv = append(sv, mv) + decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smithyxml.NodeDecoder) error { + +func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeGroup + var sv *types.NodeGroupUpdateStatus if *v == nil { - sv = &types.NodeGroup{} + sv = &types.NodeGroupUpdateStatus{} } else { sv = *v } @@ -16718,52 +19372,58 @@ func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smith sv.NodeGroupId = ptr.String(xtv) } - case strings.EqualFold("NodeGroupMembers", t.Name.Local): + case strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMemberList(&sv.NodeGroupMembers, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(&sv.NodeGroupMemberUpdateStatus, nodeDecoder); err != nil { return err } - case strings.EqualFold("PrimaryEndpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.PrimaryEndpoint, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("ReaderEndpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ReaderEndpoint, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("Slots", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Slots = ptr.String(xtv) - } +func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.NodeGroupUpdateStatus + if *v == nil { + sv = make([]types.NodeGroupUpdateStatus, 0) + } else { + sv = *v + } - case strings.EqualFold("Status", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = ptr.String(xtv) + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("NodeGroupUpdateStatus", t.Name.Local): + var col types.NodeGroupUpdateStatus + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { + return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16776,13 +19436,37 @@ func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smith return nil } -func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusListUnwrapped(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupUpdateStatus + if *v == nil { + sv = make([]types.NodeGroupUpdateStatus, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NodeGroupUpdateStatus + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.NodeQuotaForClusterExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeGroupConfiguration + var sv *types.NodeQuotaForClusterExceededFault if *v == nil { - sv = &types.NodeGroupConfiguration{} + sv = &types.NodeQuotaForClusterExceededFault{} } else { sv = *v } @@ -16798,75 +19482,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NodeGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NodeGroupId = ptr.String(xtv) - } - - case strings.EqualFold("PrimaryAvailabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrimaryAvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("PrimaryOutpostArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrimaryOutpostArn = ptr.String(xtv) - } - - case strings.EqualFold("ReplicaAvailabilityZones", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZonesList(&sv.ReplicaAvailabilityZones, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ReplicaCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.ReplicaCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("ReplicaOutpostArns", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOutpostArnsList(&sv.ReplicaOutpostArns, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Slots", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -16876,7 +19492,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo } { xtv := string(val) - sv.Slots = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -16893,18 +19509,17 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo return nil } -func awsAwsquery_deserializeDocumentNodeGroupList(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types.NodeQuotaForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NodeGroup + var sv *types.NodeQuotaForCustomerExceededFault if *v == nil { - sv = make([]types.NodeGroup, 0) + sv = &types.NodeQuotaForCustomerExceededFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -16913,18 +19528,24 @@ func awsAwsquery_deserializeDocumentNodeGroupList(v *[]types.NodeGroup, decoder if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NodeGroup", t.Name.Local): - var col types.NodeGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -16937,37 +19558,13 @@ func awsAwsquery_deserializeDocumentNodeGroupList(v *[]types.NodeGroup, decoder return nil } -func awsAwsquery_deserializeDocumentNodeGroupListUnwrapped(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.NodeGroup - if *v == nil { - sv = make([]types.NodeGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.NodeGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeGroupMember + var sv *types.NodeSnapshot if *v == nil { - sv = &types.NodeGroupMember{} + sv = &types.NodeSnapshot{} } else { sv = *v } @@ -16996,6 +19593,23 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d sv.CacheClusterId = ptr.String(xtv) } + case strings.EqualFold("CacheNodeCreateTime", 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.CacheNodeCreateTime = ptr.Time(t) + } + case strings.EqualFold("CacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -17009,7 +19623,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d sv.CacheNodeId = ptr.String(xtv) } - case strings.EqualFold("CurrentRole", t.Name.Local): + case strings.EqualFold("CacheSize", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17019,10 +19633,16 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } { xtv := string(val) - sv.CurrentRole = ptr.String(xtv) + sv.CacheSize = ptr.String(xtv) } - case strings.EqualFold("PreferredAvailabilityZone", t.Name.Local): + case strings.EqualFold("NodeGroupConfiguration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNodeGroupConfiguration(&sv.NodeGroupConfiguration, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NodeGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17032,10 +19652,10 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } { xtv := string(val) - sv.PreferredAvailabilityZone = ptr.String(xtv) + sv.NodeGroupId = ptr.String(xtv) } - case strings.EqualFold("PreferredOutpostArn", t.Name.Local): + case strings.EqualFold("SnapshotCreateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17045,36 +19665,102 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } { xtv := string(val) - sv.PreferredOutpostArn = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.SnapshotCreateTime = ptr.Time(t) } - case strings.EqualFold("ReadEndpoint", t.Name.Local): + 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_deserializeDocumentNodeSnapshotList(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.NodeSnapshot + if *v == nil { + sv = make([]types.NodeSnapshot, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("NodeSnapshot", t.Name.Local): + var col types.NodeSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ReadEndpoint, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err } } - decoder = originalDecoder + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentNodeSnapshotListUnwrapped(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeSnapshot + if *v == nil { + sv = make([]types.NodeSnapshot, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NodeSnapshot + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NodeGroupMember + var sv []string if *v == nil { - sv = make([]types.NodeGroupMember, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17088,15 +19774,22 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]types.NodeGroupMemb if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("NodeGroupMember", t.Name.Local): - var col types.NodeGroupMember - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -17112,37 +19805,42 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]types.NodeGroupMemb return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberListUnwrapped(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { - var sv []types.NodeGroupMember +func awsAwsquery_deserializeDocumentNodeTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.NodeGroupMember, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.NodeGroupMember + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNoOperationFault(v **types.NoOperationFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeGroupMemberUpdateStatus + var sv *types.NoOperationFault if *v == nil { - sv = &types.NodeGroupMemberUpdateStatus{} + sv = &types.NoOperationFault{} } else { sv = *v } @@ -17158,50 +19856,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheClusterId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheClusterId = ptr.String(xtv) - } - - case strings.EqualFold("CacheNodeId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CacheNodeId = ptr.String(xtv) - } - - case strings.EqualFold("NodeDeletionDate", 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.NodeDeletionDate = ptr.Time(t) - } - - case strings.EqualFold("NodeUpdateEndDate", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17211,61 +19866,46 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NodeUpdateEndDate = ptr.Time(t) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NodeUpdateInitiatedBy = types.NodeUpdateInitiatedBy(xtv) - } - case strings.EqualFold("NodeUpdateInitiatedDate", 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.NodeUpdateInitiatedDate = ptr.Time(t) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("NodeUpdateStartDate", 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.NodeUpdateStartDate = ptr.Time(t) - } +func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.NotificationConfiguration + if *v == nil { + sv = &types.NotificationConfiguration{} + } else { + sv = *v + } - case strings.EqualFold("NodeUpdateStatus", t.Name.Local): + 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("TopicArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17275,10 +19915,10 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr } { xtv := string(val) - sv.NodeUpdateStatus = types.NodeUpdateStatus(xtv) + sv.TopicArn = ptr.String(xtv) } - case strings.EqualFold("NodeUpdateStatusModifiedDate", t.Name.Local): + case strings.EqualFold("TopicStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17288,11 +19928,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NodeUpdateStatusModifiedDate = ptr.Time(t) + sv.TopicStatus = ptr.String(xtv) } default: @@ -17309,13 +19945,13 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NodeGroupMemberUpdateStatus + var sv []string if *v == nil { - sv = make([]types.NodeGroupMemberUpdateStatus, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17329,15 +19965,22 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]types.N if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local): - var col types.NodeGroupMemberUpdateStatus - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("OutpostArn", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -17353,37 +19996,42 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]types.N return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusListUnwrapped(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []types.NodeGroupMemberUpdateStatus +func awsAwsquery_deserializeDocumentOutpostArnsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.NodeGroupMemberUpdateStatus, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.NodeGroupMemberUpdateStatus + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(v **types.NodeGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeGroupNotFoundFault + var sv *types.Parameter if *v == nil { - sv = &types.NodeGroupNotFoundFault{} + sv = &types.Parameter{} } else { sv = *v } @@ -17399,7 +20047,7 @@ func awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(v **types.NodeGroupNo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("AllowedValues", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17409,46 +20057,36 @@ func awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(v **types.NodeGroupNo } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.AllowedValues = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ChangeType", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ChangeType = types.ChangeType(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFault(v **types.NodeGroupsPerReplicationGroupQuotaExceededFault, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.NodeGroupsPerReplicationGroupQuotaExceededFault - if *v == nil { - sv = &types.NodeGroupsPerReplicationGroupQuotaExceededFault{} - } else { - sv = *v - } + case strings.EqualFold("DataType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DataType = ptr.String(xtv) + } - 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("message", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17458,46 +20096,52 @@ func awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFa } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("IsModifiable", 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 Boolean to be of type *bool, got %T instead", val) + } + sv.IsModifiable = ptr.Bool(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("MinimumEngineVersion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.MinimumEngineVersion = ptr.String(xtv) + } -func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.NodeGroupUpdateStatus - if *v == nil { - sv = &types.NodeGroupUpdateStatus{} - } else { - sv = *v - } + case strings.EqualFold("ParameterName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ParameterName = ptr.String(xtv) + } - 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("NodeGroupId", t.Name.Local): + case strings.EqualFold("ParameterValue", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17507,14 +20151,21 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpd } { xtv := string(val) - sv.NodeGroupId = ptr.String(xtv) + sv.ParameterValue = ptr.String(xtv) } - case strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(&sv.NodeGroupMemberUpdateStatus, nodeDecoder); err != nil { + case strings.EqualFold("Source", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Source = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -17530,13 +20181,13 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpd return nil } -func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NodeGroupUpdateStatus + var sv []types.Parameter if *v == nil { - sv = make([]types.NodeGroupUpdateStatus, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -17551,11 +20202,11 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]types.NodeGro break } switch { - case strings.EqualFold("NodeGroupUpdateStatus", t.Name.Local): - var col types.NodeGroupUpdateStatus + case strings.EqualFold("Parameter", t.Name.Local): + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -17574,22 +20225,22 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]types.NodeGro return nil } -func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusListUnwrapped(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []types.NodeGroupUpdateStatus +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]types.NodeGroupUpdateStatus, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv types.NodeGroupUpdateStatus + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -17598,13 +20249,13 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusListUnwrapped(v *[]type *v = sv return nil } -func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.NodeQuotaForClusterExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(v **types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeQuotaForClusterExceededFault + var sv *types.PendingLogDeliveryConfiguration if *v == nil { - sv = &types.NodeQuotaForClusterExceededFault{} + sv = &types.PendingLogDeliveryConfiguration{} } else { sv = *v } @@ -17620,7 +20271,13 @@ func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.N originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("DestinationDetails", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentDestinationDetails(&sv.DestinationDetails, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("DestinationType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17630,7 +20287,33 @@ func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.N } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.DestinationType = types.DestinationType(xtv) + } + + case strings.EqualFold("LogFormat", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogFormat = types.LogFormat(xtv) + } + + case strings.EqualFold("LogType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogType = types.LogType(xtv) } default: @@ -17647,17 +20330,18 @@ func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.N return nil } -func awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types.NodeQuotaForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(v *[]types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeQuotaForCustomerExceededFault + var sv []types.PendingLogDeliveryConfiguration if *v == nil { - sv = &types.NodeQuotaForCustomerExceededFault{} + sv = make([]types.PendingLogDeliveryConfiguration, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -17666,43 +20350,61 @@ func awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types. if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("member", t.Name.Local): + var col types.PendingLogDeliveryConfiguration + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err } } - decoder = originalDecoder + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationListUnwrapped(v *[]types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.PendingLogDeliveryConfiguration + if *v == nil { + sv = make([]types.PendingLogDeliveryConfiguration, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.PendingLogDeliveryConfiguration + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModifiedValues, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NodeSnapshot + var sv *types.PendingModifiedValues if *v == nil { - sv = &types.NodeSnapshot{} + sv = &types.PendingModifiedValues{} } else { sv = *v } @@ -17718,7 +20420,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheClusterId", t.Name.Local): + case strings.EqualFold("AuthTokenStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17728,10 +20430,16 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } { xtv := string(val) - sv.CacheClusterId = ptr.String(xtv) + sv.AuthTokenStatus = types.AuthTokenUpdateStatus(xtv) } - case strings.EqualFold("CacheNodeCreateTime", t.Name.Local): + case strings.EqualFold("CacheNodeIdsToRemove", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheNodeIdsList(&sv.CacheNodeIdsToRemove, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17741,14 +20449,10 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CacheNodeCreateTime = ptr.Time(t) + sv.CacheNodeType = ptr.String(xtv) } - case strings.EqualFold("CacheNodeId", t.Name.Local): + case strings.EqualFold("EngineVersion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17758,10 +20462,16 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } { xtv := string(val) - sv.CacheNodeId = ptr.String(xtv) + sv.EngineVersion = ptr.String(xtv) } - case strings.EqualFold("CacheSize", t.Name.Local): + case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NumCacheNodes", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17771,16 +20481,14 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } { xtv := string(val) - sv.CacheSize = ptr.String(xtv) - } - - case strings.EqualFold("NodeGroupConfiguration", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupConfiguration(&sv.NodeGroupConfiguration, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NumCacheNodes = ptr.Int32(int32(i64)) } - case strings.EqualFold("NodeGroupId", t.Name.Local): + case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17789,11 +20497,14 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder break } { - xtv := string(val) - sv.NodeGroupId = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.TransitEncryptionEnabled = ptr.Bool(xtv) } - case strings.EqualFold("SnapshotCreateTime", t.Name.Local): + case strings.EqualFold("TransitEncryptionMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -17803,11 +20514,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.SnapshotCreateTime = ptr.Time(t) + sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) } default: @@ -17824,18 +20531,17 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder return nil } -func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NodeSnapshot + var sv *types.ProcessedUpdateAction if *v == nil { - sv = make([]types.NodeSnapshot, 0) + sv = &types.ProcessedUpdateAction{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -17844,18 +20550,63 @@ func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]types.NodeSnapshot, de if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("NodeSnapshot", t.Name.Local): - var col types.NodeSnapshot - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("CacheClusterId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.CacheClusterId = ptr.String(xtv) + } + + case strings.EqualFold("ReplicationGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ReplicationGroupId = ptr.String(xtv) + } + + case strings.EqualFold("ServiceUpdateName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ServiceUpdateName = ptr.String(xtv) + } + + case strings.EqualFold("UpdateActionStatus", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UpdateActionStatus = types.UpdateActionStatus(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -17868,37 +20619,13 @@ func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]types.NodeSnapshot, de return nil } -func awsAwsquery_deserializeDocumentNodeSnapshotListUnwrapped(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []types.NodeSnapshot - if *v == nil { - sv = make([]types.NodeSnapshot, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.NodeSnapshot - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentNodeTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.ProcessedUpdateAction if *v == nil { - sv = make([]string, 0) + sv = make([]types.ProcessedUpdateAction, 0) } else { sv = *v } @@ -17912,22 +20639,15 @@ func awsAwsquery_deserializeDocumentNodeTypeList(v *[]string, decoder smithyxml. 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 { + case strings.EqualFold("ProcessedUpdateAction", t.Name.Local): + var col types.ProcessedUpdateAction + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -17943,91 +20663,37 @@ func awsAwsquery_deserializeDocumentNodeTypeList(v *[]string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentNodeTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsAwsquery_deserializeDocumentProcessedUpdateActionListUnwrapped(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ProcessedUpdateAction if *v == nil { - sv = make([]string, 0) + sv = make([]types.ProcessedUpdateAction, 0) } else { sv = *v } switch { default: - var mv string + var mv types.ProcessedUpdateAction 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_deserializeDocumentNoOperationFault(v **types.NoOperationFault, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.NoOperationFault - if *v == nil { - sv = &types.NoOperationFault{} - } 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("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { + return err } - decoder = originalDecoder + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NotificationConfiguration + var sv *types.RecurringCharge if *v == nil { - sv = &types.NotificationConfiguration{} + sv = &types.RecurringCharge{} } else { sv = *v } @@ -18043,7 +20709,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("TopicArn", t.Name.Local): + case strings.EqualFold("RecurringChargeAmount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18053,10 +20719,14 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } { xtv := string(val) - sv.TopicArn = ptr.String(xtv) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.RecurringChargeAmount = ptr.Float64(f64) } - case strings.EqualFold("TopicStatus", t.Name.Local): + case strings.EqualFold("RecurringChargeFrequency", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18066,7 +20736,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } { xtv := string(val) - sv.TopicStatus = ptr.String(xtv) + sv.RecurringChargeFrequency = ptr.String(xtv) } default: @@ -18083,13 +20753,13 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica return nil } -func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.RecurringCharge if *v == nil { - sv = make([]string, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } @@ -18103,22 +20773,15 @@ func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]string, decoder smithyx if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { - case strings.EqualFold("OutpostArn", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("RecurringCharge", t.Name.Local): + var col types.RecurringCharge + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -18134,42 +20797,37 @@ func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentOutpostArnsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { + var sv []types.RecurringCharge if *v == nil { - sv = make([]string, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } switch { default: - var mv string + var mv types.RecurringCharge t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Parameter + var sv *types.ReplicationGroup if *v == nil { - sv = &types.Parameter{} + sv = &types.ReplicationGroup{} } else { sv = *v } @@ -18185,7 +20843,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AllowedValues", t.Name.Local): + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18195,10 +20853,10 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } { xtv := string(val) - sv.AllowedValues = ptr.String(xtv) + sv.ARN = ptr.String(xtv) } - case strings.EqualFold("ChangeType", t.Name.Local): + case strings.EqualFold("AtRestEncryptionEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18207,11 +20865,14 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith break } { - xtv := string(val) - sv.ChangeType = types.ChangeType(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.AtRestEncryptionEnabled = ptr.Bool(xtv) } - case strings.EqualFold("DataType", t.Name.Local): + case strings.EqualFold("AuthTokenEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18220,11 +20881,14 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith break } { - xtv := string(val) - sv.DataType = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.AuthTokenEnabled = ptr.Bool(xtv) } - case strings.EqualFold("Description", t.Name.Local): + case strings.EqualFold("AuthTokenLastModifiedDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18234,10 +20898,14 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } { xtv := string(val) - sv.Description = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.AuthTokenLastModifiedDate = ptr.Time(t) } - case strings.EqualFold("IsModifiable", t.Name.Local): + case strings.EqualFold("AutomaticFailover", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18246,14 +20914,11 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.IsModifiable = ptr.Bool(xtv) + xtv := string(val) + sv.AutomaticFailover = types.AutomaticFailoverStatus(xtv) } - case strings.EqualFold("MinimumEngineVersion", t.Name.Local): + case strings.EqualFold("AutoMinorVersionUpgrade", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18262,11 +20927,14 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith break } { - xtv := string(val) - sv.MinimumEngineVersion = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.AutoMinorVersionUpgrade = ptr.Bool(xtv) } - case strings.EqualFold("ParameterName", t.Name.Local): + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18276,10 +20944,10 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } { xtv := string(val) - sv.ParameterName = ptr.String(xtv) + sv.CacheNodeType = ptr.String(xtv) } - case strings.EqualFold("ParameterValue", t.Name.Local): + case strings.EqualFold("ClusterEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18288,11 +20956,14 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith break } { - xtv := string(val) - sv.ParameterValue = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.ClusterEnabled = ptr.Bool(xtv) } - case strings.EqualFold("Source", t.Name.Local): + case strings.EqualFold("ClusterMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18302,120 +20973,29 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } { xtv := string(val) - sv.Source = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.ClusterMode = types.ClusterMode(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Parameter - if *v == nil { - sv = make([]types.Parameter, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("Parameter", t.Name.Local): - var col types.Parameter + case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ConfigurationEndpoint, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("DataTiering", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []types.Parameter - if *v == nil { - sv = make([]types.Parameter, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Parameter - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(v **types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.PendingLogDeliveryConfiguration - if *v == nil { - sv = &types.PendingLogDeliveryConfiguration{} - } 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("DestinationDetails", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDestinationDetails(&sv.DestinationDetails, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.DataTiering = types.DataTieringStatus(xtv) } - case strings.EqualFold("DestinationType", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18425,10 +21005,16 @@ func awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(v **types.Pe } { xtv := string(val) - sv.DestinationType = types.DestinationType(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("LogFormat", t.Name.Local): + case strings.EqualFold("GlobalReplicationGroupInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(&sv.GlobalReplicationGroupInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("IpDiscovery", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18438,10 +21024,10 @@ func awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(v **types.Pe } { xtv := string(val) - sv.LogFormat = types.LogFormat(xtv) + sv.IpDiscovery = types.IpDiscovery(xtv) } - case strings.EqualFold("LogType", t.Name.Local): + case strings.EqualFold("KmsKeyId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18451,114 +21037,66 @@ func awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(v **types.Pe } { xtv := string(val) - sv.LogType = types.LogType(xtv) + sv.KmsKeyId = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(v *[]types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.PendingLogDeliveryConfiguration - if *v == nil { - sv = make([]types.PendingLogDeliveryConfiguration, 0) - } else { - sv = *v - } + case strings.EqualFold("MemberClusters", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentClusterIdList(&sv.MemberClusters, nodeDecoder); err != nil { + return err + } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.PendingLogDeliveryConfiguration + case strings.EqualFold("MemberClustersOutpostArns", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(&sv.MemberClustersOutpostArns, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("MultiAZ", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.MultiAZ = types.MultiAZStatus(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("NetworkType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkType = types.NetworkType(xtv) + } -func awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationListUnwrapped(v *[]types.PendingLogDeliveryConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []types.PendingLogDeliveryConfiguration - if *v == nil { - sv = make([]types.PendingLogDeliveryConfiguration, 0) - } else { - sv = *v - } + case strings.EqualFold("NodeGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNodeGroupList(&sv.NodeGroups, nodeDecoder); err != nil { + return err + } - switch { - default: - var mv types.PendingLogDeliveryConfiguration - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfiguration(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModifiedValues, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.PendingModifiedValues - if *v == nil { - sv = &types.PendingModifiedValues{} - } else { - sv = *v - } + case strings.EqualFold("PendingModifiedValues", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(&sv.PendingModifiedValues, nodeDecoder); err != nil { + return err + } - 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("AuthTokenStatus", t.Name.Local): + case strings.EqualFold("ReplicationGroupCreateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18568,16 +21106,27 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } { xtv := string(val) - sv.AuthTokenStatus = types.AuthTokenUpdateStatus(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ReplicationGroupCreateTime = ptr.Time(t) } - case strings.EqualFold("CacheNodeIdsToRemove", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeIdsList(&sv.CacheNodeIdsToRemove, nodeDecoder); err != nil { + case strings.EqualFold("ReplicationGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ReplicationGroupId = ptr.String(xtv) + } - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18587,10 +21136,14 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.SnapshotRetentionLimit = ptr.Int32(int32(i64)) } - case strings.EqualFold("EngineVersion", t.Name.Local): + case strings.EqualFold("SnapshottingClusterId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18600,16 +21153,23 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } { xtv := string(val) - sv.EngineVersion = ptr.String(xtv) + sv.SnapshottingClusterId = ptr.String(xtv) } - case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { + case strings.EqualFold("SnapshotWindow", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.SnapshotWindow = ptr.String(xtv) + } - case strings.EqualFold("NumCacheNodes", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18619,11 +21179,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumCacheNodes = ptr.Int32(int32(i64)) + sv.Status = ptr.String(xtv) } case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): @@ -18655,6 +21211,12 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) } + case strings.EqualFold("UserGroupIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUserGroupIdList(&sv.UserGroupIds, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -18669,13 +21231,13 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif return nil } -func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(v **types.ReplicationGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ProcessedUpdateAction + var sv *types.ReplicationGroupAlreadyExistsFault if *v == nil { - sv = &types.ProcessedUpdateAction{} + sv = &types.ReplicationGroupAlreadyExistsFault{} } else { sv = *v } @@ -18691,7 +21253,7 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheClusterId", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18701,36 +21263,46 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd } { xtv := string(val) - sv.CacheClusterId = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("ReplicationGroupId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ReplicationGroupId = ptr.String(xtv) - } - case strings.EqualFold("ServiceUpdateName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ServiceUpdateName = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v **types.ReplicationGroupAlreadyUnderMigrationFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReplicationGroupAlreadyUnderMigrationFault + if *v == nil { + sv = &types.ReplicationGroupAlreadyUnderMigrationFault{} + } else { + sv = *v + } - case strings.EqualFold("UpdateActionStatus", t.Name.Local): + 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18740,7 +21312,7 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd } { xtv := string(val) - sv.UpdateActionStatus = types.UpdateActionStatus(xtv) + sv.Message = ptr.String(xtv) } default: @@ -18757,13 +21329,13 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd return nil } -func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ProcessedUpdateAction + var sv []types.ReplicationGroup if *v == nil { - sv = make([]types.ProcessedUpdateAction, 0) + sv = make([]types.ReplicationGroup, 0) } else { sv = *v } @@ -18778,11 +21350,11 @@ func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]types.Process break } switch { - case strings.EqualFold("ProcessedUpdateAction", t.Name.Local): - var col types.ProcessedUpdateAction + case strings.EqualFold("ReplicationGroup", t.Name.Local): + var col types.ReplicationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -18801,22 +21373,22 @@ func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]types.Process return nil } -func awsAwsquery_deserializeDocumentProcessedUpdateActionListUnwrapped(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { - var sv []types.ProcessedUpdateAction +func awsAwsquery_deserializeDocumentReplicationGroupListUnwrapped(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.ReplicationGroup if *v == nil { - sv = make([]types.ProcessedUpdateAction, 0) + sv = make([]types.ReplicationGroup, 0) } else { sv = *v } switch { default: - var mv types.ProcessedUpdateAction + var mv types.ReplicationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -18825,13 +21397,13 @@ func awsAwsquery_deserializeDocumentProcessedUpdateActionListUnwrapped(v *[]type *v = sv return nil } -func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(v **types.ReplicationGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.RecurringCharge + var sv *types.ReplicationGroupNotFoundFault if *v == nil { - sv = &types.RecurringCharge{} + sv = &types.ReplicationGroupNotFoundFault{} } else { sv = *v } @@ -18847,7 +21419,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("RecurringChargeAmount", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18857,14 +21429,46 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.RecurringChargeAmount = ptr.Float64(f64) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("RecurringChargeFrequency", t.Name.Local): + 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_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **types.ReplicationGroupNotUnderMigrationFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReplicationGroupNotUnderMigrationFault + if *v == nil { + sv = &types.ReplicationGroupNotUnderMigrationFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18874,7 +21478,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d } { xtv := string(val) - sv.RecurringChargeFrequency = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -18891,13 +21495,13 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d return nil } -func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.RecurringCharge + var sv []string if *v == nil { - sv = make([]types.RecurringCharge, 0) + sv = make([]string, 0) } else { sv = *v } @@ -18911,15 +21515,22 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringChar if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("RecurringCharge", t.Name.Local): - var col types.RecurringCharge - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("ReplicationGroupOutpostArn", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -18935,37 +21546,42 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringChar return nil } -func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { - var sv []types.RecurringCharge +func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.RecurringCharge, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.RecurringCharge + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **types.ReplicationGroupPendingModifiedValues, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroup + var sv *types.ReplicationGroupPendingModifiedValues if *v == nil { - sv = &types.ReplicationGroup{} + sv = &types.ReplicationGroupPendingModifiedValues{} } else { sv = *v } @@ -18981,7 +21597,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ARN", t.Name.Local): + case strings.EqualFold("AuthTokenStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -18991,10 +21607,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.ARN = ptr.String(xtv) + sv.AuthTokenStatus = types.AuthTokenUpdateStatus(xtv) } - case strings.EqualFold("AtRestEncryptionEnabled", t.Name.Local): + case strings.EqualFold("AutomaticFailoverStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19003,14 +21619,11 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, 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.AtRestEncryptionEnabled = ptr.Bool(xtv) + xtv := string(val) + sv.AutomaticFailoverStatus = types.PendingAutomaticFailoverStatus(xtv) } - case strings.EqualFold("AuthTokenEnabled", t.Name.Local): + case strings.EqualFold("ClusterMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19019,31 +21632,17 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, 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.AuthTokenEnabled = ptr.Bool(xtv) + xtv := string(val) + sv.ClusterMode = types.ClusterMode(xtv) } - case strings.EqualFold("AuthTokenLastModifiedDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.AuthTokenLastModifiedDate = ptr.Time(t) - } - case strings.EqualFold("AutomaticFailover", t.Name.Local): + case strings.EqualFold("PrimaryClusterId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19053,10 +21652,16 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.AutomaticFailover = types.AutomaticFailoverStatus(xtv) + sv.PrimaryClusterId = ptr.String(xtv) } - case strings.EqualFold("AutoMinorVersionUpgrade", t.Name.Local): + case strings.EqualFold("Resharding", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentReshardingStatus(&sv.Resharding, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19067,12 +21672,12 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, { xtv, err := strconv.ParseBool(string(val)) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = ptr.Bool(xtv) + sv.TransitEncryptionEnabled = ptr.Bool(xtv) } - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("TransitEncryptionMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19082,10 +21687,52 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) + sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) } - case strings.EqualFold("ClusterEnabled", t.Name.Local): + case strings.EqualFold("UserGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUserGroupsUpdateStatus(&sv.UserGroups, nodeDecoder); err != nil { + return err + } + + 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_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReservedCacheNode + if *v == nil { + sv = &types.ReservedCacheNode{} + } 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("CacheNodeCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19094,14 +21741,15 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + return err } - sv.ClusterEnabled = ptr.Bool(xtv) + sv.CacheNodeCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("ClusterMode", t.Name.Local): + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19111,16 +21759,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.ClusterMode = types.ClusterMode(xtv) - } - - case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ConfigurationEndpoint, nodeDecoder); err != nil { - return err + sv.CacheNodeType = ptr.String(xtv) } - case strings.EqualFold("DataTiering", t.Name.Local): + case strings.EqualFold("Duration", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19130,10 +21772,14 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.DataTiering = types.DataTieringStatus(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Duration = ptr.Int32(int32(i64)) } - case strings.EqualFold("Description", t.Name.Local): + case strings.EqualFold("FixedPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19143,16 +21789,14 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("GlobalReplicationGroupInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(&sv.GlobalReplicationGroupInfo, nodeDecoder); err != nil { - return err + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.FixedPrice = ptr.Float64(f64) } - case strings.EqualFold("IpDiscovery", t.Name.Local): + case strings.EqualFold("OfferingType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19162,10 +21806,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.IpDiscovery = types.IpDiscovery(xtv) + sv.OfferingType = ptr.String(xtv) } - case strings.EqualFold("KmsKeyId", t.Name.Local): + case strings.EqualFold("ProductDescription", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19175,28 +21819,16 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.KmsKeyId = ptr.String(xtv) - } - - case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("MemberClusters", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterIdList(&sv.MemberClusters, nodeDecoder); err != nil { - return err + sv.ProductDescription = ptr.String(xtv) } - case strings.EqualFold("MemberClustersOutpostArns", t.Name.Local): + case strings.EqualFold("RecurringCharges", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(&sv.MemberClustersOutpostArns, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentRecurringChargeList(&sv.RecurringCharges, nodeDecoder); err != nil { return err } - case strings.EqualFold("MultiAZ", t.Name.Local): + case strings.EqualFold("ReservationARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19206,10 +21838,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.MultiAZ = types.MultiAZStatus(xtv) + sv.ReservationARN = ptr.String(xtv) } - case strings.EqualFold("NetworkType", t.Name.Local): + case strings.EqualFold("ReservedCacheNodeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19219,22 +21851,23 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.NetworkType = types.NetworkType(xtv) + sv.ReservedCacheNodeId = ptr.String(xtv) } - case strings.EqualFold("NodeGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupList(&sv.NodeGroups, nodeDecoder); err != nil { + case strings.EqualFold("ReservedCacheNodesOfferingId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("PendingModifiedValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(&sv.PendingModifiedValues, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.ReservedCacheNodesOfferingId = ptr.String(xtv) } - case strings.EqualFold("ReplicationGroupCreateTime", t.Name.Local): + case strings.EqualFold("StartTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19248,10 +21881,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return err } - sv.ReplicationGroupCreateTime = ptr.Time(t) + sv.StartTime = ptr.Time(t) } - case strings.EqualFold("ReplicationGroupId", t.Name.Local): + case strings.EqualFold("State", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19261,10 +21894,10 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.ReplicationGroupId = ptr.String(xtv) + sv.State = ptr.String(xtv) } - case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): + case strings.EqualFold("UsagePrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19274,27 +21907,50 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + f64, err := strconv.ParseFloat(xtv, 64) if err != nil { return err } - sv.SnapshotRetentionLimit = ptr.Int32(int32(i64)) + sv.UsagePrice = ptr.Float64(f64) } - case strings.EqualFold("SnapshottingClusterId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.SnapshottingClusterId = ptr.String(xtv) - } - case strings.EqualFold("SnapshotWindow", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(v **types.ReservedCacheNodeAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReservedCacheNodeAlreadyExistsFault + if *v == nil { + sv = &types.ReservedCacheNodeAlreadyExistsFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19304,39 +21960,114 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.SnapshotWindow = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("Status", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = ptr.String(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ReservedCacheNode + if *v == nil { + sv = make([]types.ReservedCacheNode, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("ReservedCacheNode", t.Name.Local): + var col types.ReservedCacheNode + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { + return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() 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.TransitEncryptionEnabled = ptr.Bool(xtv) - } - case strings.EqualFold("TransitEncryptionMode", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentReservedCacheNodeListUnwrapped(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedCacheNode + if *v == nil { + sv = make([]types.ReservedCacheNode, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ReservedCacheNode + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(v **types.ReservedCacheNodeNotFoundFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReservedCacheNodeNotFoundFault + if *v == nil { + sv = &types.ReservedCacheNodeNotFoundFault{} + } 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("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19346,13 +22077,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } { xtv := string(val) - sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) - } - - case strings.EqualFold("UserGroupIds", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserGroupIdList(&sv.UserGroupIds, nodeDecoder); err != nil { - return err + sv.Message = ptr.String(xtv) } default: @@ -19369,13 +22094,13 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, return nil } -func awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(v **types.ReplicationGroupAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(v **types.ReservedCacheNodeQuotaExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroupAlreadyExistsFault + var sv *types.ReservedCacheNodeQuotaExceededFault if *v == nil { - sv = &types.ReplicationGroupAlreadyExistsFault{} + sv = &types.ReservedCacheNodeQuotaExceededFault{} } else { sv = *v } @@ -19418,13 +22143,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v **types.ReplicationGroupAlreadyUnderMigrationFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroupAlreadyUnderMigrationFault + var sv *types.ReservedCacheNodesOffering if *v == nil { - sv = &types.ReplicationGroupAlreadyUnderMigrationFault{} + sv = &types.ReservedCacheNodesOffering{} } else { sv = *v } @@ -19440,7 +22165,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CacheNodeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19450,7 +22175,103 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CacheNodeType = ptr.String(xtv) + } + + case strings.EqualFold("Duration", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Duration = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("FixedPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.FixedPrice = ptr.Float64(f64) + } + + case strings.EqualFold("OfferingType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OfferingType = ptr.String(xtv) + } + + case strings.EqualFold("ProductDescription", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ProductDescription = ptr.String(xtv) + } + + case strings.EqualFold("RecurringCharges", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentRecurringChargeList(&sv.RecurringCharges, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ReservedCacheNodesOfferingId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ReservedCacheNodesOfferingId = ptr.String(xtv) + } + + case strings.EqualFold("UsagePrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.UsagePrice = ptr.Float64(f64) } default: @@ -19467,13 +22288,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v return nil } -func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ReplicationGroup + var sv []types.ReservedCacheNodesOffering if *v == nil { - sv = make([]types.ReplicationGroup, 0) + sv = make([]types.ReservedCacheNodesOffering, 0) } else { sv = *v } @@ -19488,11 +22309,11 @@ func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]types.ReplicationG break } switch { - case strings.EqualFold("ReplicationGroup", t.Name.Local): - var col types.ReplicationGroup + case strings.EqualFold("ReservedCacheNodesOffering", t.Name.Local): + var col types.ReservedCacheNodesOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -19511,22 +22332,22 @@ func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]types.ReplicationG return nil } -func awsAwsquery_deserializeDocumentReplicationGroupListUnwrapped(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.ReplicationGroup +func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingListUnwrapped(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedCacheNodesOffering if *v == nil { - sv = make([]types.ReplicationGroup, 0) + sv = make([]types.ReservedCacheNodesOffering, 0) } else { sv = *v } switch { default: - var mv types.ReplicationGroup + var mv types.ReservedCacheNodesOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -19535,13 +22356,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupListUnwrapped(v *[]types.Rep *v = sv return nil } -func awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(v **types.ReplicationGroupNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(v **types.ReservedCacheNodesOfferingNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroupNotFoundFault + var sv *types.ReservedCacheNodesOfferingNotFoundFault if *v == nil { - sv = &types.ReplicationGroupNotFoundFault{} + sv = &types.ReservedCacheNodesOfferingNotFoundFault{} } else { sv = *v } @@ -19584,13 +22405,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(v **types.Repl return nil } -func awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **types.ReplicationGroupNotUnderMigrationFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReshardingStatus(v **types.ReshardingStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroupNotUnderMigrationFault + var sv *types.ReshardingStatus if *v == nil { - sv = &types.ReplicationGroupNotUnderMigrationFault{} + sv = &types.ReshardingStatus{} } else { sv = *v } @@ -19606,18 +22427,11 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **t originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("SlotMigration", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSlotMigration(&sv.SlotMigration, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -19633,7 +22447,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **t return nil } -func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroupIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19656,7 +22470,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]string, memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) decoder = memberDecoder switch { - case strings.EqualFold("ReplicationGroupOutpostArn", t.Name.Local): + case strings.EqualFold("SecurityGroupId", t.Name.Local): var col string val, err := decoder.Value() if err != nil { @@ -19684,7 +22498,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]string, return nil } -func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroupIdsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { var sv []string if *v == nil { sv = make([]string, 0) @@ -19713,13 +22527,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[ *v = sv return nil } -func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **types.ReplicationGroupPendingModifiedValues, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReplicationGroupPendingModifiedValues + var sv *types.SecurityGroupMembership if *v == nil { - sv = &types.ReplicationGroupPendingModifiedValues{} + sv = &types.SecurityGroupMembership{} } else { sv = *v } @@ -19735,20 +22549,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **ty originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AuthTokenStatus", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AuthTokenStatus = types.AuthTokenUpdateStatus(xtv) - } - - case strings.EqualFold("AutomaticFailoverStatus", t.Name.Local): + case strings.EqualFold("SecurityGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19758,10 +22559,10 @@ func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **ty } { xtv := string(val) - sv.AutomaticFailoverStatus = types.PendingAutomaticFailoverStatus(xtv) + sv.SecurityGroupId = ptr.String(xtv) } - case strings.EqualFold("ClusterMode", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19771,71 +22572,55 @@ func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **ty } { xtv := string(val) - sv.ClusterMode = types.ClusterMode(xtv) - } - - case strings.EqualFold("LogDeliveryConfigurations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingLogDeliveryConfigurationList(&sv.LogDeliveryConfigurations, nodeDecoder); err != nil { - return err + sv.Status = ptr.String(xtv) } - case strings.EqualFold("PrimaryClusterId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PrimaryClusterId = ptr.String(xtv) - } - - case strings.EqualFold("Resharding", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReshardingStatus(&sv.Resharding, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("TransitEncryptionEnabled", 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.TransitEncryptionEnabled = ptr.Bool(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("TransitEncryptionMode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TransitEncryptionMode = types.TransitEncryptionMode(xtv) - } +func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.SecurityGroupMembership + if *v == nil { + sv = make([]types.SecurityGroupMembership, 0) + } else { + sv = *v + } - case strings.EqualFold("UserGroups", t.Name.Local): + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.SecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserGroupsUpdateStatus(&sv.UserGroups, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -19848,13 +22633,37 @@ func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **ty return nil } -func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroupMembershipListUnwrapped(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroupMembership + if *v == nil { + sv = make([]types.SecurityGroupMembership, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.SecurityGroupMembership + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentServerlessCache(v **types.ServerlessCache, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNode + var sv *types.ServerlessCache if *v == nil { - sv = &types.ReservedCacheNode{} + sv = &types.ServerlessCache{} } else { sv = *v } @@ -19870,7 +22679,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeCount", t.Name.Local): + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19880,14 +22689,16 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.CacheNodeCount = ptr.Int32(int32(i64)) + sv.ARN = ptr.String(xtv) } - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("CacheUsageLimits", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCacheUsageLimits(&sv.CacheUsageLimits, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CreateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19897,10 +22708,14 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreateTime = ptr.Time(t) } - case strings.EqualFold("Duration", t.Name.Local): + case strings.EqualFold("DailySnapshotTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19910,14 +22725,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Duration = ptr.Int32(int32(i64)) + sv.DailySnapshotTime = ptr.String(xtv) } - case strings.EqualFold("FixedPrice", t.Name.Local): + case strings.EqualFold("Description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19927,14 +22738,16 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.FixedPrice = ptr.Float64(f64) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("OfferingType", t.Name.Local): + case strings.EqualFold("Endpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.Endpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Engine", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19944,10 +22757,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.OfferingType = ptr.String(xtv) + sv.Engine = ptr.String(xtv) } - case strings.EqualFold("ProductDescription", t.Name.Local): + case strings.EqualFold("FullEngineVersion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19957,16 +22770,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.ProductDescription = ptr.String(xtv) - } - - case strings.EqualFold("RecurringCharges", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringChargeList(&sv.RecurringCharges, nodeDecoder); err != nil { - return err + sv.FullEngineVersion = ptr.String(xtv) } - case strings.EqualFold("ReservationARN", t.Name.Local): + case strings.EqualFold("KmsKeyId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19976,10 +22783,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.ReservationARN = ptr.String(xtv) + sv.KmsKeyId = ptr.String(xtv) } - case strings.EqualFold("ReservedCacheNodeId", t.Name.Local): + case strings.EqualFold("MajorEngineVersion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -19989,10 +22796,22 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.ReservedCacheNodeId = ptr.String(xtv) + sv.MajorEngineVersion = ptr.String(xtv) } - case strings.EqualFold("ReservedCacheNodesOfferingId", t.Name.Local): + case strings.EqualFold("ReaderEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentEndpoint(&sv.ReaderEndpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("SecurityGroupIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSecurityGroupIdsList(&sv.SecurityGroupIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ServerlessCacheName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20002,10 +22821,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.ReservedCacheNodesOfferingId = ptr.String(xtv) + sv.ServerlessCacheName = ptr.String(xtv) } - case strings.EqualFold("StartTime", t.Name.Local): + case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20015,14 +22834,14 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { return err } - sv.StartTime = ptr.Time(t) + sv.SnapshotRetentionLimit = ptr.Int32(int32(i64)) } - case strings.EqualFold("State", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20032,10 +22851,16 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - sv.State = ptr.String(xtv) + sv.Status = ptr.String(xtv) } - case strings.EqualFold("UsagePrice", t.Name.Local): + case strings.EqualFold("SubnetIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSubnetIdsList(&sv.SubnetIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("UserGroupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20045,11 +22870,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.UsagePrice = ptr.Float64(f64) + sv.UserGroupId = ptr.String(xtv) } default: @@ -20066,13 +22887,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(v **types.ReservedCacheNodeAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheAlreadyExistsFault(v **types.ServerlessCacheAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNodeAlreadyExistsFault + var sv *types.ServerlessCacheAlreadyExistsFault if *v == nil { - sv = &types.ReservedCacheNodeAlreadyExistsFault{} + sv = &types.ServerlessCacheAlreadyExistsFault{} } else { sv = *v } @@ -20115,13 +22936,88 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(v **type return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheConfiguration(v **types.ServerlessCacheConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ReservedCacheNode + var sv *types.ServerlessCacheConfiguration if *v == nil { - sv = make([]types.ReservedCacheNode, 0) + sv = &types.ServerlessCacheConfiguration{} + } 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("Engine", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Engine = ptr.String(xtv) + } + + case strings.EqualFold("MajorEngineVersion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.MajorEngineVersion = ptr.String(xtv) + } + + case strings.EqualFold("ServerlessCacheName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ServerlessCacheName = ptr.String(xtv) + } + + 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_deserializeDocumentServerlessCacheList(v *[]types.ServerlessCache, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ServerlessCache + if *v == nil { + sv = make([]types.ServerlessCache, 0) } else { sv = *v } @@ -20136,11 +23032,11 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]types.ReservedCac break } switch { - case strings.EqualFold("ReservedCacheNode", t.Name.Local): - var col types.ReservedCacheNode + case strings.EqualFold("member", t.Name.Local): + var col types.ServerlessCache nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentServerlessCache(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -20159,22 +23055,22 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]types.ReservedCac return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeListUnwrapped(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { - var sv []types.ReservedCacheNode +func awsAwsquery_deserializeDocumentServerlessCacheListUnwrapped(v *[]types.ServerlessCache, decoder smithyxml.NodeDecoder) error { + var sv []types.ServerlessCache if *v == nil { - sv = make([]types.ReservedCacheNode, 0) + sv = make([]types.ServerlessCache, 0) } else { sv = *v } switch { default: - var mv types.ReservedCacheNode + var mv types.ServerlessCache t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentServerlessCache(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -20183,13 +23079,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeListUnwrapped(v *[]types.Re *v = sv return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(v **types.ReservedCacheNodeNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheNotFoundFault(v **types.ServerlessCacheNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNodeNotFoundFault + var sv *types.ServerlessCacheNotFoundFault if *v == nil { - sv = &types.ReservedCacheNodeNotFoundFault{} + sv = &types.ServerlessCacheNotFoundFault{} } else { sv = *v } @@ -20232,13 +23128,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(v **types.Res return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(v **types.ReservedCacheNodeQuotaExceededFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheQuotaForCustomerExceededFault(v **types.ServerlessCacheQuotaForCustomerExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNodeQuotaExceededFault + var sv *types.ServerlessCacheQuotaForCustomerExceededFault if *v == nil { - sv = &types.ReservedCacheNodeQuotaExceededFault{} + sv = &types.ServerlessCacheQuotaForCustomerExceededFault{} } else { sv = *v } @@ -20281,13 +23177,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheSnapshot(v **types.ServerlessCacheSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNodesOffering + var sv *types.ServerlessCacheSnapshot if *v == nil { - sv = &types.ReservedCacheNodesOffering{} + sv = &types.ServerlessCacheSnapshot{} } else { sv = *v } @@ -20303,7 +23199,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CacheNodeType", t.Name.Local): + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20313,10 +23209,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - sv.CacheNodeType = ptr.String(xtv) + sv.ARN = ptr.String(xtv) } - case strings.EqualFold("Duration", t.Name.Local): + case strings.EqualFold("BytesUsedForCache", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20326,14 +23222,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Duration = ptr.Int32(int32(i64)) + sv.BytesUsedForCache = ptr.String(xtv) } - case strings.EqualFold("FixedPrice", t.Name.Local): + case strings.EqualFold("CreateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20343,14 +23235,14 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.FixedPrice = ptr.Float64(f64) + sv.CreateTime = ptr.Time(t) } - case strings.EqualFold("OfferingType", t.Name.Local): + case strings.EqualFold("ExpiryTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20360,10 +23252,14 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - sv.OfferingType = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ExpiryTime = ptr.Time(t) } - case strings.EqualFold("ProductDescription", t.Name.Local): + case strings.EqualFold("KmsKeyId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20373,16 +23269,16 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - sv.ProductDescription = ptr.String(xtv) + sv.KmsKeyId = ptr.String(xtv) } - case strings.EqualFold("RecurringCharges", t.Name.Local): + case strings.EqualFold("ServerlessCacheConfiguration", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringChargeList(&sv.RecurringCharges, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentServerlessCacheConfiguration(&sv.ServerlessCacheConfiguration, nodeDecoder); err != nil { return err } - case strings.EqualFold("ReservedCacheNodesOfferingId", t.Name.Local): + case strings.EqualFold("ServerlessCacheSnapshotName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20392,10 +23288,10 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - sv.ReservedCacheNodesOfferingId = ptr.String(xtv) + sv.ServerlessCacheSnapshotName = ptr.String(xtv) } - case strings.EqualFold("UsagePrice", t.Name.Local): + case strings.EqualFold("SnapshotType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20405,59 +23301,24 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.UsagePrice = ptr.Float64(f64) + sv.SnapshotType = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("Status", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.ReservedCacheNodesOffering - if *v == nil { - sv = make([]types.ReservedCacheNodesOffering, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("ReservedCacheNodesOffering", t.Name.Local): - var col types.ReservedCacheNodesOffering - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.Status = ptr.String(xtv) } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -20470,37 +23331,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]types.Re return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingListUnwrapped(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { - var sv []types.ReservedCacheNodesOffering - if *v == nil { - sv = make([]types.ReservedCacheNodesOffering, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ReservedCacheNodesOffering - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(v **types.ReservedCacheNodesOfferingNotFoundFault, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheSnapshotAlreadyExistsFault(v **types.ServerlessCacheSnapshotAlreadyExistsFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReservedCacheNodesOfferingNotFoundFault + var sv *types.ServerlessCacheSnapshotAlreadyExistsFault if *v == nil { - sv = &types.ReservedCacheNodesOfferingNotFoundFault{} + sv = &types.ServerlessCacheSnapshotAlreadyExistsFault{} } else { sv = *v } @@ -20543,17 +23380,18 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(v ** return nil } -func awsAwsquery_deserializeDocumentReshardingStatus(v **types.ReshardingStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheSnapshotList(v *[]types.ServerlessCacheSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ReshardingStatus + var sv []types.ServerlessCacheSnapshot if *v == nil { - sv = &types.ReshardingStatus{} + sv = make([]types.ServerlessCacheSnapshot, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -20562,17 +23400,18 @@ func awsAwsquery_deserializeDocumentReshardingStatus(v **types.ReshardingStatus, if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("SlotMigration", t.Name.Local): + case strings.EqualFold("ServerlessCacheSnapshot", t.Name.Local): + var col types.ServerlessCacheSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSlotMigration(&sv.SlotMigration, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -20585,13 +23424,37 @@ func awsAwsquery_deserializeDocumentReshardingStatus(v **types.ReshardingStatus, return nil } -func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheSnapshotListUnwrapped(v *[]types.ServerlessCacheSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.ServerlessCacheSnapshot + if *v == nil { + sv = make([]types.ServerlessCacheSnapshot, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ServerlessCacheSnapshot + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentServerlessCacheSnapshotNotFoundFault(v **types.ServerlessCacheSnapshotNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.SecurityGroupMembership + var sv *types.ServerlessCacheSnapshotNotFoundFault if *v == nil { - sv = &types.SecurityGroupMembership{} + sv = &types.ServerlessCacheSnapshotNotFoundFault{} } else { sv = *v } @@ -20607,20 +23470,7 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("SecurityGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SecurityGroupId = ptr.String(xtv) - } - - case strings.EqualFold("Status", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -20630,7 +23480,7 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr } { xtv := string(val) - sv.Status = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -20647,18 +23497,17 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr return nil } -func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerlessCacheSnapshotQuotaExceededFault(v **types.ServerlessCacheSnapshotQuotaExceededFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.SecurityGroupMembership + var sv *types.ServerlessCacheSnapshotQuotaExceededFault if *v == nil { - sv = make([]types.SecurityGroupMembership, 0) + sv = &types.ServerlessCacheSnapshotQuotaExceededFault{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -20667,18 +23516,24 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]types.Secur if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.SecurityGroupMembership - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -20691,30 +23546,6 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]types.Secur return nil } -func awsAwsquery_deserializeDocumentSecurityGroupMembershipListUnwrapped(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []types.SecurityGroupMembership - if *v == nil { - sv = make([]types.SecurityGroupMembership, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.SecurityGroupMembership - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} func awsAwsquery_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.ServiceLinkedRoleNotFoundFault, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -21821,17 +24652,85 @@ func awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsho return nil } -func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Subnet + if *v == nil { + sv = &types.Subnet{} + } 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("SubnetAvailabilityZone", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&sv.SubnetAvailabilityZone, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("SubnetIdentifier", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SubnetIdentifier = ptr.String(xtv) + } + + case strings.EqualFold("SubnetOutpost", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentSubnetOutpost(&sv.SubnetOutpost, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("SupportedNetworkTypes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentNetworkTypeList(&sv.SupportedNetworkTypes, nodeDecoder); err != nil { + return err + } + + 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_deserializeDocumentSubnetIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Subnet + var sv []string if *v == nil { - sv = &types.Subnet{} + sv = make([]string, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -21840,16 +24739,11 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("SubnetAvailabilityZone", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&sv.SubnetAvailabilityZone, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("SubnetIdentifier", t.Name.Local): + case strings.EqualFold("SubnetId", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -21859,23 +24753,11 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } { xtv := string(val) - sv.SubnetIdentifier = ptr.String(xtv) - } - - case strings.EqualFold("SubnetOutpost", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnetOutpost(&sv.SubnetOutpost, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("SupportedNetworkTypes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNetworkTypeList(&sv.SupportedNetworkTypes, nodeDecoder); err != nil { - return err + col = xtv } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -21888,6 +24770,35 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N return nil } +func awsAwsquery_deserializeDocumentSubnetIdsListUnwrapped(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_deserializeDocumentSubnetInUse(v **types.SubnetInUse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -22460,6 +25371,86 @@ func awsAwsquery_deserializeDocumentUGReplicationGroupIdListUnwrapped(v *[]strin *v = sv return nil } +func awsAwsquery_deserializeDocumentUGServerlessCacheIdList(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_deserializeDocumentUGServerlessCacheIdListUnwrapped(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_deserializeDocumentUnprocessedUpdateAction(v **types.UnprocessedUpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -23217,6 +26208,12 @@ func awsAwsquery_deserializeDocumentUserGroup(v **types.UserGroup, decoder smith return err } + case strings.EqualFold("ServerlessCaches", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUGServerlessCacheIdList(&sv.ServerlessCaches, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -24122,6 +27119,48 @@ func awsAwsquery_deserializeOpDocumentCompleteMigrationOutput(v **CompleteMigrat return nil } +func awsAwsquery_deserializeOpDocumentCopyServerlessCacheSnapshotOutput(v **CopyServerlessCacheSnapshotOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CopyServerlessCacheSnapshotOutput + if *v == nil { + sv = &CopyServerlessCacheSnapshotOutput{} + } 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("ServerlessCacheSnapshot", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&sv.ServerlessCacheSnapshot, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentCopySnapshotOutput(v **CopySnapshotOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -24416,6 +27455,90 @@ func awsAwsquery_deserializeOpDocumentCreateReplicationGroupOutput(v **CreateRep return nil } +func awsAwsquery_deserializeOpDocumentCreateServerlessCacheOutput(v **CreateServerlessCacheOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateServerlessCacheOutput + if *v == nil { + sv = &CreateServerlessCacheOutput{} + } 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("ServerlessCache", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCache(&sv.ServerlessCache, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentCreateServerlessCacheSnapshotOutput(v **CreateServerlessCacheSnapshotOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateServerlessCacheSnapshotOutput + if *v == nil { + sv = &CreateServerlessCacheSnapshotOutput{} + } 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("ServerlessCacheSnapshot", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&sv.ServerlessCacheSnapshot, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -24531,6 +27654,12 @@ func awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(v **CreateUserGroupO return err } + case strings.EqualFold("ServerlessCaches", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUGServerlessCacheIdList(&sv.ServerlessCaches, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -24926,6 +28055,90 @@ func awsAwsquery_deserializeOpDocumentDeleteReplicationGroupOutput(v **DeleteRep return nil } +func awsAwsquery_deserializeOpDocumentDeleteServerlessCacheOutput(v **DeleteServerlessCacheOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteServerlessCacheOutput + if *v == nil { + sv = &DeleteServerlessCacheOutput{} + } 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("ServerlessCache", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCache(&sv.ServerlessCache, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentDeleteServerlessCacheSnapshotOutput(v **DeleteServerlessCacheSnapshotOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteServerlessCacheSnapshotOutput + if *v == nil { + sv = &DeleteServerlessCacheSnapshotOutput{} + } 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("ServerlessCacheSnapshot", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&sv.ServerlessCacheSnapshot, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentDeleteSnapshotOutput(v **DeleteSnapshotOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -25041,6 +28254,12 @@ func awsAwsquery_deserializeOpDocumentDeleteUserGroupOutput(v **DeleteUserGroupO return err } + case strings.EqualFold("ServerlessCaches", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUGServerlessCacheIdList(&sv.ServerlessCaches, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -25879,6 +29098,116 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedCacheNodesOutput(v **Descr return nil } +func awsAwsquery_deserializeOpDocumentDescribeServerlessCacheSnapshotsOutput(v **DescribeServerlessCacheSnapshotsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeServerlessCacheSnapshotsOutput + if *v == nil { + sv = &DescribeServerlessCacheSnapshotsOutput{} + } 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("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("ServerlessCacheSnapshots", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshotList(&sv.ServerlessCacheSnapshots, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentDescribeServerlessCachesOutput(v **DescribeServerlessCachesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeServerlessCachesOutput + if *v == nil { + sv = &DescribeServerlessCachesOutput{} + } 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("NextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("ServerlessCaches", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheList(&sv.ServerlessCaches, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentDescribeServiceUpdatesOutput(v **DescribeServiceUpdatesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -26196,6 +29525,48 @@ func awsAwsquery_deserializeOpDocumentDisassociateGlobalReplicationGroupOutput(v return nil } +func awsAwsquery_deserializeOpDocumentExportServerlessCacheSnapshotOutput(v **ExportServerlessCacheSnapshotOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ExportServerlessCacheSnapshotOutput + if *v == nil { + sv = &ExportServerlessCacheSnapshotOutput{} + } 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("ServerlessCacheSnapshot", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCacheSnapshot(&sv.ServerlessCacheSnapshot, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentFailoverGlobalReplicationGroupOutput(v **FailoverGlobalReplicationGroupOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -26671,6 +30042,48 @@ func awsAwsquery_deserializeOpDocumentModifyReplicationGroupShardConfigurationOu return nil } +func awsAwsquery_deserializeOpDocumentModifyServerlessCacheOutput(v **ModifyServerlessCacheOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyServerlessCacheOutput + if *v == nil { + sv = &ModifyServerlessCacheOutput{} + } 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("ServerlessCache", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessCache(&sv.ServerlessCache, nodeDecoder); err != nil { + return err + } + + 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_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -26744,6 +30157,12 @@ func awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupO return err } + case strings.EqualFold("ServerlessCaches", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentUGServerlessCacheIdList(&sv.ServerlessCaches, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/elasticache/generated.json b/service/elasticache/generated.json index 58b30a630b0..5a56ce3e9b8 100644 --- a/service/elasticache/generated.json +++ b/service/elasticache/generated.json @@ -15,6 +15,7 @@ "api_op_BatchApplyUpdateAction.go", "api_op_BatchStopUpdateAction.go", "api_op_CompleteMigration.go", + "api_op_CopyServerlessCacheSnapshot.go", "api_op_CopySnapshot.go", "api_op_CreateCacheCluster.go", "api_op_CreateCacheParameterGroup.go", @@ -22,6 +23,8 @@ "api_op_CreateCacheSubnetGroup.go", "api_op_CreateGlobalReplicationGroup.go", "api_op_CreateReplicationGroup.go", + "api_op_CreateServerlessCache.go", + "api_op_CreateServerlessCacheSnapshot.go", "api_op_CreateSnapshot.go", "api_op_CreateUser.go", "api_op_CreateUserGroup.go", @@ -33,6 +36,8 @@ "api_op_DeleteCacheSubnetGroup.go", "api_op_DeleteGlobalReplicationGroup.go", "api_op_DeleteReplicationGroup.go", + "api_op_DeleteServerlessCache.go", + "api_op_DeleteServerlessCacheSnapshot.go", "api_op_DeleteSnapshot.go", "api_op_DeleteUser.go", "api_op_DeleteUserGroup.go", @@ -48,12 +53,15 @@ "api_op_DescribeReplicationGroups.go", "api_op_DescribeReservedCacheNodes.go", "api_op_DescribeReservedCacheNodesOfferings.go", + "api_op_DescribeServerlessCacheSnapshots.go", + "api_op_DescribeServerlessCaches.go", "api_op_DescribeServiceUpdates.go", "api_op_DescribeSnapshots.go", "api_op_DescribeUpdateActions.go", "api_op_DescribeUserGroups.go", "api_op_DescribeUsers.go", "api_op_DisassociateGlobalReplicationGroup.go", + "api_op_ExportServerlessCacheSnapshot.go", "api_op_FailoverGlobalReplicationGroup.go", "api_op_IncreaseNodeGroupsInGlobalReplicationGroup.go", "api_op_IncreaseReplicaCount.go", @@ -65,6 +73,7 @@ "api_op_ModifyGlobalReplicationGroup.go", "api_op_ModifyReplicationGroup.go", "api_op_ModifyReplicationGroupShardConfiguration.go", + "api_op_ModifyServerlessCache.go", "api_op_ModifyUser.go", "api_op_ModifyUserGroup.go", "api_op_PurchaseReservedCacheNodesOffering.go", diff --git a/service/elasticache/serializers.go b/service/elasticache/serializers.go index e320b6d8f24..8901b7ffdf8 100644 --- a/service/elasticache/serializers.go +++ b/service/elasticache/serializers.go @@ -336,6 +336,70 @@ func (m *awsAwsquery_serializeOpCompleteMigration) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpCopyServerlessCacheSnapshot struct { +} + +func (*awsAwsquery_serializeOpCopyServerlessCacheSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpCopyServerlessCacheSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CopyServerlessCacheSnapshotInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CopyServerlessCacheSnapshot") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentCopyServerlessCacheSnapshotInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpCopySnapshot struct { } @@ -784,6 +848,134 @@ func (m *awsAwsquery_serializeOpCreateReplicationGroup) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpCreateServerlessCache struct { +} + +func (*awsAwsquery_serializeOpCreateServerlessCache) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpCreateServerlessCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateServerlessCacheInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateServerlessCache") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentCreateServerlessCacheInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsquery_serializeOpCreateServerlessCacheSnapshot struct { +} + +func (*awsAwsquery_serializeOpCreateServerlessCacheSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpCreateServerlessCacheSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateServerlessCacheSnapshotInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateServerlessCacheSnapshot") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentCreateServerlessCacheSnapshotInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpCreateSnapshot struct { } @@ -1311,7 +1503,135 @@ func (m *awsAwsquery_serializeOpDeleteCacheSubnetGroup) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteCacheSubnetGroupInput) + input, ok := in.Parameters.(*DeleteCacheSubnetGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteCacheSubnetGroup") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentDeleteCacheSubnetGroupInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsquery_serializeOpDeleteGlobalReplicationGroup struct { +} + +func (*awsAwsquery_serializeOpDeleteGlobalReplicationGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpDeleteGlobalReplicationGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteGlobalReplicationGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteGlobalReplicationGroup") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentDeleteGlobalReplicationGroupInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsquery_serializeOpDeleteReplicationGroup struct { +} + +func (*awsAwsquery_serializeOpDeleteReplicationGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpDeleteReplicationGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteReplicationGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1336,10 +1656,10 @@ func (m *awsAwsquery_serializeOpDeleteCacheSubnetGroup) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteCacheSubnetGroup") + body.Key("Action").String("DeleteReplicationGroup") body.Key("Version").String("2015-02-02") - if err := awsAwsquery_serializeOpDocumentDeleteCacheSubnetGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsAwsquery_serializeOpDocumentDeleteReplicationGroupInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1360,14 +1680,14 @@ func (m *awsAwsquery_serializeOpDeleteCacheSubnetGroup) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpDeleteGlobalReplicationGroup struct { +type awsAwsquery_serializeOpDeleteServerlessCache struct { } -func (*awsAwsquery_serializeOpDeleteGlobalReplicationGroup) ID() string { +func (*awsAwsquery_serializeOpDeleteServerlessCache) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpDeleteGlobalReplicationGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsquery_serializeOpDeleteServerlessCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1375,7 +1695,7 @@ func (m *awsAwsquery_serializeOpDeleteGlobalReplicationGroup) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteGlobalReplicationGroupInput) + input, ok := in.Parameters.(*DeleteServerlessCacheInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1400,10 +1720,10 @@ func (m *awsAwsquery_serializeOpDeleteGlobalReplicationGroup) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteGlobalReplicationGroup") + body.Key("Action").String("DeleteServerlessCache") body.Key("Version").String("2015-02-02") - if err := awsAwsquery_serializeOpDocumentDeleteGlobalReplicationGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsAwsquery_serializeOpDocumentDeleteServerlessCacheInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1424,14 +1744,14 @@ func (m *awsAwsquery_serializeOpDeleteGlobalReplicationGroup) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpDeleteReplicationGroup struct { +type awsAwsquery_serializeOpDeleteServerlessCacheSnapshot struct { } -func (*awsAwsquery_serializeOpDeleteReplicationGroup) ID() string { +func (*awsAwsquery_serializeOpDeleteServerlessCacheSnapshot) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpDeleteReplicationGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsquery_serializeOpDeleteServerlessCacheSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1439,7 +1759,7 @@ func (m *awsAwsquery_serializeOpDeleteReplicationGroup) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteReplicationGroupInput) + input, ok := in.Parameters.(*DeleteServerlessCacheSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1464,10 +1784,10 @@ func (m *awsAwsquery_serializeOpDeleteReplicationGroup) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteReplicationGroup") + body.Key("Action").String("DeleteServerlessCacheSnapshot") body.Key("Version").String("2015-02-02") - if err := awsAwsquery_serializeOpDocumentDeleteReplicationGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsAwsquery_serializeOpDocumentDeleteServerlessCacheSnapshotInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2448,6 +2768,134 @@ func (m *awsAwsquery_serializeOpDescribeReservedCacheNodesOfferings) HandleSeria return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpDescribeServerlessCaches struct { +} + +func (*awsAwsquery_serializeOpDescribeServerlessCaches) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpDescribeServerlessCaches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeServerlessCachesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeServerlessCaches") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentDescribeServerlessCachesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsquery_serializeOpDescribeServerlessCacheSnapshots struct { +} + +func (*awsAwsquery_serializeOpDescribeServerlessCacheSnapshots) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpDescribeServerlessCacheSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeServerlessCacheSnapshotsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeServerlessCacheSnapshots") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentDescribeServerlessCacheSnapshotsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpDescribeServiceUpdates struct { } @@ -2832,6 +3280,70 @@ func (m *awsAwsquery_serializeOpDisassociateGlobalReplicationGroup) HandleSerial return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpExportServerlessCacheSnapshot struct { +} + +func (*awsAwsquery_serializeOpExportServerlessCacheSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpExportServerlessCacheSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ExportServerlessCacheSnapshotInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ExportServerlessCacheSnapshot") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentExportServerlessCacheSnapshotInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpFailoverGlobalReplicationGroup struct { } @@ -3448,10 +3960,74 @@ func (m *awsAwsquery_serializeOpModifyReplicationGroup) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyReplicationGroup") + body.Key("Action").String("ModifyReplicationGroup") + body.Key("Version").String("2015-02-02") + + if err := awsAwsquery_serializeOpDocumentModifyReplicationGroupInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration struct { +} + +func (*awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyReplicationGroupShardConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyReplicationGroupShardConfiguration") body.Key("Version").String("2015-02-02") - if err := awsAwsquery_serializeOpDocumentModifyReplicationGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsAwsquery_serializeOpDocumentModifyReplicationGroupShardConfigurationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3472,14 +4048,14 @@ func (m *awsAwsquery_serializeOpModifyReplicationGroup) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration struct { +type awsAwsquery_serializeOpModifyServerlessCache struct { } -func (*awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) ID() string { +func (*awsAwsquery_serializeOpModifyServerlessCache) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsquery_serializeOpModifyServerlessCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3487,7 +4063,7 @@ func (m *awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyReplicationGroupShardConfigurationInput) + input, ok := in.Parameters.(*ModifyServerlessCacheInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3512,10 +4088,10 @@ func (m *awsAwsquery_serializeOpModifyReplicationGroupShardConfiguration) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyReplicationGroupShardConfiguration") + body.Key("Action").String("ModifyServerlessCache") body.Key("Version").String("2015-02-02") - if err := awsAwsquery_serializeOpDocumentModifyReplicationGroupShardConfigurationInput(input, bodyEncoder.Value); err != nil { + if err := awsAwsquery_serializeOpDocumentModifyServerlessCacheInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4298,6 +4874,27 @@ func awsAwsquery_serializeDocumentCacheSecurityGroupNameList(v []string, value q return nil } +func awsAwsquery_serializeDocumentCacheUsageLimits(v *types.CacheUsageLimits, value query.Value) error { + object := value.Object() + _ = object + + if v.DataStorage != nil { + objectKey := object.Key("DataStorage") + if err := awsAwsquery_serializeDocumentDataStorage(v.DataStorage, objectKey); err != nil { + return err + } + } + + if v.ECPUPerSecond != nil { + objectKey := object.Key("ECPUPerSecond") + if err := awsAwsquery_serializeDocumentECPUPerSecond(v.ECPUPerSecond, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeDocumentCloudWatchLogsDestinationDetails(v *types.CloudWatchLogsDestinationDetails, value query.Value) error { object := value.Object() _ = object @@ -4370,6 +4967,23 @@ func awsAwsquery_serializeDocumentCustomerNodeEndpointList(v []types.CustomerNod return nil } +func awsAwsquery_serializeDocumentDataStorage(v *types.DataStorage, value query.Value) error { + object := value.Object() + _ = object + + if v.Maximum != nil { + objectKey := object.Key("Maximum") + objectKey.Integer(*v.Maximum) + } + + if len(v.Unit) > 0 { + objectKey := object.Key("Unit") + objectKey.String(string(v.Unit)) + } + + return nil +} + func awsAwsquery_serializeDocumentDestinationDetails(v *types.DestinationDetails, value query.Value) error { object := value.Object() _ = object @@ -4391,6 +5005,18 @@ func awsAwsquery_serializeDocumentDestinationDetails(v *types.DestinationDetails return nil } +func awsAwsquery_serializeDocumentECPUPerSecond(v *types.ECPUPerSecond, value query.Value) error { + object := value.Object() + _ = object + + if v.Maximum != nil { + objectKey := object.Key("Maximum") + objectKey.Integer(*v.Maximum) + } + + return nil +} + func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) error { object := value.Object() _ = object @@ -4796,6 +5422,16 @@ func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.V return nil } +func awsAwsquery_serializeDocumentSubnetIdsList(v []string, value query.Value) error { + array := value.Array("SubnetId") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { object := value.Object() _ = object @@ -4992,6 +5628,35 @@ func awsAwsquery_serializeOpDocumentCompleteMigrationInput(v *CompleteMigrationI return nil } +func awsAwsquery_serializeOpDocumentCopyServerlessCacheSnapshotInput(v *CopyServerlessCacheSnapshotInput, value query.Value) error { + object := value.Object() + _ = object + + if v.KmsKeyId != nil { + objectKey := object.Key("KmsKeyId") + objectKey.String(*v.KmsKeyId) + } + + if v.SourceServerlessCacheSnapshotName != nil { + objectKey := object.Key("SourceServerlessCacheSnapshotName") + objectKey.String(*v.SourceServerlessCacheSnapshotName) + } + + if v.Tags != nil { + objectKey := object.Key("Tags") + if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { + return err + } + } + + if v.TargetServerlessCacheSnapshotName != nil { + objectKey := object.Key("TargetServerlessCacheSnapshotName") + objectKey.String(*v.TargetServerlessCacheSnapshotName) + } + + return nil +} + func awsAwsquery_serializeOpDocumentCopySnapshotInput(v *CopySnapshotInput, value query.Value) error { object := value.Object() _ = object @@ -5467,6 +6132,11 @@ func awsAwsquery_serializeOpDocumentCreateReplicationGroupInput(v *CreateReplica } } + if v.ServerlessCacheSnapshotName != nil { + objectKey := object.Key("ServerlessCacheSnapshotName") + objectKey.String(*v.ServerlessCacheSnapshotName) + } + if v.SnapshotArns != nil { objectKey := object.Key("SnapshotArns") if err := awsAwsquery_serializeDocumentSnapshotArnsList(v.SnapshotArns, objectKey); err != nil { @@ -5516,6 +6186,117 @@ func awsAwsquery_serializeOpDocumentCreateReplicationGroupInput(v *CreateReplica return nil } +func awsAwsquery_serializeOpDocumentCreateServerlessCacheInput(v *CreateServerlessCacheInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CacheUsageLimits != nil { + objectKey := object.Key("CacheUsageLimits") + if err := awsAwsquery_serializeDocumentCacheUsageLimits(v.CacheUsageLimits, objectKey); err != nil { + return err + } + } + + if v.DailySnapshotTime != nil { + objectKey := object.Key("DailySnapshotTime") + objectKey.String(*v.DailySnapshotTime) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.Engine != nil { + objectKey := object.Key("Engine") + objectKey.String(*v.Engine) + } + + if v.KmsKeyId != nil { + objectKey := object.Key("KmsKeyId") + objectKey.String(*v.KmsKeyId) + } + + if v.MajorEngineVersion != nil { + objectKey := object.Key("MajorEngineVersion") + objectKey.String(*v.MajorEngineVersion) + } + + if v.SecurityGroupIds != nil { + objectKey := object.Key("SecurityGroupIds") + if err := awsAwsquery_serializeDocumentSecurityGroupIdsList(v.SecurityGroupIds, objectKey); err != nil { + return err + } + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + if v.SnapshotArnsToRestore != nil { + objectKey := object.Key("SnapshotArnsToRestore") + if err := awsAwsquery_serializeDocumentSnapshotArnsList(v.SnapshotArnsToRestore, objectKey); err != nil { + return err + } + } + + if v.SnapshotRetentionLimit != nil { + objectKey := object.Key("SnapshotRetentionLimit") + objectKey.Integer(*v.SnapshotRetentionLimit) + } + + if v.SubnetIds != nil { + objectKey := object.Key("SubnetIds") + if err := awsAwsquery_serializeDocumentSubnetIdsList(v.SubnetIds, objectKey); err != nil { + return err + } + } + + if v.Tags != nil { + objectKey := object.Key("Tags") + if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { + return err + } + } + + if v.UserGroupId != nil { + objectKey := object.Key("UserGroupId") + objectKey.String(*v.UserGroupId) + } + + return nil +} + +func awsAwsquery_serializeOpDocumentCreateServerlessCacheSnapshotInput(v *CreateServerlessCacheSnapshotInput, value query.Value) error { + object := value.Object() + _ = object + + if v.KmsKeyId != nil { + objectKey := object.Key("KmsKeyId") + objectKey.String(*v.KmsKeyId) + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + if v.ServerlessCacheSnapshotName != nil { + objectKey := object.Key("ServerlessCacheSnapshotName") + objectKey.String(*v.ServerlessCacheSnapshotName) + } + + if v.Tags != nil { + objectKey := object.Key("Tags") + if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeOpDocumentCreateSnapshotInput(v *CreateSnapshotInput, value query.Value) error { object := value.Object() _ = object @@ -5798,6 +6579,35 @@ func awsAwsquery_serializeOpDocumentDeleteReplicationGroupInput(v *DeleteReplica return nil } +func awsAwsquery_serializeOpDocumentDeleteServerlessCacheInput(v *DeleteServerlessCacheInput, value query.Value) error { + object := value.Object() + _ = object + + if v.FinalSnapshotName != nil { + objectKey := object.Key("FinalSnapshotName") + objectKey.String(*v.FinalSnapshotName) + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + return nil +} + +func awsAwsquery_serializeOpDocumentDeleteServerlessCacheSnapshotInput(v *DeleteServerlessCacheSnapshotInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ServerlessCacheSnapshotName != nil { + objectKey := object.Key("ServerlessCacheSnapshotName") + objectKey.String(*v.ServerlessCacheSnapshotName) + } + + return nil +} + func awsAwsquery_serializeOpDocumentDeleteSnapshotInput(v *DeleteSnapshotInput, value query.Value) error { object := value.Object() _ = object @@ -6198,6 +7008,60 @@ func awsAwsquery_serializeOpDocumentDescribeReservedCacheNodesOfferingsInput(v * return nil } +func awsAwsquery_serializeOpDocumentDescribeServerlessCachesInput(v *DescribeServerlessCachesInput, value query.Value) error { + object := value.Object() + _ = object + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + return nil +} + +func awsAwsquery_serializeOpDocumentDescribeServerlessCacheSnapshotsInput(v *DescribeServerlessCacheSnapshotsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + if v.ServerlessCacheSnapshotName != nil { + objectKey := object.Key("ServerlessCacheSnapshotName") + objectKey.String(*v.ServerlessCacheSnapshotName) + } + + if v.SnapshotType != nil { + objectKey := object.Key("SnapshotType") + objectKey.String(*v.SnapshotType) + } + + return nil +} + func awsAwsquery_serializeOpDocumentDescribeServiceUpdatesInput(v *DescribeServiceUpdatesInput, value query.Value) error { object := value.Object() _ = object @@ -6414,6 +7278,23 @@ func awsAwsquery_serializeOpDocumentDisassociateGlobalReplicationGroupInput(v *D return nil } +func awsAwsquery_serializeOpDocumentExportServerlessCacheSnapshotInput(v *ExportServerlessCacheSnapshotInput, value query.Value) error { + object := value.Object() + _ = object + + if v.S3BucketName != nil { + objectKey := object.Key("S3BucketName") + objectKey.String(*v.S3BucketName) + } + + if v.ServerlessCacheSnapshotName != nil { + objectKey := object.Key("ServerlessCacheSnapshotName") + objectKey.String(*v.ServerlessCacheSnapshotName) + } + + return nil +} + func awsAwsquery_serializeOpDocumentFailoverGlobalReplicationGroupInput(v *FailoverGlobalReplicationGroupInput, value query.Value) error { object := value.Object() _ = object @@ -6935,6 +7816,57 @@ func awsAwsquery_serializeOpDocumentModifyReplicationGroupShardConfigurationInpu return nil } +func awsAwsquery_serializeOpDocumentModifyServerlessCacheInput(v *ModifyServerlessCacheInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CacheUsageLimits != nil { + objectKey := object.Key("CacheUsageLimits") + if err := awsAwsquery_serializeDocumentCacheUsageLimits(v.CacheUsageLimits, objectKey); err != nil { + return err + } + } + + if v.DailySnapshotTime != nil { + objectKey := object.Key("DailySnapshotTime") + objectKey.String(*v.DailySnapshotTime) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.RemoveUserGroup != nil { + objectKey := object.Key("RemoveUserGroup") + objectKey.Boolean(*v.RemoveUserGroup) + } + + if v.SecurityGroupIds != nil { + objectKey := object.Key("SecurityGroupIds") + if err := awsAwsquery_serializeDocumentSecurityGroupIdsList(v.SecurityGroupIds, objectKey); err != nil { + return err + } + } + + if v.ServerlessCacheName != nil { + objectKey := object.Key("ServerlessCacheName") + objectKey.String(*v.ServerlessCacheName) + } + + if v.SnapshotRetentionLimit != nil { + objectKey := object.Key("SnapshotRetentionLimit") + objectKey.Integer(*v.SnapshotRetentionLimit) + } + + if v.UserGroupId != nil { + objectKey := object.Key("UserGroupId") + objectKey.String(*v.UserGroupId) + } + + return nil +} + func awsAwsquery_serializeOpDocumentModifyUserGroupInput(v *ModifyUserGroupInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/elasticache/types/enums.go b/service/elasticache/types/enums.go index 1458880f3e3..a5735f6e238 100644 --- a/service/elasticache/types/enums.go +++ b/service/elasticache/types/enums.go @@ -138,6 +138,22 @@ func (ClusterMode) Values() []ClusterMode { } } +type DataStorageUnit string + +// Enum values for DataStorageUnit +const ( + DataStorageUnitGb DataStorageUnit = "GB" +) + +// Values returns all known values for DataStorageUnit. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DataStorageUnit) Values() []DataStorageUnit { + return []DataStorageUnit{ + "GB", + } +} + type DataTieringStatus string // Enum values for DataTieringStatus @@ -474,13 +490,15 @@ type SourceType string // Enum values for SourceType const ( - SourceTypeCacheCluster SourceType = "cache-cluster" - SourceTypeCacheParameterGroup SourceType = "cache-parameter-group" - SourceTypeCacheSecurityGroup SourceType = "cache-security-group" - SourceTypeCacheSubnetGroup SourceType = "cache-subnet-group" - SourceTypeReplicationGroup SourceType = "replication-group" - SourceTypeUser SourceType = "user" - SourceTypeUserGroup SourceType = "user-group" + SourceTypeCacheCluster SourceType = "cache-cluster" + SourceTypeCacheParameterGroup SourceType = "cache-parameter-group" + SourceTypeCacheSecurityGroup SourceType = "cache-security-group" + SourceTypeCacheSubnetGroup SourceType = "cache-subnet-group" + SourceTypeReplicationGroup SourceType = "replication-group" + SourceTypeServerlessCache SourceType = "serverless-cache" + SourceTypeServerlessCacheSnapshot SourceType = "serverless-cache-snapshot" + SourceTypeUser SourceType = "user" + SourceTypeUserGroup SourceType = "user-group" ) // Values returns all known values for SourceType. Note that this can be expanded @@ -493,6 +511,8 @@ func (SourceType) Values() []SourceType { "cache-security-group", "cache-subnet-group", "replication-group", + "serverless-cache", + "serverless-cache-snapshot", "user", "user-group", } diff --git a/service/elasticache/types/errors.go b/service/elasticache/types/errors.go index dfd00fc2002..b406f7cf302 100644 --- a/service/elasticache/types/errors.go +++ b/service/elasticache/types/errors.go @@ -751,6 +751,32 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// You must enter valid credentials. +type InvalidCredentialsException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidCredentialsException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidCredentialsException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidCredentialsException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidCredentialsException" + } + return *e.ErrorCodeOverride +} +func (e *InvalidCredentialsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The Global datastore is not available or in primary-only state. type InvalidGlobalReplicationGroupStateFault struct { Message *string @@ -885,6 +911,61 @@ func (e *InvalidReplicationGroupStateFault) ErrorCode() string { } func (e *InvalidReplicationGroupStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The state of the serverless cache snapshot was not received. Available for +// Redis only. +type InvalidServerlessCacheSnapshotStateFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidServerlessCacheSnapshotStateFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidServerlessCacheSnapshotStateFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidServerlessCacheSnapshotStateFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidServerlessCacheSnapshotStateFault" + } + return *e.ErrorCodeOverride +} +func (e *InvalidServerlessCacheSnapshotStateFault) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// The account for these credentials is not currently active. +type InvalidServerlessCacheStateFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidServerlessCacheStateFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidServerlessCacheStateFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidServerlessCacheStateFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidServerlessCacheStateFault" + } + return *e.ErrorCodeOverride +} +func (e *InvalidServerlessCacheStateFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The current state of the snapshot does not allow the requested operation to // occur. type InvalidSnapshotStateFault struct { @@ -1375,6 +1456,173 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorFault() smithy.ErrorFault return smithy.FaultClient } +// A serverless cache with this name already exists. +type ServerlessCacheAlreadyExistsFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheAlreadyExistsFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheAlreadyExistsFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The serverless cache was not found or does not exist. +type ServerlessCacheNotFoundFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheNotFoundFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheNotFoundFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheNotFoundFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The number of serverless caches exceeds the customer quota. +type ServerlessCacheQuotaForCustomerExceededFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheQuotaForCustomerExceededFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheQuotaForCustomerExceededFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheQuotaForCustomerExceededFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheQuotaForCustomerExceededFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheQuotaForCustomerExceededFault) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// A serverless cache snapshot with this name already exists. Available for Redis +// only. +type ServerlessCacheSnapshotAlreadyExistsFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheSnapshotAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheSnapshotAlreadyExistsFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheSnapshotAlreadyExistsFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheSnapshotAlreadyExistsFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheSnapshotAlreadyExistsFault) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// This serverless cache snapshot could not be found or does not exist. Available +// for Redis only. +type ServerlessCacheSnapshotNotFoundFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheSnapshotNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheSnapshotNotFoundFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheSnapshotNotFoundFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheSnapshotNotFoundFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheSnapshotNotFoundFault) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// The number of serverless cache snapshots exceeds the customer snapshot quota. +// Available for Redis only. +type ServerlessCacheSnapshotQuotaExceededFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServerlessCacheSnapshotQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServerlessCacheSnapshotQuotaExceededFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServerlessCacheSnapshotQuotaExceededFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServerlessCacheSnapshotQuotaExceededFault" + } + return *e.ErrorCodeOverride +} +func (e *ServerlessCacheSnapshotQuotaExceededFault) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + // The specified service linked role (SLR) was not found. type ServiceLinkedRoleNotFoundFault struct { Message *string diff --git a/service/elasticache/types/types.go b/service/elasticache/types/types.go index 688715a400e..3a4ce3b3c4c 100644 --- a/service/elasticache/types/types.go +++ b/service/elasticache/types/types.go @@ -83,19 +83,20 @@ type CacheCluster struct { // current generation types provide more memory and computational power at lower // cost when compared to their equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -106,15 +107,16 @@ type CacheCluster struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -269,19 +271,20 @@ type CacheEngineVersion struct { // computational power at lower cost when compared to their equivalent previous // generation counterparts. // - General purpose: -// - Current generation: M6g node types (available only for Redis engine version -// 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large -// , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge -// , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see -// Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) -// M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , -// cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: -// cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , -// cache.m4.10xlarge T4g node types (available only for Redis engine version -// 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , -// cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , -// cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , -// cache.t2.small , cache.t2.medium +// - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , +// cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge +// , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) +// M6g node types (available only for Redis engine version 5.0.6 onward and for +// Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , +// cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge +// , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , +// cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 +// node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , +// cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis +// engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): +// cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: +// cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: +// cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -292,15 +295,16 @@ type CacheEngineVersion struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: -// - Current generation: R6g node types (available only for Redis engine version -// 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large -// , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge -// , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see -// Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) -// R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , -// cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: -// cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , -// cache.r4.8xlarge , cache.r4.16xlarge +// - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , +// cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge +// , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) +// R6g node types (available only for Redis engine version 5.0.6 onward and for +// Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , +// cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge +// , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , +// cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 +// node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , +// cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -535,6 +539,19 @@ type CacheSubnetGroup struct { noSmithyDocumentSerde } +// The usage limits for storage and ElastiCache Processing Units for the cache. +type CacheUsageLimits struct { + + // The maximum data storage limit in the cache, expressed in Gigabytes. + DataStorage *DataStorage + + // The configuration for the number of ElastiCache Processing Units (ECPU) the + // cache can consume per second. + ECPUPerSecond *ECPUPerSecond + + noSmithyDocumentSerde +} + // The configuration details of the CloudWatch Logs destination. type CloudWatchLogsDestinationDetails struct { @@ -596,6 +613,22 @@ type CustomerNodeEndpoint struct { noSmithyDocumentSerde } +// The data storage limit. +type DataStorage struct { + + // The upper limit for data storage the cache is set to use. + // + // This member is required. + Maximum *int32 + + // The unit that the storage is measured in, in GB. + // + // This member is required. + Unit DataStorageUnit + + noSmithyDocumentSerde +} + // Configuration details of either a CloudWatch Logs destination or Kinesis Data // Firehose destination. type DestinationDetails struct { @@ -624,6 +657,19 @@ type EC2SecurityGroup struct { noSmithyDocumentSerde } +// The configuration for the number of ElastiCache Processing Units (ECPU) the +// cache can consume per second. +type ECPUPerSecond struct { + + // The configuration for the maximum number of ECPUs the cache can consume per + // second. + // + // This member is required. + Maximum *int32 + + noSmithyDocumentSerde +} + // Represents the information required for client programs to connect to a cache // node. type Endpoint struct { @@ -1391,19 +1437,20 @@ type ReservedCacheNode struct { // provide more memory and computational power at lower cost when compared to their // equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -1414,15 +1461,16 @@ type ReservedCacheNode struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -1482,19 +1530,20 @@ type ReservedCacheNodesOffering struct { // provide more memory and computational power at lower cost when compared to their // equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -1505,15 +1554,16 @@ type ReservedCacheNodesOffering struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -1589,6 +1639,129 @@ type SecurityGroupMembership struct { noSmithyDocumentSerde } +// The resource representing a serverless cache. +type ServerlessCache struct { + + // The Amazon Resource Name (ARN) of the serverless cache. + ARN *string + + // The cache usage limit for the serverless cache. + CacheUsageLimits *CacheUsageLimits + + // When the serverless cache was created. + CreateTime *time.Time + + // The daily time that a cache snapshot will be created. Default is NULL, i.e. + // snapshots will not be created at a specific time on a daily basis. Available for + // Redis only. + DailySnapshotTime *string + + // A description of the serverless cache. + Description *string + + // Represents the information required for client programs to connect to a cache + // node. + Endpoint *Endpoint + + // The engine the serverless cache is compatible with. + Engine *string + + // The name and version number of the engine the serverless cache is compatible + // with. + FullEngineVersion *string + + // The ID of the Amazon Web Services Key Management Service (KMS) key that is used + // to encrypt data at rest in the serverless cache. + KmsKeyId *string + + // The version number of the engine the serverless cache is compatible with. + MajorEngineVersion *string + + // Represents the information required for client programs to connect to a cache + // node. + ReaderEndpoint *Endpoint + + // The IDs of the EC2 security groups associated with the serverless cache. + SecurityGroupIds []string + + // The unique identifier of the serverless cache. + ServerlessCacheName *string + + // The current setting for the number of serverless cache snapshots the system + // will retain. Available for Redis only. + SnapshotRetentionLimit *int32 + + // The current status of the serverless cache. The allowed values are CREATING, + // AVAILABLE, DELETING, CREATE-FAILED and MODIFYING. + Status *string + + // If no subnet IDs are given and your VPC is in SFO, then ElastiCache will select + // 2 default subnets across AZs in your VPC. For all other Regions, if no subnet + // IDs are given then ElastiCache will select 3 default subnets across AZs in your + // default VPC. + SubnetIds []string + + // The identifier of the user group associated with the serverless cache. + // Available for Redis only. Default is NULL. + UserGroupId *string + + noSmithyDocumentSerde +} + +// The configuration settings for a specific serverless cache. +type ServerlessCacheConfiguration struct { + + // The engine that the serverless cache is configured with. + Engine *string + + // The engine version number that the serverless cache is configured with. + MajorEngineVersion *string + + // The identifier of a serverless cache. + ServerlessCacheName *string + + noSmithyDocumentSerde +} + +// The resource representing a serverless cache snapshot. Available for Redis only. +type ServerlessCacheSnapshot struct { + + // The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for + // Redis only. + ARN *string + + // The total size of a serverless cache snapshot, in bytes. Available for Redis + // only. + BytesUsedForCache *string + + // The date and time that the source serverless cache's metadata and cache data + // set was obtained for the snapshot. Available for Redis only. + CreateTime *time.Time + + // The time that the serverless cache snapshot will expire. Available for Redis + // only. + ExpiryTime *time.Time + + // The ID of the Amazon Web Services Key Management Service (KMS) key of a + // serverless cache snapshot. Available for Redis only. + KmsKeyId *string + + // The configuration of the serverless cache, at the time the snapshot was taken. + // Available for Redis only. + ServerlessCacheConfiguration *ServerlessCacheConfiguration + + // The identifier of a serverless cache snapshot. Available for Redis only. + ServerlessCacheSnapshotName *string + + // The type of snapshot of serverless cache. Available for Redis only. + SnapshotType *string + + // The current status of the serverless cache. Available for Redis only. + Status *string + + noSmithyDocumentSerde +} + // An update that you can apply to your Redis clusters. type ServiceUpdate struct { @@ -1672,19 +1845,20 @@ type Snapshot struct { // current generation types provide more memory and computational power at lower // cost when compared to their equivalent previous generation counterparts. // - General purpose: - // - Current generation: M6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large - // , cache.m6g.xlarge , cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge - // , cache.m6g.12xlarge , cache.m6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // M5 node types: cache.m5.large , cache.m5.xlarge , cache.m5.2xlarge , - // cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 node types: - // cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , cache.m4.4xlarge , - // cache.m4.10xlarge T4g node types (available only for Redis engine version - // 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro , - // cache.t4g.small , cache.t4g.medium T3 node types: cache.t3.micro , - // cache.t3.small , cache.t3.medium T2 node types: cache.t2.micro , - // cache.t2.small , cache.t2.medium + // - Current generation: M7g node types: cache.m7g.large , cache.m7g.xlarge , + // cache.m7g.2xlarge , cache.m7g.4xlarge , cache.m7g.8xlarge , cache.m7g.12xlarge + // , cache.m7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // M6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.m6g.large , cache.m6g.xlarge , + // cache.m6g.2xlarge , cache.m6g.4xlarge , cache.m6g.8xlarge , cache.m6g.12xlarge + // , cache.m6g.16xlarge M5 node types: cache.m5.large , cache.m5.xlarge , + // cache.m5.2xlarge , cache.m5.4xlarge , cache.m5.12xlarge , cache.m5.24xlarge M4 + // node types: cache.m4.large , cache.m4.xlarge , cache.m4.2xlarge , + // cache.m4.4xlarge , cache.m4.10xlarge T4g node types (available only for Redis + // engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): + // cache.t4g.micro , cache.t4g.small , cache.t4g.medium T3 node types: + // cache.t3.micro , cache.t3.small , cache.t3.medium T2 node types: + // cache.t2.micro , cache.t2.small , cache.t2.medium // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) T1 // node types: cache.t1.micro M1 node types: cache.m1.small , cache.m1.medium , @@ -1695,15 +1869,16 @@ type Snapshot struct { // supported but creation of new clusters is not supported for these types.) C1 // node types: cache.c1.xlarge // - Memory optimized: - // - Current generation: R6g node types (available only for Redis engine version - // 5.0.6 onward and for Memcached engine version 1.5.16 onward). cache.r6g.large - // , cache.r6g.xlarge , cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge - // , cache.r6g.12xlarge , cache.r6g.16xlarge For region availability, see - // Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) - // R5 node types: cache.r5.large , cache.r5.xlarge , cache.r5.2xlarge , - // cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 node types: - // cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , cache.r4.4xlarge , - // cache.r4.8xlarge , cache.r4.16xlarge + // - Current generation: R7g node types: cache.r7g.large , cache.r7g.xlarge , + // cache.r7g.2xlarge , cache.r7g.4xlarge , cache.r7g.8xlarge , cache.r7g.12xlarge + // , cache.r7g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // R6g node types (available only for Redis engine version 5.0.6 onward and for + // Memcached engine version 1.5.16 onward): cache.r6g.large , cache.r6g.xlarge , + // cache.r6g.2xlarge , cache.r6g.4xlarge , cache.r6g.8xlarge , cache.r6g.12xlarge + // , cache.r6g.16xlarge R5 node types: cache.r5.large , cache.r5.xlarge , + // cache.r5.2xlarge , cache.r5.4xlarge , cache.r5.12xlarge , cache.r5.24xlarge R4 + // node types: cache.r4.large , cache.r4.xlarge , cache.r4.2xlarge , + // cache.r4.4xlarge , cache.r4.8xlarge , cache.r4.16xlarge // - Previous generation: (not recommended. Existing clusters are still // supported but creation of new clusters is not supported for these types.) M2 // node types: cache.m2.xlarge , cache.m2.2xlarge , cache.m2.4xlarge R3 node @@ -2009,6 +2184,10 @@ type UserGroup struct { // A list of replication groups that the user group can access. ReplicationGroups []string + // Indicates which serverless caches the specified user group is associated with. + // Available for Redis only. + ServerlessCaches []string + // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". Status *string diff --git a/service/elasticache/validators.go b/service/elasticache/validators.go index 9ce1807f6aa..738d9d4c853 100644 --- a/service/elasticache/validators.go +++ b/service/elasticache/validators.go @@ -110,6 +110,26 @@ func (m *validateOpCompleteMigration) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpCopyServerlessCacheSnapshot struct { +} + +func (*validateOpCopyServerlessCacheSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCopyServerlessCacheSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CopyServerlessCacheSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCopyServerlessCacheSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCopySnapshot struct { } @@ -250,6 +270,46 @@ func (m *validateOpCreateReplicationGroup) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpCreateServerlessCache struct { +} + +func (*validateOpCreateServerlessCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateServerlessCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateServerlessCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateServerlessCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateServerlessCacheSnapshot struct { +} + +func (*validateOpCreateServerlessCacheSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateServerlessCacheSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateServerlessCacheSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateServerlessCacheSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateSnapshot struct { } @@ -470,6 +530,46 @@ func (m *validateOpDeleteReplicationGroup) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpDeleteServerlessCache struct { +} + +func (*validateOpDeleteServerlessCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteServerlessCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteServerlessCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteServerlessCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteServerlessCacheSnapshot struct { +} + +func (*validateOpDeleteServerlessCacheSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteServerlessCacheSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteServerlessCacheSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteServerlessCacheSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteSnapshot struct { } @@ -610,6 +710,26 @@ func (m *validateOpDisassociateGlobalReplicationGroup) HandleInitialize(ctx cont return next.HandleInitialize(ctx, in) } +type validateOpExportServerlessCacheSnapshot struct { +} + +func (*validateOpExportServerlessCacheSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpExportServerlessCacheSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ExportServerlessCacheSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpExportServerlessCacheSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpFailoverGlobalReplicationGroup struct { } @@ -810,6 +930,26 @@ func (m *validateOpModifyReplicationGroupShardConfiguration) HandleInitialize(ct return next.HandleInitialize(ctx, in) } +type validateOpModifyServerlessCache struct { +} + +func (*validateOpModifyServerlessCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyServerlessCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyServerlessCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyServerlessCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyUserGroup struct { } @@ -1050,6 +1190,10 @@ func addOpCompleteMigrationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCompleteMigration{}, middleware.After) } +func addOpCopyServerlessCacheSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCopyServerlessCacheSnapshot{}, middleware.After) +} + func addOpCopySnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCopySnapshot{}, middleware.After) } @@ -1078,6 +1222,14 @@ func addOpCreateReplicationGroupValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpCreateReplicationGroup{}, middleware.After) } +func addOpCreateServerlessCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateServerlessCache{}, middleware.After) +} + +func addOpCreateServerlessCacheSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateServerlessCacheSnapshot{}, middleware.After) +} + func addOpCreateSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSnapshot{}, middleware.After) } @@ -1122,6 +1274,14 @@ func addOpDeleteReplicationGroupValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpDeleteReplicationGroup{}, middleware.After) } +func addOpDeleteServerlessCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteServerlessCache{}, middleware.After) +} + +func addOpDeleteServerlessCacheSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteServerlessCacheSnapshot{}, middleware.After) +} + func addOpDeleteSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSnapshot{}, middleware.After) } @@ -1150,6 +1310,10 @@ func addOpDisassociateGlobalReplicationGroupValidationMiddleware(stack *middlewa return stack.Initialize.Add(&validateOpDisassociateGlobalReplicationGroup{}, middleware.After) } +func addOpExportServerlessCacheSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpExportServerlessCacheSnapshot{}, middleware.After) +} + func addOpFailoverGlobalReplicationGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpFailoverGlobalReplicationGroup{}, middleware.After) } @@ -1190,6 +1354,10 @@ func addOpModifyReplicationGroupShardConfigurationValidationMiddleware(stack *mi return stack.Initialize.Add(&validateOpModifyReplicationGroupShardConfiguration{}, middleware.After) } +func addOpModifyServerlessCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyServerlessCache{}, middleware.After) +} + func addOpModifyUserGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyUserGroup{}, middleware.After) } @@ -1234,6 +1402,28 @@ func addOpTestMigrationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTestMigration{}, middleware.After) } +func validateCacheUsageLimits(v *types.CacheUsageLimits) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CacheUsageLimits"} + if v.DataStorage != nil { + if err := validateDataStorage(v.DataStorage); err != nil { + invalidParams.AddNested("DataStorage", err.(smithy.InvalidParamsError)) + } + } + if v.ECPUPerSecond != nil { + if err := validateECPUPerSecond(v.ECPUPerSecond); err != nil { + invalidParams.AddNested("ECPUPerSecond", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateConfigureShard(v *types.ConfigureShard) error { if v == nil { return nil @@ -1252,6 +1442,39 @@ func validateConfigureShard(v *types.ConfigureShard) error { } } +func validateDataStorage(v *types.DataStorage) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DataStorage"} + if v.Maximum == nil { + invalidParams.Add(smithy.NewErrParamRequired("Maximum")) + } + if len(v.Unit) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Unit")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateECPUPerSecond(v *types.ECPUPerSecond) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ECPUPerSecond"} + if v.Maximum == nil { + invalidParams.Add(smithy.NewErrParamRequired("Maximum")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateFilter(v *types.Filter) error { if v == nil { return nil @@ -1426,6 +1649,24 @@ func validateOpCompleteMigrationInput(v *CompleteMigrationInput) error { } } +func validateOpCopyServerlessCacheSnapshotInput(v *CopyServerlessCacheSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CopyServerlessCacheSnapshotInput"} + if v.SourceServerlessCacheSnapshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceServerlessCacheSnapshotName")) + } + if v.TargetServerlessCacheSnapshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetServerlessCacheSnapshotName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCopySnapshotInput(v *CopySnapshotInput) error { if v == nil { return nil @@ -1555,6 +1796,47 @@ func validateOpCreateReplicationGroupInput(v *CreateReplicationGroupInput) error } } +func validateOpCreateServerlessCacheInput(v *CreateServerlessCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateServerlessCacheInput"} + if v.ServerlessCacheName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheName")) + } + if v.Engine == nil { + invalidParams.Add(smithy.NewErrParamRequired("Engine")) + } + if v.CacheUsageLimits != nil { + if err := validateCacheUsageLimits(v.CacheUsageLimits); err != nil { + invalidParams.AddNested("CacheUsageLimits", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateServerlessCacheSnapshotInput(v *CreateServerlessCacheSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateServerlessCacheSnapshotInput"} + if v.ServerlessCacheSnapshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheSnapshotName")) + } + if v.ServerlessCacheName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateSnapshotInput(v *CreateSnapshotInput) error { if v == nil { return nil @@ -1749,6 +2031,36 @@ func validateOpDeleteReplicationGroupInput(v *DeleteReplicationGroupInput) error } } +func validateOpDeleteServerlessCacheInput(v *DeleteServerlessCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteServerlessCacheInput"} + if v.ServerlessCacheName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteServerlessCacheSnapshotInput(v *DeleteServerlessCacheSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteServerlessCacheSnapshotInput"} + if v.ServerlessCacheSnapshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheSnapshotName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteSnapshotInput(v *DeleteSnapshotInput) error { if v == nil { return nil @@ -1862,6 +2174,24 @@ func validateOpDisassociateGlobalReplicationGroupInput(v *DisassociateGlobalRepl } } +func validateOpExportServerlessCacheSnapshotInput(v *ExportServerlessCacheSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ExportServerlessCacheSnapshotInput"} + if v.ServerlessCacheSnapshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheSnapshotName")) + } + if v.S3BucketName == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3BucketName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpFailoverGlobalReplicationGroupInput(v *FailoverGlobalReplicationGroupInput) error { if v == nil { return nil @@ -2049,6 +2379,26 @@ func validateOpModifyReplicationGroupShardConfigurationInput(v *ModifyReplicatio } } +func validateOpModifyServerlessCacheInput(v *ModifyServerlessCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyServerlessCacheInput"} + if v.ServerlessCacheName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerlessCacheName")) + } + if v.CacheUsageLimits != nil { + if err := validateCacheUsageLimits(v.CacheUsageLimits); err != nil { + invalidParams.AddNested("CacheUsageLimits", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyUserGroupInput(v *ModifyUserGroupInput) error { if v == nil { return nil diff --git a/service/workspacesthinclient/internal/endpoints/endpoints.go b/service/workspacesthinclient/internal/endpoints/endpoints.go index 97f5c6bc454..0f5b791338f 100644 --- a/service/workspacesthinclient/internal/endpoints/endpoints.go +++ b/service/workspacesthinclient/internal/endpoints/endpoints.go @@ -138,6 +138,29 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "ap-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-cn",