diff --git a/.changelog/53f464fe0b8441648d9eb0b1e2d54398.json b/.changelog/53f464fe0b8441648d9eb0b1e2d54398.json new file mode 100644 index 00000000000..9364082b44e --- /dev/null +++ b/.changelog/53f464fe0b8441648d9eb0b1e2d54398.json @@ -0,0 +1,8 @@ +{ + "id": "53f464fe-0b84-4164-8d9e-b0b1e2d54398", + "type": "feature", + "description": "This release introduces Manage applications. This feature allows users to manage their WorkSpaces applications by associating or disassociating their WorkSpaces with applications. The DescribeWorkspaces API will now additionally return OperatingSystemName in its responses.", + "modules": [ + "service/workspaces" + ] +} \ No newline at end of file diff --git a/.changelog/98705f8a5784429296894bab770002f3.json b/.changelog/98705f8a5784429296894bab770002f3.json new file mode 100644 index 00000000000..4e6993a21d2 --- /dev/null +++ b/.changelog/98705f8a5784429296894bab770002f3.json @@ -0,0 +1,8 @@ +{ + "id": "98705f8a-5784-4292-9689-4bab770002f3", + "type": "feature", + "description": "Add SoftwareVersion to response of DescribeGatewayInformation.", + "modules": [ + "service/storagegateway" + ] +} \ No newline at end of file diff --git a/.changelog/c3c5b10df4004655bff02266b8e8142e.json b/.changelog/c3c5b10df4004655bff02266b8e8142e.json new file mode 100644 index 00000000000..5ceb25280ee --- /dev/null +++ b/.changelog/c3c5b10df4004655bff02266b8e8142e.json @@ -0,0 +1,8 @@ +{ + "id": "c3c5b10d-f400-4655-bff0-2266b8e8142e", + "type": "feature", + "description": "Add Etag Support for Omics Storage in ListReadSets and GetReadSetMetadata API", + "modules": [ + "service/omics" + ] +} \ No newline at end of file diff --git a/.changelog/c4d8b8a62fdc491aa0fd172d29d58bbc.json b/.changelog/c4d8b8a62fdc491aa0fd172d29d58bbc.json new file mode 100644 index 00000000000..d8420885988 --- /dev/null +++ b/.changelog/c4d8b8a62fdc491aa0fd172d29d58bbc.json @@ -0,0 +1,8 @@ +{ + "id": "c4d8b8a6-2fdc-491a-a0fd-172d29d58bbc", + "type": "documentation", + "description": "Updates Amazon RDS documentation for corrections and minor improvements.", + "modules": [ + "service/rds" + ] +} \ No newline at end of file diff --git a/.changelog/e426087b98754cc29d88a98d8efbcfa0.json b/.changelog/e426087b98754cc29d88a98d8efbcfa0.json new file mode 100644 index 00000000000..30d08ebf7e5 --- /dev/null +++ b/.changelog/e426087b98754cc29d88a98d8efbcfa0.json @@ -0,0 +1,8 @@ +{ + "id": "e426087b-9875-4cc2-9d88-a98d8efbcfa0", + "type": "feature", + "description": "Added new resource detail objects to ASFF, including resources for AwsEventsEventbus, AwsEventsEndpoint, AwsDmsEndpoint, AwsDmsReplicationTask, AwsDmsReplicationInstance, AwsRoute53HostedZone, and AwsMskCluster", + "modules": [ + "service/securityhub" + ] +} \ No newline at end of file diff --git a/.changelog/fe6cf68667d54e53b8c3c7473f475920.json b/.changelog/fe6cf68667d54e53b8c3c7473f475920.json new file mode 100644 index 00000000000..5ce2a768b40 --- /dev/null +++ b/.changelog/fe6cf68667d54e53b8c3c7473f475920.json @@ -0,0 +1,8 @@ +{ + "id": "fe6cf686-67d5-4e53-b8c3-c7473f475920", + "type": "feature", + "description": "Add hostedzonetype filter to ListHostedZones API.", + "modules": [ + "service/route53" + ] +} \ No newline at end of file diff --git a/service/bedrock/internal/endpoints/endpoints.go b/service/bedrock/internal/endpoints/endpoints.go index 3a06380b31e..8324d04ee59 100644 --- a/service/bedrock/internal/endpoints/endpoints.go +++ b/service/bedrock/internal/endpoints/endpoints.go @@ -145,6 +145,14 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "bedrock-ap-northeast-1", + }: endpoints.Endpoint{ + Hostname: "bedrock.ap-northeast-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-northeast-1", + }, + }, endpoints.EndpointKey{ Region: "bedrock-ap-southeast-1", }: endpoints.Endpoint{ @@ -169,6 +177,14 @@ var defaultPartitions = endpoints.Partitions{ Region: "us-west-2", }, }, + endpoints.EndpointKey{ + Region: "bedrock-runtime-ap-northeast-1", + }: endpoints.Endpoint{ + Hostname: "bedrock-runtime.ap-northeast-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-northeast-1", + }, + }, endpoints.EndpointKey{ Region: "bedrock-runtime-ap-southeast-1", }: endpoints.Endpoint{ diff --git a/service/datazone/internal/endpoints/endpoints.go b/service/datazone/internal/endpoints/endpoints.go index 36ee1f03cff..2fa184efced 100644 --- a/service/datazone/internal/endpoints/endpoints.go +++ b/service/datazone/internal/endpoints/endpoints.go @@ -149,6 +149,11 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "datazone.ap-east-1.api.aws", }, + endpoints.EndpointKey{ + Region: "ap-northeast-1", + }: endpoints.Endpoint{ + Hostname: "datazone.ap-northeast-1.api.aws", + }, endpoints.EndpointKey{ Region: "ap-northeast-2", }: endpoints.Endpoint{ @@ -169,6 +174,16 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "datazone.ap-south-2.api.aws", }, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{ + Hostname: "datazone.ap-southeast-1.api.aws", + }, + endpoints.EndpointKey{ + Region: "ap-southeast-2", + }: endpoints.Endpoint{ + Hostname: "datazone.ap-southeast-2.api.aws", + }, endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{ @@ -179,11 +194,32 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "datazone.ap-southeast-4.api.aws", }, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{ + Hostname: "datazone.ca-central-1.api.aws", + }, + endpoints.EndpointKey{ + Region: "ca-central-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datazone-fips.ca-central-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{ + Hostname: "datazone.eu-central-1.api.aws", + }, endpoints.EndpointKey{ Region: "eu-central-2", }: endpoints.Endpoint{ Hostname: "datazone.eu-central-2.api.aws", }, + endpoints.EndpointKey{ + Region: "eu-north-1", + }: endpoints.Endpoint{ + Hostname: "datazone.eu-north-1.api.aws", + }, endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{ @@ -194,6 +230,11 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "datazone.eu-south-2.api.aws", }, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{ + Hostname: "datazone.eu-west-1.api.aws", + }, endpoints.EndpointKey{ Region: "eu-west-2", }: endpoints.Endpoint{ @@ -219,11 +260,49 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "datazone.me-south-1.api.aws", }, + endpoints.EndpointKey{ + Region: "sa-east-1", + }: endpoints.Endpoint{ + Hostname: "datazone.sa-east-1.api.aws", + }, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{ + Hostname: "datazone.us-east-1.api.aws", + }, + endpoints.EndpointKey{ + Region: "us-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datazone-fips.us-east-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "us-east-2", + }: endpoints.Endpoint{ + Hostname: "datazone.us-east-2.api.aws", + }, + endpoints.EndpointKey{ + Region: "us-east-2", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datazone-fips.us-east-2.amazonaws.com", + }, endpoints.EndpointKey{ Region: "us-west-1", }: endpoints.Endpoint{ Hostname: "datazone.us-west-1.api.aws", }, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{ + Hostname: "datazone.us-west-2.api.aws", + }, + endpoints.EndpointKey{ + Region: "us-west-2", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datazone-fips.us-west-2.amazonaws.com", + }, }, }, { diff --git a/service/m2/internal/endpoints/endpoints.go b/service/m2/internal/endpoints/endpoints.go index 40cede2e5ec..3c77b065acc 100644 --- a/service/m2/internal/endpoints/endpoints.go +++ b/service/m2/internal/endpoints/endpoints.go @@ -384,5 +384,31 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-gov-east-1", + }: endpoints.Endpoint{ + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "fips-us-gov-west-1", + }: endpoints.Endpoint{ + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + Variant: endpoints.FIPSVariant, + }: {}, + endpoints.EndpointKey{ + Region: "us-gov-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-gov-west-1", + Variant: endpoints.FIPSVariant, + }: {}, + }, }, } diff --git a/service/omics/api_op_GetReadSetMetadata.go b/service/omics/api_op_GetReadSetMetadata.go index 3a926387645..a61a79e81bd 100644 --- a/service/omics/api_op_GetReadSetMetadata.go +++ b/service/omics/api_op_GetReadSetMetadata.go @@ -86,6 +86,10 @@ type GetReadSetMetadataOutput struct { // The read set's description. Description *string + // The entity tag (ETag) is a hash of the object meant to represent its semantic + // content. + Etag *types.ETag + // The read set's files. Files *types.ReadSetFiles diff --git a/service/omics/deserializers.go b/service/omics/deserializers.go index 554ecf2e9cf..bc3d9bc40c2 100644 --- a/service/omics/deserializers.go +++ b/service/omics/deserializers.go @@ -5973,6 +5973,11 @@ func awsRestjson1_deserializeOpDocumentGetReadSetMetadataOutput(v **GetReadSetMe sv.Description = ptr.String(jtv) } + case "etag": + if err := awsRestjson1_deserializeDocumentETag(&sv.Etag, value); err != nil { + return err + } + case "files": if err := awsRestjson1_deserializeDocumentReadSetFiles(&sv.Files, value); err != nil { return err @@ -16585,6 +16590,64 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } +func awsRestjson1_deserializeDocumentETag(v **types.ETag, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ETag + if *v == nil { + sv = &types.ETag{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "algorithm": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ETagAlgorithm to be of type string, got %T instead", value) + } + sv.Algorithm = types.ETagAlgorithm(jtv) + } + + case "source1": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Source1 = ptr.String(jtv) + } + + case "source2": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Source2 = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentExportReadSetDetail(v **types.ExportReadSetDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -18115,6 +18178,11 @@ func awsRestjson1_deserializeDocumentReadSetListItem(v **types.ReadSetListItem, sv.Description = ptr.String(jtv) } + case "etag": + if err := awsRestjson1_deserializeDocumentETag(&sv.Etag, value); err != nil { + return err + } + case "fileType": if value != nil { jtv, ok := value.(string) diff --git a/service/omics/types/enums.go b/service/omics/types/enums.go index f7fdf2fedce..43b3a72014c 100644 --- a/service/omics/types/enums.go +++ b/service/omics/types/enums.go @@ -90,6 +90,26 @@ func (EncryptionType) Values() []EncryptionType { } } +type ETagAlgorithm string + +// Enum values for ETagAlgorithm +const ( + ETagAlgorithmFastqMd5up ETagAlgorithm = "FASTQ_MD5up" + ETagAlgorithmBamMd5up ETagAlgorithm = "BAM_MD5up" + ETagAlgorithmCramMd5up ETagAlgorithm = "CRAM_MD5up" +) + +// Values returns all known values for ETagAlgorithm. 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 (ETagAlgorithm) Values() []ETagAlgorithm { + return []ETagAlgorithm{ + "FASTQ_MD5up", + "BAM_MD5up", + "CRAM_MD5up", + } +} + type FileType string // Enum values for FileType diff --git a/service/omics/types/types.go b/service/omics/types/types.go index 49d27167749..c92f64d35bd 100644 --- a/service/omics/types/types.go +++ b/service/omics/types/types.go @@ -296,6 +296,21 @@ type CompleteReadSetUploadPartListItem struct { noSmithyDocumentSerde } +// The entity tag (ETag) is a hash of the object representing its semantic content. +type ETag struct { + + // The algorithm used to calculate the read set’s ETag(s). + Algorithm ETagAlgorithm + + // The ETag hash calculated on Source1 of the read set. + Source1 *string + + // The ETag hash calculated on Source2 of the read set. + Source2 *string + + noSmithyDocumentSerde +} + // A read set. type ExportReadSet struct { @@ -853,6 +868,9 @@ type ReadSetListItem struct { // The read set's description. Description *string + // The entity tag (ETag) is a hash of the object representing its semantic content. + Etag *ETag + // The read set's name. Name *string diff --git a/service/rds/api_op_ApplyPendingMaintenanceAction.go b/service/rds/api_op_ApplyPendingMaintenanceAction.go index 10d7ec07fbe..32137ddfb12 100644 --- a/service/rds/api_op_ApplyPendingMaintenanceAction.go +++ b/service/rds/api_op_ApplyPendingMaintenanceAction.go @@ -35,14 +35,14 @@ func (c *Client) ApplyPendingMaintenanceAction(ctx context.Context, params *Appl type ApplyPendingMaintenanceActionInput struct { - // The pending maintenance action to apply to this resource. Valid values: + // The pending maintenance action to apply to this resource. Valid Values: // system-update , db-upgrade , hardware-maintenance , ca-certificate-rotation // // This member is required. ApplyAction *string // A value that specifies the type of opt-in request, or undoes an opt-in request. - // An opt-in request of type immediate can't be undone. Valid values: + // An opt-in request of type immediate can't be undone. Valid Values: // - immediate - Apply the maintenance action immediately. // - next-maintenance - Apply the maintenance action during the next maintenance // window for the resource. diff --git a/service/rds/api_op_BacktrackDBCluster.go b/service/rds/api_op_BacktrackDBCluster.go index e4f3519cc37..ea5c2fef8ff 100644 --- a/service/rds/api_op_BacktrackDBCluster.go +++ b/service/rds/api_op_BacktrackDBCluster.go @@ -59,14 +59,14 @@ type BacktrackDBClusterInput struct { // This member is required. DBClusterIdentifier *string - // A value that indicates whether to force the DB cluster to backtrack when binary - // logging is enabled. Otherwise, an error occurs when binary logging is enabled. + // Specifies whether to force the DB cluster to backtrack when binary logging is + // enabled. Otherwise, an error occurs when binary logging is enabled. Force *bool - // A value that indicates whether to backtrack the DB cluster to the earliest - // possible backtrack time when BacktrackTo is set to a timestamp earlier than the - // earliest backtrack time. When this parameter is disabled and BacktrackTo is set - // to a timestamp earlier than the earliest backtrack time, an error occurs. + // Specifies whether to backtrack the DB cluster to the earliest possible + // backtrack time when BacktrackTo is set to a timestamp earlier than the earliest + // backtrack time. When this parameter is disabled and BacktrackTo is set to a + // timestamp earlier than the earliest backtrack time, an error occurs. UseEarliestTimeOnPointInTimeUnavailable *bool noSmithyDocumentSerde diff --git a/service/rds/api_op_CancelExportTask.go b/service/rds/api_op_CancelExportTask.go index c3266d0ac92..aa1a5180cac 100644 --- a/service/rds/api_op_CancelExportTask.go +++ b/service/rds/api_op_CancelExportTask.go @@ -46,10 +46,10 @@ type CancelExportTaskInput struct { } // Contains the details of a snapshot or cluster export to Amazon S3. This data -// type is used as a response element in the DescribeExportTasks action. +// type is used as a response element in the DescribeExportTasks operation. type CancelExportTaskOutput struct { - // The data exported from the snapshot or cluster. Valid values are the following: + // The data exported from the snapshot or cluster. Valid Values: // - database - Export all the data from a specified database. // - database.table table-name - Export a table of the snapshot or cluster. This // format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. @@ -80,13 +80,13 @@ type CancelExportTaskOutput struct { // The progress of the snapshot or cluster export task as a percentage. PercentProgress int32 - // The Amazon S3 bucket that the snapshot or cluster is exported to. + // The Amazon S3 bucket where the snapshot or cluster is exported to. S3Bucket *string // The Amazon S3 bucket prefix that is the file name and path of the exported data. S3Prefix *string - // The time that the snapshot was created. + // The time when the snapshot was created. SnapshotTime *time.Time // The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. @@ -104,10 +104,10 @@ type CancelExportTaskOutput struct { // - STARTING Status *string - // The time that the snapshot or cluster export task ended. + // The time when the snapshot or cluster export task ended. TaskEndTime *time.Time - // The time that the snapshot or cluster export task started. + // The time when the snapshot or cluster export task started. TaskStartTime *time.Time // The total amount of data exported, in gigabytes. diff --git a/service/rds/api_op_CopyDBClusterSnapshot.go b/service/rds/api_op_CopyDBClusterSnapshot.go index 8386bde6d7d..55e88d19ac2 100644 --- a/service/rds/api_op_CopyDBClusterSnapshot.go +++ b/service/rds/api_op_CopyDBClusterSnapshot.go @@ -87,8 +87,8 @@ type CopyDBClusterSnapshotInput struct { // This member is required. TargetDBClusterSnapshotIdentifier *string - // A value that indicates whether to copy all tags from the source DB cluster - // snapshot to the target DB cluster snapshot. By default, tags are not copied. + // Specifies whether to copy all tags from the source DB cluster snapshot to the + // target DB cluster snapshot. By default, tags are not copied. CopyTags *bool // The Amazon Web Services KMS key identifier for an encrypted DB cluster diff --git a/service/rds/api_op_CopyDBSnapshot.go b/service/rds/api_op_CopyDBSnapshot.go index 8658afbb5f5..4033ff5f6c1 100644 --- a/service/rds/api_op_CopyDBSnapshot.go +++ b/service/rds/api_op_CopyDBSnapshot.go @@ -68,14 +68,14 @@ type CopyDBSnapshotInput struct { // This member is required. TargetDBSnapshotIdentifier *string - // A value that indicates whether to copy the DB option group associated with the - // source DB snapshot to the target Amazon Web Services account and associate with - // the target DB snapshot. The associated option group can be copied only with - // cross-account snapshot copy calls. + // Specifies whether to copy the DB option group associated with the source DB + // snapshot to the target Amazon Web Services account and associate with the target + // DB snapshot. The associated option group can be copied only with cross-account + // snapshot copy calls. CopyOptionGroup *bool - // A value that indicates whether to copy all tags from the source DB snapshot to - // the target DB snapshot. By default, tags aren't copied. + // Specifies whether to copy all tags from the source DB snapshot to the target DB + // snapshot. By default, tags aren't copied. CopyTags *bool // The Amazon Web Services KMS key identifier for an encrypted DB snapshot. The diff --git a/service/rds/api_op_CreateCustomDBEngineVersion.go b/service/rds/api_op_CreateCustomDBEngineVersion.go index e044dd90ea2..d3c7eac1a48 100644 --- a/service/rds/api_op_CreateCustomDBEngineVersion.go +++ b/service/rds/api_op_CreateCustomDBEngineVersion.go @@ -204,30 +204,29 @@ type CreateCustomDBEngineVersionOutput struct { // the CreateDBInstance action. SupportedTimezones []types.Timezone - // A value that indicates whether the engine version supports Babelfish for Aurora - // PostgreSQL. + // Indicates whether the engine version supports Babelfish for Aurora PostgreSQL. SupportsBabelfish bool - // A value that indicates whether the engine version supports rotating the server - // certificate without rebooting the DB instance. + // Indicates whether the engine version supports rotating the server certificate + // without rebooting the DB instance. SupportsCertificateRotationWithoutRestart *bool - // A value that indicates whether you can use Aurora global databases with a - // specific DB engine version. + // Indicates whether you can use Aurora global databases with a specific DB engine + // version. SupportsGlobalDatabases bool - // A value that indicates whether the DB engine version supports forwarding write - // operations from reader DB instances to the writer DB instance in the DB cluster. - // By default, write operations aren't allowed on reader DB instances. Valid for: + // Indicates whether the DB engine version supports forwarding write operations + // from reader DB instances to the writer DB instance in the DB cluster. By + // default, write operations aren't allowed on reader DB instances. Valid for: // Aurora DB clusters only SupportsLocalWriteForwarding *bool - // A value that indicates whether the engine version supports exporting the log - // types specified by ExportableLogTypes to CloudWatch Logs. + // Indicates whether the engine version supports exporting the log types specified + // by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool - // A value that indicates whether you can use Aurora parallel query with a - // specific DB engine version. + // Indicates whether you can use Aurora parallel query with a specific DB engine + // version. SupportsParallelQuery bool // Indicates whether the database engine version supports read replicas. diff --git a/service/rds/api_op_CreateDBInstance.go b/service/rds/api_op_CreateDBInstance.go index 7a42fc046ad..c829da6ca33 100644 --- a/service/rds/api_op_CreateDBInstance.go +++ b/service/rds/api_op_CreateDBInstance.go @@ -453,7 +453,9 @@ type CreateDBInstanceInput struct { // DB instances. The password for the master user is managed by the DB cluster. // Constraints: // - Can't be specified if ManageMasterUserPassword is turned on. - // - Can include any printable ASCII character except "/", """, or "@". + // - Can include any printable ASCII character except "/", """, or "@". For RDS + // for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) + // character. // Length Constraints: // - RDS for MariaDB - Must contain from 8 to 41 characters. // - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. diff --git a/service/rds/api_op_CreateDBInstanceReadReplica.go b/service/rds/api_op_CreateDBInstanceReadReplica.go index 54545cd973d..90d6f0ee827 100644 --- a/service/rds/api_op_CreateDBInstanceReadReplica.go +++ b/service/rds/api_op_CreateDBInstanceReadReplica.go @@ -23,9 +23,9 @@ import ( // replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more // information, see Working with read replicas (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html) // and Migrating from a Multi-AZ DB cluster to a DB instance using a read replica (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html#multi-az-db-clusters-migrating-to-instance-with-read-replica) -// in the Amazon RDS User Guide. Amazon Aurora doesn't support this operation. Call -// the CreateDBInstance operation to create a DB instance for an Aurora DB -// cluster. All read replica DB instances are created with backups disabled. All +// in the Amazon RDS User Guide. Amazon Aurora doesn't support this operation. To +// create a DB instance for an Aurora DB cluster, use the CreateDBInstance +// operation. All read replica DB instances are created with backups disabled. All // other attributes (including DB security groups and DB parameter groups) are // inherited from the source DB instance or cluster, except as specified. Your // source DB instance or cluster must have backup retention enabled. @@ -59,9 +59,9 @@ type CreateDBInstanceReadReplicaInput struct { // succeed. You can also allocate additional storage for future growth. AllocatedStorage *int32 - // A value that indicates whether minor engine upgrades are applied automatically - // to the read replica during the maintenance window. This setting doesn't apply to - // RDS Custom. Default: Inherits from the source DB instance + // Specifies whether to automatically apply minor engine upgrades to the read + // replica during the maintenance window. This setting doesn't apply to RDS Custom + // DB instances. Default: Inherits the value from the source DB instance. AutoMinorVersionUpgrade *bool // The Availability Zone (AZ) where the read replica will be created. Default: A @@ -69,8 +69,8 @@ type CreateDBInstanceReadReplicaInput struct { // Region. Example: us-east-1d AvailabilityZone *string - // A value that indicates whether to copy all tags from the read replica to - // snapshots of the read replica. By default, tags are not copied. + // Specifies whether to copy all tags from the read replica to snapshots of the + // read replica. By default, tags aren't copied. CopyTagsToSnapshot *bool // The instance profile associated with the underlying Amazon EC2 instance of an @@ -83,35 +83,39 @@ type CreateDBInstanceReadReplicaInput struct { // the prefix AWSRDSCustom . // For the list of permissions required for the IAM role, see Configure IAM and // your VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) - // in the Amazon RDS User Guide. This setting is required for RDS Custom. + // in the Amazon RDS User Guide. This setting is required for RDS Custom DB + // instances. CustomIamInstanceProfile *string // The compute and memory capacity of the read replica, for example db.m4.large. // Not all DB instance classes are available in all Amazon Web Services Regions, or // for all database engines. For the full list of DB instance classes, and // availability for your engine, see DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - // in the Amazon RDS User Guide. Default: Inherits from the source DB instance. + // in the Amazon RDS User Guide. Default: Inherits the value from the source DB + // instance. DBInstanceClass *string // The name of the DB parameter group to associate with this DB instance. If you - // do not specify a value for DBParameterGroupName , then Amazon RDS uses the - // DBParameterGroup of source DB instance for a same Region read replica, or the - // default DBParameterGroup for the specified DB engine for a cross-Region read - // replica. Specifying a parameter group for this operation is only supported for - // MySQL and Oracle DB instances. It isn't supported for RDS Custom. Constraints: + // don't specify a value for DBParameterGroupName , then Amazon RDS uses the + // DBParameterGroup of the source DB instance for a same Region read replica, or + // the default DBParameterGroup for the specified DB engine for a cross-Region + // read replica. Specifying a parameter group for this operation is only supported + // for MySQL DB instances for cross-Region read replicas and for Oracle DB + // instances. It isn't supported for MySQL DB instances for same Region read + // replicas or for RDS Custom. Constraints: // - Must be 1 to 255 letters, numbers, or hyphens. - // - First character must be a letter - // - Can't end with a hyphen or contain two consecutive hyphens + // - First character must be a letter. + // - Can't end with a hyphen or contain two consecutive hyphens. DBParameterGroupName *string - // Specifies a DB subnet group for the DB instance. The new DB instance is created - // in the VPC associated with the DB subnet group. If no DB subnet group is - // specified, then the new DB instance isn't created in a VPC. Constraints: - // - If supplied, must match the name of an existing DBSubnetGroup. + // A DB subnet group for the DB instance. The new DB instance is created in the + // VPC associated with the DB subnet group. If no DB subnet group is specified, + // then the new DB instance isn't created in a VPC. Constraints: + // - If supplied, must match the name of an existing DB subnet group. // - The specified DB subnet group must be in the same Amazon Web Services // Region in which the operation is running. // - All read replicas in one Amazon Web Services Region that are created from - // the same source DB instance must either:> + // the same source DB instance must either: // - Specify DB subnet groups from the same VPC. All these read replicas are // created in the same VPC. // - Not specify a DB subnet group. All these read replicas are created outside @@ -119,8 +123,8 @@ type CreateDBInstanceReadReplicaInput struct { // Example: mydbsubnetgroup DBSubnetGroupName *string - // A value that indicates whether the DB instance has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB instance. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. For more information, see Deleting a DB // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) // . @@ -129,7 +133,8 @@ type CreateDBInstanceReadReplicaInput struct { // The Active Directory directory ID to create the DB instance in. Currently, only // MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created // in an Active Directory Domain. For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) - // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. + // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB + // instances. Domain *string // The ARN for the Secrets Manager secret with the credentials for the user @@ -151,8 +156,8 @@ type CreateDBInstanceReadReplicaInput struct { // Example: mymanagedADtest.mymanagedAD.mydomain DomainFqdn *string - // The name of the IAM role to be used when making API calls to the Directory - // Service. This setting doesn't apply to RDS Custom. + // The name of the IAM role to use when making API calls to the Directory Service. + // This setting doesn't apply to RDS Custom DB instances. DomainIAMRoleName *string // The Active Directory organizational unit for your DB instance to join. @@ -165,14 +170,15 @@ type CreateDBInstanceReadReplicaInput struct { // The list of logs that the new DB instance is to export to CloudWatch Logs. The // values in the list depend on the DB engine being used. For more information, see // Publishing Database Logs to Amazon CloudWatch Logs (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) - // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. + // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB + // instances. EnableCloudwatchLogsExports []string - // A value that indicates whether to enable a customer-owned IP address (CoIP) for - // an RDS on Outposts read replica. A CoIP provides local or external connectivity - // to resources in your Outpost subnets through your on-premises network. For some - // use cases, a CoIP can provide lower latency for connections to the read replica - // from outside of its virtual private cloud (VPC) on your local network. For more + // Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on + // Outposts read replica. A CoIP provides local or external connectivity to + // resources in your Outpost subnets through your on-premises network. For some use + // cases, a CoIP can provide lower latency for connections to the read replica from + // outside of its virtual private cloud (VPC) on your local network. For more // information about RDS on Outposts, see Working with Amazon RDS on Amazon Web // Services Outposts (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) // in the Amazon RDS User Guide. For more information about CoIPs, see @@ -180,20 +186,22 @@ type CreateDBInstanceReadReplicaInput struct { // in the Amazon Web Services Outposts User Guide. EnableCustomerOwnedIp *bool - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping isn't enabled. For more information about IAM database authentication, - // see IAM Database Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping isn't + // enabled. For more information about IAM database authentication, see IAM + // Database Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB + // instances. EnableIAMDatabaseAuthentication *bool - // A value that indicates whether to enable Performance Insights for the read - // replica. For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) - // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. + // Specifies whether to enable Performance Insights for the read replica. For more + // information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom DB + // instances. EnablePerformanceInsights *bool - // The amount of Provisioned IOPS (input/output operations per second) to be - // initially allocated for the DB instance. + // The amount of Provisioned IOPS (input/output operations per second) to + // initially allocate for the DB instance. Iops *int32 // The Amazon Web Services KMS key identifier for an encrypted read replica. The @@ -220,10 +228,11 @@ type CreateDBInstanceReadReplicaInput struct { MaxAllocatedStorage *int32 // The interval, in seconds, between points when Enhanced Monitoring metrics are - // collected for the read replica. To disable collecting Enhanced Monitoring - // metrics, specify 0. The default is 0. If MonitoringRoleArn is specified, then - // you must also set MonitoringInterval to a value other than 0. This setting - // doesn't apply to RDS Custom. Valid Values: 0, 1, 5, 10, 15, 30, 60 + // collected for the read replica. To disable collection of Enhanced Monitoring + // metrics, specify 0 . The default is 0 . If MonitoringRoleArn is specified, then + // you must set MonitoringInterval to a value other than 0 . This setting doesn't + // apply to RDS Custom DB instances. Valid Values: 0, 1, 5, 10, 15, 30, 60 + // Default: 0 MonitoringInterval *int32 // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics @@ -232,18 +241,18 @@ type CreateDBInstanceReadReplicaInput struct { // Amazon RDS Enhanced Monitoring (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole) // in the Amazon RDS User Guide. If MonitoringInterval is set to a value other // than 0, then you must supply a MonitoringRoleArn value. This setting doesn't - // apply to RDS Custom. + // apply to RDS Custom DB instances. MonitoringRoleArn *string - // A value that indicates whether the read replica is in a Multi-AZ deployment. - // You can create a read replica as a Multi-AZ DB instance. RDS creates a standby - // of your replica in another Availability Zone for failover support for the - // replica. Creating your read replica as a Multi-AZ DB instance is independent of - // whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster. This - // setting doesn't apply to RDS Custom. + // Specifies whether the read replica is in a Multi-AZ deployment. You can create + // a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica + // in another Availability Zone for failover support for the replica. Creating your + // read replica as a Multi-AZ DB instance is independent of whether the source is a + // Multi-AZ DB instance or a Multi-AZ DB cluster. This setting doesn't apply to RDS + // Custom DB instances. MultiAZ *bool - // The network type of the DB instance. Valid values: + // The network type of the DB instance. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for read replica. @@ -253,10 +262,10 @@ type CreateDBInstanceReadReplicaInput struct { // in the Amazon RDS User Guide. NetworkType *string - // The option group the DB instance is associated with. If omitted, the option - // group associated with the source instance or cluster is used. For SQL Server, - // you must use the option group associated with the source. This setting doesn't - // apply to RDS Custom. + // The option group to associate the DB instance with. If not specified, RDS uses + // the option group associated with the source DB instance or cluster. For SQL + // Server, you must use the option group associated with the source. This setting + // doesn't apply to RDS Custom DB instances. OptionGroupName *string // The Amazon Web Services KMS key identifier for encryption of Performance @@ -265,25 +274,21 @@ type CreateDBInstanceReadReplicaInput struct { // PerformanceInsightsKMSKeyId , then Amazon RDS uses your default KMS key. There // is a default KMS key for your Amazon Web Services account. Your Amazon Web // Services account has a different default KMS key for each Amazon Web Services - // Region. This setting doesn't apply to RDS Custom. + // Region. This setting doesn't apply to RDS Custom DB instances. PerformanceInsightsKMSKeyId *string - // The number of days to retain Performance Insights data. The default is 7 days. - // The following values are valid: + // The number of days to retain Performance Insights data. This setting doesn't + // apply to RDS Custom DB instances. Valid Values: // - 7 - // - month * 31, where month is a number of months from 1-23 + // - month * 31, where month is a number of months from 1-23. Examples: 93 (3 + // months * 31), 341 (11 months * 31), 589 (19 months * 31) // - 731 - // For example, the following values are valid: - // - 93 (3 months * 31) - // - 341 (11 months * 31) - // - 589 (19 months * 31) - // - 731 - // If you specify a retention period such as 94, which isn't a valid value, RDS - // issues an error. This setting doesn't apply to RDS Custom. + // Default: 7 days If you specify a retention period that isn't valid, such as 94 , + // Amazon RDS returns an error. PerformanceInsightsRetentionPeriod *int32 - // The port number that the DB instance uses for connections. Default: Inherits - // from the source DB instance Valid Values: 1150-65535 + // The port number that the DB instance uses for connections. Valid Values: + // 1150-65535 Default: Inherits the value from the source DB instance. Port *int32 // When you are creating a read replica from one Amazon Web Services GovCloud (US) @@ -334,22 +339,22 @@ type CreateDBInstanceReadReplicaInput struct { // request for the operation that can run in the source Amazon Web Services Region. // SourceRegion isn't supported for SQL Server, because Amazon RDS for SQL Server // doesn't support cross-Region read replicas. This setting doesn't apply to RDS - // Custom. + // Custom DB instances. PreSignedUrl *string // The number of CPU cores and the number of threads per core for the DB instance - // class of the DB instance. This setting doesn't apply to RDS Custom. + // class of the DB instance. This setting doesn't apply to RDS Custom DB instances. ProcessorFeatures []types.ProcessorFeature - // A value that indicates whether the DB instance is publicly accessible. When the - // DB cluster is publicly accessible, its Domain Name System (DNS) endpoint - // resolves to the private IP address from within the DB cluster's virtual private - // cloud (VPC). It resolves to the public IP address from outside of the DB - // cluster's VPC. Access to the DB cluster is ultimately controlled by the security - // group it uses. That public access isn't permitted if the security group assigned - // to the DB cluster doesn't permit it. When the DB instance isn't publicly - // accessible, it is an internal DB instance with a DNS name that resolves to a - // private IP address. For more information, see CreateDBInstance . + // Specifies whether the DB instance is publicly accessible. When the DB cluster + // is publicly accessible, its Domain Name System (DNS) endpoint resolves to the + // private IP address from within the DB cluster's virtual private cloud (VPC). It + // resolves to the public IP address from outside of the DB cluster's VPC. Access + // to the DB cluster is ultimately controlled by the security group it uses. That + // public access isn't permitted if the security group assigned to the DB cluster + // doesn't permit it. When the DB instance isn't publicly accessible, it is an + // internal DB instance with a DNS name that resolves to a private IP address. For + // more information, see CreateDBInstance . PubliclyAccessible *bool // The open mode of the replica database: mounted or read-only. This parameter is @@ -406,26 +411,25 @@ type CreateDBInstanceReadReplicaInput struct { SourceRegion *string // Specifies the storage throughput value for the read replica. This setting - // doesn't apply to RDS Custom or Amazon Aurora. + // doesn't apply to RDS Custom or Amazon Aurora DB instances. StorageThroughput *int32 - // Specifies the storage type to be associated with the read replica. Valid - // values: gp2 | gp3 | io1 | standard If you specify io1 or gp3 , you must also - // include a value for the Iops parameter. Default: io1 if the Iops parameter is - // specified, otherwise gp2 + // The storage type to associate with the read replica. If you specify io1 or gp3 , + // you must also include a value for the Iops parameter. Valid Values: gp2 | gp3 | + // io1 | standard Default: io1 if the Iops parameter is specified. Otherwise, gp2 . StorageType *string // A list of tags. For more information, see Tagging Amazon RDS Resources (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) // in the Amazon RDS User Guide. Tags []types.Tag - // A value that indicates whether the DB instance class of the DB instance uses - // its default processor features. This setting doesn't apply to RDS Custom. + // Specifies whether the DB instance class of the DB instance uses its default + // processor features. This setting doesn't apply to RDS Custom DB instances. UseDefaultProcessorFeatures *bool // A list of Amazon EC2 VPC security groups to associate with the read replica. - // This setting doesn't apply to RDS Custom. Default: The default EC2 VPC security - // group for the DB subnet group's VPC. + // This setting doesn't apply to RDS Custom DB instances. Default: The default EC2 + // VPC security group for the DB subnet group's VPC. VpcSecurityGroupIds []string // Used by the SDK's PresignURL autofill customization to specify the region the diff --git a/service/rds/api_op_CreateDBProxy.go b/service/rds/api_op_CreateDBProxy.go index d851f151b29..0c56cc8d015 100644 --- a/service/rds/api_op_CreateDBProxy.go +++ b/service/rds/api_op_CreateDBProxy.go @@ -68,13 +68,13 @@ type CreateDBProxyInput struct { // This member is required. VpcSubnetIds []string - // Whether the proxy includes detailed information about SQL statements in its - // logs. This information helps you to debug issues involving SQL behavior or the - // performance and scalability of the proxy connections. The debug information - // includes the text of SQL statements that you submit through the proxy. Thus, - // only enable this setting when needed for debugging, and only when you have - // security measures in place to safeguard any sensitive information that appears - // in the logs. + // Specifies whether the proxy includes detailed information about SQL statements + // in its logs. This information helps you to debug issues involving SQL behavior + // or the performance and scalability of the proxy connections. The debug + // information includes the text of SQL statements that you submit through the + // proxy. Thus, only enable this setting when needed for debugging, and only when + // you have security measures in place to safeguard any sensitive information that + // appears in the logs. DebugLogging bool // The number of seconds that a connection to the proxy can be inactive before the @@ -82,9 +82,9 @@ type CreateDBProxyInput struct { // timeout limit for the associated database. IdleClientTimeout *int32 - // A Boolean parameter that specifies whether Transport Layer Security (TLS) - // encryption is required for connections to the proxy. By enabling this setting, - // you can enforce encrypted TLS connections to the proxy. + // Specifies whether Transport Layer Security (TLS) encryption is required for + // connections to the proxy. By enabling this setting, you can enforce encrypted + // TLS connections to the proxy. RequireTLS bool // An optional set of key-value pairs to associate arbitrary data of your choosing diff --git a/service/rds/api_op_CreateDBProxyEndpoint.go b/service/rds/api_op_CreateDBProxyEndpoint.go index 44097105573..9324b47a014 100644 --- a/service/rds/api_op_CreateDBProxyEndpoint.go +++ b/service/rds/api_op_CreateDBProxyEndpoint.go @@ -57,9 +57,9 @@ type CreateDBProxyEndpointInput struct { // in the Amazon RDS User Guide. Tags []types.Tag - // A value that indicates whether the DB proxy endpoint can be used for read/write - // or read-only operations. The default is READ_WRITE . The only role that proxies - // for RDS for Microsoft SQL Server support is READ_WRITE . + // The role of the DB proxy endpoint. The role determines whether the endpoint can + // be used for read/write or only read operations. The default is READ_WRITE . The + // only role that proxies for RDS for Microsoft SQL Server support is READ_WRITE . TargetRole types.DBProxyEndpointTargetRole // The VPC security group IDs for the DB proxy endpoint that you create. You can diff --git a/service/rds/api_op_CreateEventSubscription.go b/service/rds/api_op_CreateEventSubscription.go index 3dfb8c97c72..0ec8d945659 100644 --- a/service/rds/api_op_CreateEventSubscription.go +++ b/service/rds/api_op_CreateEventSubscription.go @@ -65,9 +65,8 @@ type CreateEventSubscriptionInput struct { // This member is required. SubscriptionName *string - // A value that indicates whether to activate the subscription. If the event - // notification subscription isn't activated, the subscription is created but not - // active. + // Specifies whether to activate the subscription. If the event notification + // subscription isn't activated, the subscription is created but not active. Enabled *bool // A list of event categories for a particular source type ( SourceType ) that you @@ -101,7 +100,7 @@ type CreateEventSubscriptionInput struct { // The type of source that is generating the events. For example, if you want to // be notified of events generated by a DB instance, you set this parameter to // db-instance . For RDS Proxy events, specify db-proxy . If this value isn't - // specified, all events are returned. Valid values: db-instance | db-cluster | + // specified, all events are returned. Valid Values: db-instance | db-cluster | // db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | // db-proxy SourceType *string diff --git a/service/rds/api_op_DeleteCustomDBEngineVersion.go b/service/rds/api_op_DeleteCustomDBEngineVersion.go index 544bed0c412..bcb65288f67 100644 --- a/service/rds/api_op_DeleteCustomDBEngineVersion.go +++ b/service/rds/api_op_DeleteCustomDBEngineVersion.go @@ -162,30 +162,29 @@ type DeleteCustomDBEngineVersionOutput struct { // the CreateDBInstance action. SupportedTimezones []types.Timezone - // A value that indicates whether the engine version supports Babelfish for Aurora - // PostgreSQL. + // Indicates whether the engine version supports Babelfish for Aurora PostgreSQL. SupportsBabelfish bool - // A value that indicates whether the engine version supports rotating the server - // certificate without rebooting the DB instance. + // Indicates whether the engine version supports rotating the server certificate + // without rebooting the DB instance. SupportsCertificateRotationWithoutRestart *bool - // A value that indicates whether you can use Aurora global databases with a - // specific DB engine version. + // Indicates whether you can use Aurora global databases with a specific DB engine + // version. SupportsGlobalDatabases bool - // A value that indicates whether the DB engine version supports forwarding write - // operations from reader DB instances to the writer DB instance in the DB cluster. - // By default, write operations aren't allowed on reader DB instances. Valid for: + // Indicates whether the DB engine version supports forwarding write operations + // from reader DB instances to the writer DB instance in the DB cluster. By + // default, write operations aren't allowed on reader DB instances. Valid for: // Aurora DB clusters only SupportsLocalWriteForwarding *bool - // A value that indicates whether the engine version supports exporting the log - // types specified by ExportableLogTypes to CloudWatch Logs. + // Indicates whether the engine version supports exporting the log types specified + // by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool - // A value that indicates whether you can use Aurora parallel query with a - // specific DB engine version. + // Indicates whether you can use Aurora parallel query with a specific DB engine + // version. SupportsParallelQuery bool // Indicates whether the database engine version supports read replicas. diff --git a/service/rds/api_op_DeleteDBCluster.go b/service/rds/api_op_DeleteDBCluster.go index c2065102382..f6832150729 100644 --- a/service/rds/api_op_DeleteDBCluster.go +++ b/service/rds/api_op_DeleteDBCluster.go @@ -49,9 +49,9 @@ type DeleteDBClusterInput struct { // This member is required. DBClusterIdentifier *string - // A value that indicates whether to remove automated backups immediately after - // the DB cluster is deleted. This parameter isn't case-sensitive. The default is - // to remove automated backups immediately after the DB cluster is deleted. + // Specifies whether to remove automated backups immediately after the DB cluster + // is deleted. This parameter isn't case-sensitive. The default is to remove + // automated backups immediately after the DB cluster is deleted. DeleteAutomatedBackups *bool // The DB cluster snapshot identifier of the new DB cluster snapshot created when @@ -63,12 +63,12 @@ type DeleteDBClusterInput struct { // - Can't end with a hyphen or contain two consecutive hyphens FinalDBSnapshotIdentifier *string - // A value that indicates whether to skip the creation of a final DB cluster - // snapshot before the DB cluster is deleted. If skip is specified, no DB cluster - // snapshot is created. If skip isn't specified, a DB cluster snapshot is created - // before the DB cluster is deleted. By default, skip isn't specified, and the DB - // cluster snapshot is created. By default, this parameter is disabled. You must - // specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled. + // Specifies whether to skip the creation of a final DB cluster snapshot before + // the DB cluster is deleted. If skip is specified, no DB cluster snapshot is + // created. If skip isn't specified, a DB cluster snapshot is created before the DB + // cluster is deleted. By default, skip isn't specified, and the DB cluster + // snapshot is created. By default, this parameter is disabled. You must specify a + // FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled. SkipFinalSnapshot bool noSmithyDocumentSerde diff --git a/service/rds/api_op_DeleteDBInstance.go b/service/rds/api_op_DeleteDBInstance.go index acbaebd151f..003b25a69dd 100644 --- a/service/rds/api_op_DeleteDBInstance.go +++ b/service/rds/api_op_DeleteDBInstance.go @@ -16,25 +16,28 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The DeleteDBInstance action deletes a previously provisioned DB instance. When -// you delete a DB instance, all automated backups for that instance are deleted -// and can't be recovered. Manual DB snapshots of the DB instance to be deleted by -// DeleteDBInstance are not deleted. If you request a final DB snapshot the status -// of the Amazon RDS DB instance is deleting until the DB snapshot is created. The -// API action DescribeDBInstance is used to monitor the status of this operation. -// The action can't be canceled or reverted once submitted. When a DB instance is -// in a failure state and has a status of failed , incompatible-restore , or -// incompatible-network , you can only delete it when you skip creation of the -// final snapshot with the SkipFinalSnapshot parameter. If the specified DB -// instance is part of an Amazon Aurora DB cluster, you can't delete the DB -// instance if both of the following conditions are true: +// Deletes a previously provisioned DB instance. When you delete a DB instance, +// all automated backups for that instance are deleted and can't be recovered. +// However, manual DB snapshots of the DB instance aren't deleted. If you request a +// final DB snapshot, the status of the Amazon RDS DB instance is deleting until +// the DB snapshot is created. This operation can't be canceled or reverted after +// it begins. To monitor the status of this operation, use DescribeDBInstance . +// When a DB instance is in a failure state and has a status of failed , +// incompatible-restore , or incompatible-network , you can only delete it when you +// skip creation of the final snapshot with the SkipFinalSnapshot parameter. If +// the specified DB instance is part of an Amazon Aurora DB cluster, you can't +// delete the DB instance if both of the following conditions are true: // - The DB cluster is a read replica of another Amazon Aurora DB cluster. // - The DB instance is the only instance in the DB cluster. // -// To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster -// API action to promote the DB cluster so it's no longer a read replica. After the -// promotion completes, then call the DeleteDBInstance API action to delete the -// final instance in the DB cluster. +// To delete a DB instance in this case, first use the PromoteReadReplicaDBCluster +// operation to promote the DB cluster so that it's no longer a read replica. After +// the promotion completes, use the DeleteDBInstance operation to delete the final +// instance in the DB cluster. For RDS Custom DB instances, deleting the DB +// instance permanently deletes the EC2 instance and the associated EBS volumes. +// Make sure that you don't terminate or delete these resources before you delete +// the DB instance. Otherwise, deleting the DB instance and creation of the final +// snapshot might fail. func (c *Client) DeleteDBInstance(ctx context.Context, params *DeleteDBInstanceInput, optFns ...func(*Options)) (*DeleteDBInstanceOutput, error) { if params == nil { params = &DeleteDBInstanceInput{} @@ -59,9 +62,9 @@ type DeleteDBInstanceInput struct { // This member is required. DBInstanceIdentifier *string - // A value that indicates whether to remove automated backups immediately after - // the DB instance is deleted. This parameter isn't case-sensitive. The default is - // to remove automated backups immediately after the DB instance is deleted. + // Specifies whether to remove automated backups immediately after the DB instance + // is deleted. This parameter isn't case-sensitive. The default is to remove + // automated backups immediately after the DB instance is deleted. DeleteAutomatedBackups *bool // The DBSnapshotIdentifier of the new DBSnapshot created when the @@ -74,11 +77,11 @@ type DeleteDBInstanceInput struct { // - Can't be specified when deleting a read replica. FinalDBSnapshotIdentifier *string - // A value that indicates whether to skip the creation of a final DB snapshot - // before deleting the instance. If you enable this parameter, RDS doesn't create a - // DB snapshot. If you don't enable this parameter, RDS creates a DB snapshot - // before the DB instance is deleted. By default, skip isn't enabled, and the DB - // snapshot is created. If you don't enable this parameter, you must specify the + // Specifies whether to skip the creation of a final DB snapshot before deleting + // the instance. If you enable this parameter, RDS doesn't create a DB snapshot. If + // you don't enable this parameter, RDS creates a DB snapshot before the DB + // instance is deleted. By default, skip isn't enabled, and the DB snapshot is + // created. If you don't enable this parameter, you must specify the // FinalDBSnapshotIdentifier parameter. When a DB instance is in a failure state // and has a status of failed , incompatible-restore , or incompatible-network , // RDS can delete the instance only if you enable this parameter. If you delete a diff --git a/service/rds/api_op_DescribeDBClusterParameters.go b/service/rds/api_op_DescribeDBClusterParameters.go index ff0886bbeb7..589fcff4c2f 100644 --- a/service/rds/api_op_DescribeDBClusterParameters.go +++ b/service/rds/api_op_DescribeDBClusterParameters.go @@ -59,8 +59,10 @@ type DescribeDBClusterParametersInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int32 - // A value that indicates to return only parameters for a specific source. - // Parameter sources can be engine , service , or customer . + // A specific source to return parameters for. Valid Values: + // - customer + // - engine + // - service Source *string noSmithyDocumentSerde diff --git a/service/rds/api_op_DescribeDBClusterSnapshots.go b/service/rds/api_op_DescribeDBClusterSnapshots.go index 0d6466f573a..b6cbb3f5407 100644 --- a/service/rds/api_op_DescribeDBClusterSnapshots.go +++ b/service/rds/api_op_DescribeDBClusterSnapshots.go @@ -70,18 +70,17 @@ type DescribeDBClusterSnapshotsInput struct { // - engine - Accepts names of database engines. Filters []types.Filter - // A value that indicates whether to include manual DB cluster snapshots that are - // public and can be copied or restored by any Amazon Web Services account. By - // default, the public snapshots are not included. You can share a manual DB - // cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API - // action. + // Specifies whether to include manual DB cluster snapshots that are public and + // can be copied or restored by any Amazon Web Services account. By default, the + // public snapshots are not included. You can share a manual DB cluster snapshot as + // public by using the ModifyDBClusterSnapshotAttribute API action. IncludePublic bool - // A value that indicates whether to include shared manual DB cluster snapshots - // from other Amazon Web Services accounts that this Amazon Web Services account - // has been given permission to copy or restore. By default, these snapshots are - // not included. You can give an Amazon Web Services account permission to restore - // a manual DB cluster snapshot from another Amazon Web Services account by the + // Specifies whether to include shared manual DB cluster snapshots from other + // Amazon Web Services accounts that this Amazon Web Services account has been + // given permission to copy or restore. By default, these snapshots are not + // included. You can give an Amazon Web Services account permission to restore a + // manual DB cluster snapshot from another Amazon Web Services account by the // ModifyDBClusterSnapshotAttribute API action. IncludeShared bool diff --git a/service/rds/api_op_DescribeDBEngineVersions.go b/service/rds/api_op_DescribeDBEngineVersions.go index f506d86afa0..3b2dd4363b1 100644 --- a/service/rds/api_op_DescribeDBEngineVersions.go +++ b/service/rds/api_op_DescribeDBEngineVersions.go @@ -16,7 +16,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of the available DB engines. +// Describes the properties of specific versions of DB engines. func (c *Client) DescribeDBEngineVersions(ctx context.Context, params *DescribeDBEngineVersionsInput, optFns ...func(*Options)) (*DescribeDBEngineVersionsOutput, error) { if params == nil { params = &DescribeDBEngineVersionsInput{} @@ -36,14 +36,14 @@ type DescribeDBEngineVersionsInput struct { // The name of a specific DB parameter group family to return details for. // Constraints: - // - If supplied, must match an existing DBParameterGroupFamily. + // - If supplied, must match an existing DB parameter group family. DBParameterGroupFamily *string - // A value that indicates whether only the default version of the specified engine - // or engine and major version combination is returned. + // Specifies whether to return only the default version of the specified engine or + // the engine and major version combination. DefaultOnly bool - // The database engine to return. Valid Values: + // The database engine to return version details for. Valid Values: // - aurora-mysql // - aurora-postgresql // - custom-oracle-ee @@ -60,7 +60,7 @@ type DescribeDBEngineVersionsInput struct { // - sqlserver-web Engine *string - // The database engine version to return. Example: 5.1.49 + // A specific database engine version to return details for. Example: 5.1.49 EngineVersion *string // A filter that specifies one or more DB engine versions to describe. Supported @@ -87,24 +87,24 @@ type DescribeDBEngineVersionsInput struct { // - deprecated Filters []types.Filter - // A value that indicates whether to include engine versions that aren't available - // in the list. The default is to list only available engine versions. + // Specifies whether to also list the engine versions that aren't available. The + // default is to list only available engine versions. IncludeAll *bool - // A value that indicates whether to list the supported character sets for each - // engine version. If this parameter is enabled and the requested engine supports - // the CharacterSetName parameter for CreateDBInstance , the response includes a - // list of supported character sets for each engine version. For RDS Custom, the - // default is not to list supported character sets. If you set - // ListSupportedCharacterSets to true , RDS Custom returns no results. + // Specifies whether to list the supported character sets for each engine version. + // If this parameter is enabled and the requested engine supports the + // CharacterSetName parameter for CreateDBInstance , the response includes a list + // of supported character sets for each engine version. For RDS Custom, the default + // is not to list supported character sets. If you enable this parameter, RDS + // Custom returns no results. ListSupportedCharacterSets *bool - // A value that indicates whether to list the supported time zones for each engine - // version. If this parameter is enabled and the requested engine supports the - // TimeZone parameter for CreateDBInstance , the response includes a list of - // supported time zones for each engine version. For RDS Custom, the default is not - // to list supported time zones. If you set ListSupportedTimezones to true , RDS - // Custom returns no results. + // Specifies whether to list the supported time zones for each engine version. If + // this parameter is enabled and the requested engine supports the TimeZone + // parameter for CreateDBInstance , the response includes a list of supported time + // zones for each engine version. For RDS Custom, the default is not to list + // supported time zones. If you enable this parameter, RDS Custom returns no + // results. ListSupportedTimezones *bool // An optional pagination token provided by a previous request. If this parameter diff --git a/service/rds/api_op_DescribeDBSnapshots.go b/service/rds/api_op_DescribeDBSnapshots.go index 7203b272e2a..3d93eae3466 100644 --- a/service/rds/api_op_DescribeDBSnapshots.go +++ b/service/rds/api_op_DescribeDBSnapshots.go @@ -65,18 +65,18 @@ type DescribeDBSnapshotsInput struct { // - engine - Accepts names of database engines. Filters []types.Filter - // A value that indicates whether to include manual DB cluster snapshots that are - // public and can be copied or restored by any Amazon Web Services account. By - // default, the public snapshots are not included. You can share a manual DB - // snapshot as public by using the ModifyDBSnapshotAttribute API. This setting - // doesn't apply to RDS Custom. + // Specifies whether to include manual DB cluster snapshots that are public and + // can be copied or restored by any Amazon Web Services account. By default, the + // public snapshots are not included. You can share a manual DB snapshot as public + // by using the ModifyDBSnapshotAttribute API. This setting doesn't apply to RDS + // Custom. IncludePublic bool - // A value that indicates whether to include shared manual DB cluster snapshots - // from other Amazon Web Services accounts that this Amazon Web Services account - // has been given permission to copy or restore. By default, these snapshots are - // not included. You can give an Amazon Web Services account permission to restore - // a manual DB snapshot from another Amazon Web Services account by using the + // Specifies whether to include shared manual DB cluster snapshots from other + // Amazon Web Services accounts that this Amazon Web Services account has been + // given permission to copy or restore. By default, these snapshots are not + // included. You can give an Amazon Web Services account permission to restore a + // manual DB snapshot from another Amazon Web Services account by using the // ModifyDBSnapshotAttribute API action. This setting doesn't apply to RDS Custom. IncludeShared bool diff --git a/service/rds/api_op_DescribeEventCategories.go b/service/rds/api_op_DescribeEventCategories.go index 5acb3d3ab1f..b9b6640870b 100644 --- a/service/rds/api_op_DescribeEventCategories.go +++ b/service/rds/api_op_DescribeEventCategories.go @@ -42,7 +42,7 @@ type DescribeEventCategoriesInput struct { Filters []types.Filter // The type of source that is generating the events. For RDS Proxy events, specify - // db-proxy . Valid values: db-instance | db-cluster | db-parameter-group | + // db-proxy . Valid Values: db-instance | db-cluster | db-parameter-group | // db-security-group | db-snapshot | db-cluster-snapshot | db-proxy SourceType *string diff --git a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go index 4cac6970c38..b1004345e82 100644 --- a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go +++ b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go @@ -88,9 +88,9 @@ type DescribeOrderableDBInstanceOptionsInput struct { // Default: 100 Constraints: Minimum 20, maximum 10000. MaxRecords *int32 - // A value that indicates whether to show only VPC or non-VPC offerings. RDS - // Custom supports only VPC offerings. RDS Custom supports only VPC offerings. If - // you describe non-VPC offerings for RDS Custom, the output shows VPC offerings. + // Specifies whether to show only VPC or non-VPC offerings. RDS Custom supports + // only VPC offerings. RDS Custom supports only VPC offerings. If you describe + // non-VPC offerings for RDS Custom, the output shows VPC offerings. Vpc *bool noSmithyDocumentSerde diff --git a/service/rds/api_op_DescribeReservedDBInstances.go b/service/rds/api_op_DescribeReservedDBInstances.go index 3710ded91fd..70aaf835525 100644 --- a/service/rds/api_op_DescribeReservedDBInstances.go +++ b/service/rds/api_op_DescribeReservedDBInstances.go @@ -63,8 +63,7 @@ type DescribeReservedDBInstancesInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int32 - // A value that indicates whether to show only those reservations that support - // Multi-AZ. + // Specifies whether to show only those reservations that support Multi-AZ. MultiAZ *bool // The offering type filter value. Specify this parameter to show only the diff --git a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go index 5574cffa136..c1f1eeae4f5 100644 --- a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go +++ b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go @@ -57,8 +57,7 @@ type DescribeReservedDBInstancesOfferingsInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int32 - // A value that indicates whether to show only those reservations that support - // Multi-AZ. + // Specifies whether to show only those reservations that support Multi-AZ. MultiAZ *bool // The offering type filter value. Specify this parameter to show only the diff --git a/service/rds/api_op_DownloadDBLogFilePortion.go b/service/rds/api_op_DownloadDBLogFilePortion.go index a595e9e20fd..6d7bd45ab98 100644 --- a/service/rds/api_op_DownloadDBLogFilePortion.go +++ b/service/rds/api_op_DownloadDBLogFilePortion.go @@ -76,7 +76,7 @@ type DownloadDBLogFilePortionInput struct { // This data type is used as a response element to DownloadDBLogFilePortion . type DownloadDBLogFilePortionOutput struct { - // Boolean value that if true, indicates there is more data to be downloaded. + // A Boolean value that, if true, indicates there is more data to be downloaded. AdditionalDataPending bool // Entries from the specified log file. diff --git a/service/rds/api_op_FailoverDBCluster.go b/service/rds/api_op_FailoverDBCluster.go index 66cc60e2174..0e92fbc894d 100644 --- a/service/rds/api_op_FailoverDBCluster.go +++ b/service/rds/api_op_FailoverDBCluster.go @@ -49,9 +49,9 @@ func (c *Client) FailoverDBCluster(ctx context.Context, params *FailoverDBCluste type FailoverDBClusterInput struct { - // A DB cluster identifier to force a failover for. This parameter isn't + // The identifier of the DB cluster to force a failover for. This parameter isn't // case-sensitive. Constraints: - // - Must match the identifier of an existing DBCluster. + // - Must match the identifier of an existing DB cluster. // // This member is required. DBClusterIdentifier *string diff --git a/service/rds/api_op_ModifyCertificates.go b/service/rds/api_op_ModifyCertificates.go index ba8d7259051..0245e5d73d3 100644 --- a/service/rds/api_op_ModifyCertificates.go +++ b/service/rds/api_op_ModifyCertificates.go @@ -58,9 +58,8 @@ type ModifyCertificatesInput struct { // DescribeCertificates API operation. CertificateIdentifier *string - // A value that indicates whether to remove the override for the default - // certificate. If the override is removed, the default certificate is the system - // default. + // Specifies whether to remove the override for the default certificate. If the + // override is removed, the default certificate is the system default. RemoveCustomerOverride *bool noSmithyDocumentSerde diff --git a/service/rds/api_op_ModifyCustomDBEngineVersion.go b/service/rds/api_op_ModifyCustomDBEngineVersion.go index 16938b2db3c..34c518bb8f3 100644 --- a/service/rds/api_op_ModifyCustomDBEngineVersion.go +++ b/service/rds/api_op_ModifyCustomDBEngineVersion.go @@ -172,30 +172,29 @@ type ModifyCustomDBEngineVersionOutput struct { // the CreateDBInstance action. SupportedTimezones []types.Timezone - // A value that indicates whether the engine version supports Babelfish for Aurora - // PostgreSQL. + // Indicates whether the engine version supports Babelfish for Aurora PostgreSQL. SupportsBabelfish bool - // A value that indicates whether the engine version supports rotating the server - // certificate without rebooting the DB instance. + // Indicates whether the engine version supports rotating the server certificate + // without rebooting the DB instance. SupportsCertificateRotationWithoutRestart *bool - // A value that indicates whether you can use Aurora global databases with a - // specific DB engine version. + // Indicates whether you can use Aurora global databases with a specific DB engine + // version. SupportsGlobalDatabases bool - // A value that indicates whether the DB engine version supports forwarding write - // operations from reader DB instances to the writer DB instance in the DB cluster. - // By default, write operations aren't allowed on reader DB instances. Valid for: + // Indicates whether the DB engine version supports forwarding write operations + // from reader DB instances to the writer DB instance in the DB cluster. By + // default, write operations aren't allowed on reader DB instances. Valid for: // Aurora DB clusters only SupportsLocalWriteForwarding *bool - // A value that indicates whether the engine version supports exporting the log - // types specified by ExportableLogTypes to CloudWatch Logs. + // Indicates whether the engine version supports exporting the log types specified + // by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool - // A value that indicates whether you can use Aurora parallel query with a - // specific DB engine version. + // Indicates whether you can use Aurora parallel query with a specific DB engine + // version. SupportsParallelQuery bool // Indicates whether the database engine version supports read replicas. diff --git a/service/rds/api_op_ModifyEventSubscription.go b/service/rds/api_op_ModifyEventSubscription.go index 9b543f53d51..82df3fafcb0 100644 --- a/service/rds/api_op_ModifyEventSubscription.go +++ b/service/rds/api_op_ModifyEventSubscription.go @@ -44,7 +44,7 @@ type ModifyEventSubscriptionInput struct { // This member is required. SubscriptionName *string - // A value that indicates whether to activate the subscription. + // Specifies whether to activate the subscription. Enabled *bool // A list of event categories for a source type ( SourceType ) that you want to @@ -60,7 +60,7 @@ type ModifyEventSubscriptionInput struct { // The type of source that is generating the events. For example, if you want to // be notified of events generated by a DB instance, you would set this parameter // to db-instance. For RDS Proxy events, specify db-proxy . If this value isn't - // specified, all events are returned. Valid values: db-instance | db-cluster | + // specified, all events are returned. Valid Values: db-instance | db-cluster | // db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | // db-proxy SourceType *string diff --git a/service/rds/api_op_ModifyOptionGroup.go b/service/rds/api_op_ModifyOptionGroup.go index 5420b89515a..9508d0fec98 100644 --- a/service/rds/api_op_ModifyOptionGroup.go +++ b/service/rds/api_op_ModifyOptionGroup.go @@ -42,8 +42,8 @@ type ModifyOptionGroupInput struct { // This member is required. OptionGroupName *string - // A value that indicates whether to apply the change immediately or during the - // next maintenance window for each instance associated with the option group. + // Specifies whether to apply the change immediately or during the next + // maintenance window for each instance associated with the option group. ApplyImmediately bool // Options in this list are added to the option group or, if already present, the diff --git a/service/rds/api_op_RebootDBInstance.go b/service/rds/api_op_RebootDBInstance.go index be7bc79870d..bdf98c8a6ae 100644 --- a/service/rds/api_op_RebootDBInstance.go +++ b/service/rds/api_op_RebootDBInstance.go @@ -50,9 +50,9 @@ type RebootDBInstanceInput struct { // This member is required. DBInstanceIdentifier *string - // A value that indicates whether the reboot is conducted through a Multi-AZ - // failover. Constraint: You can't enable force failover if the instance isn't - // configured for Multi-AZ. + // Specifies whether the reboot is conducted through a Multi-AZ failover. + // Constraint: You can't enable force failover if the instance isn't configured for + // Multi-AZ. ForceFailover *bool noSmithyDocumentSerde diff --git a/service/rds/api_op_ResetDBClusterParameterGroup.go b/service/rds/api_op_ResetDBClusterParameterGroup.go index 5b3cfeb25ce..8c479d572e7 100644 --- a/service/rds/api_op_ResetDBClusterParameterGroup.go +++ b/service/rds/api_op_ResetDBClusterParameterGroup.go @@ -56,9 +56,9 @@ type ResetDBClusterParameterGroupInput struct { // parameter is enabled. Parameters []types.Parameter - // A value that indicates whether to reset all parameters in the DB cluster - // parameter group to their default values. You can't use this parameter if there - // is a list of parameter names specified for the Parameters parameter. + // Specifies whether to reset all parameters in the DB cluster parameter group to + // their default values. You can't use this parameter if there is a list of + // parameter names specified for the Parameters parameter. ResetAllParameters bool noSmithyDocumentSerde diff --git a/service/rds/api_op_ResetDBParameterGroup.go b/service/rds/api_op_ResetDBParameterGroup.go index c0f64e80a06..443e5d42860 100644 --- a/service/rds/api_op_ResetDBParameterGroup.go +++ b/service/rds/api_op_ResetDBParameterGroup.go @@ -59,9 +59,9 @@ type ResetDBParameterGroupInput struct { // Valid Values (for Apply method): pending-reboot Parameters []types.Parameter - // A value that indicates whether to reset all parameters in the DB parameter - // group to default values. By default, all parameters in the DB parameter group - // are reset to default values. + // Specifies whether to reset all parameters in the DB parameter group to default + // values. By default, all parameters in the DB parameter group are reset to + // default values. ResetAllParameters bool noSmithyDocumentSerde diff --git a/service/rds/api_op_RestoreDBClusterFromS3.go b/service/rds/api_op_RestoreDBClusterFromS3.go index c794c90b4bb..848ca08455a 100644 --- a/service/rds/api_op_RestoreDBClusterFromS3.go +++ b/service/rds/api_op_RestoreDBClusterFromS3.go @@ -84,7 +84,7 @@ type RestoreDBClusterFromS3Input struct { S3IngestionRoleArn *string // The identifier for the database engine that was backed up to create the files - // stored in the Amazon S3 bucket. Valid values: mysql + // stored in the Amazon S3 bucket. Valid Values: mysql // // This member is required. SourceEngine *string @@ -115,8 +115,8 @@ type RestoreDBClusterFromS3Input struct { // the specified CharacterSet. CharacterSetName *string - // A value that indicates whether to copy all tags from the restored DB cluster to - // snapshots of the restored DB cluster. The default is not to copy them. + // Specifies whether to copy all tags from the restored DB cluster to snapshots of + // the restored DB cluster. The default is not to copy them. CopyTagsToSnapshot *bool // The name of the DB cluster parameter group to associate with the restored DB @@ -133,8 +133,8 @@ type RestoreDBClusterFromS3Input struct { // The database name for the restored DB cluster. DatabaseName *string - // A value that indicates whether the DB cluster has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB cluster. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. DeletionProtection *bool @@ -157,9 +157,9 @@ type RestoreDBClusterFromS3Input struct { // in the Amazon Aurora User Guide. EnableCloudwatchLogsExports []string - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping isn't enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping isn't + // enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon Aurora User Guide. EnableIAMDatabaseAuthentication *bool @@ -180,9 +180,9 @@ type RestoreDBClusterFromS3Input struct { // KMS key for each Amazon Web Services Region. KmsKeyId *string - // A value that indicates whether to manage the master user password with Amazon - // Web Services Secrets Manager. For more information, see Password management - // with Amazon Web Services Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + // Specifies whether to manage the master user password with Amazon Web Services + // Secrets Manager. For more information, see Password management with Amazon Web + // Services Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) // in the Amazon RDS User Guide and Password management with Amazon Web Services // Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) // in the Amazon Aurora User Guide. Constraints: @@ -211,7 +211,7 @@ type RestoreDBClusterFromS3Input struct { // Region. MasterUserSecretKmsKeyId *string - // The network type of the DB cluster. Valid values: + // The network type of the DB cluster. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for the DB @@ -262,10 +262,10 @@ type RestoreDBClusterFromS3Input struct { // in the Amazon Aurora User Guide. ServerlessV2ScalingConfiguration *types.ServerlessV2ScalingConfiguration - // A value that indicates whether the restored DB cluster is encrypted. + // Specifies whether the restored DB cluster is encrypted. StorageEncrypted *bool - // Specifies the storage type to be associated with the DB cluster. Valid values: + // Specifies the storage type to be associated with the DB cluster. Valid Values: // aurora , aurora-iopt1 Default: aurora Valid for: Aurora DB clusters only StorageType *string diff --git a/service/rds/api_op_RestoreDBClusterFromSnapshot.go b/service/rds/api_op_RestoreDBClusterFromSnapshot.go index 4915786ef63..4193cf37e5c 100644 --- a/service/rds/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/rds/api_op_RestoreDBClusterFromSnapshot.go @@ -85,9 +85,9 @@ type RestoreDBClusterFromSnapshotInput struct { // Valid for: Aurora DB clusters only BacktrackWindow *int64 - // A value that indicates whether to copy all tags from the restored DB cluster to - // snapshots of the restored DB cluster. The default is not to copy them. Valid - // for: Aurora DB clusters and Multi-AZ DB clusters + // Specifies whether to copy all tags from the restored DB cluster to snapshots of + // the restored DB cluster. The default is not to copy them. Valid for: Aurora DB + // clusters and Multi-AZ DB clusters CopyTagsToSnapshot *bool // The compute and memory capacity of the each DB instance in the Multi-AZ DB @@ -118,21 +118,21 @@ type RestoreDBClusterFromSnapshotInput struct { // and Multi-AZ DB clusters DatabaseName *string - // A value that indicates whether the DB cluster has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB cluster. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. Valid for: Aurora DB clusters and Multi-AZ DB // clusters DeletionProtection *bool - // Specify the Active Directory directory ID to restore the DB cluster in. The - // domain must be created prior to this operation. Currently, only MySQL, Microsoft - // SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active - // Directory Domain. For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + // The Active Directory directory ID to restore the DB cluster in. The domain must + // be created prior to this operation. Currently, only MySQL, Microsoft SQL Server, + // Oracle, and PostgreSQL DB instances can be created in an Active Directory + // Domain. For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) // in the Amazon RDS User Guide. Valid for: Aurora DB clusters only Domain *string - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. Valid for: Aurora DB clusters only + // The name of the IAM role to be used when making API calls to the Directory + // Service. Valid for: Aurora DB clusters only DomainIAMRoleName *string // The list of logs that the restored DB cluster is to export to Amazon CloudWatch @@ -148,9 +148,9 @@ type RestoreDBClusterFromSnapshotInput struct { // clusters EnableCloudwatchLogsExports []string - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping isn't enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping isn't + // enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon Aurora User Guide. Valid for: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool @@ -206,7 +206,7 @@ type RestoreDBClusterFromSnapshotInput struct { // Valid for: Aurora DB clusters and Multi-AZ DB clusters KmsKeyId *string - // The network type of the DB cluster. Valid values: + // The network type of the DB cluster. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for the DB @@ -225,17 +225,17 @@ type RestoreDBClusterFromSnapshotInput struct { // cluster. Valid for: Aurora DB clusters and Multi-AZ DB clusters Port *int32 - // A value that indicates whether the DB cluster is publicly accessible. When the - // DB cluster is publicly accessible, its Domain Name System (DNS) endpoint - // resolves to the private IP address from within the DB cluster's virtual private - // cloud (VPC). It resolves to the public IP address from outside of the DB - // cluster's VPC. Access to the DB cluster is ultimately controlled by the security - // group it uses. That public access is not permitted if the security group - // assigned to the DB cluster doesn't permit it. When the DB cluster isn't publicly - // accessible, it is an internal DB cluster with a DNS name that resolves to a - // private IP address. Default: The default behavior varies depending on whether - // DBSubnetGroupName is specified. If DBSubnetGroupName isn't specified, and - // PubliclyAccessible isn't specified, the following applies: + // Specifies whether the DB cluster is publicly accessible. When the DB cluster is + // publicly accessible, its Domain Name System (DNS) endpoint resolves to the + // private IP address from within the DB cluster's virtual private cloud (VPC). It + // resolves to the public IP address from outside of the DB cluster's VPC. Access + // to the DB cluster is ultimately controlled by the security group it uses. That + // public access is not permitted if the security group assigned to the DB cluster + // doesn't permit it. When the DB cluster isn't publicly accessible, it is an + // internal DB cluster with a DNS name that resolves to a private IP address. + // Default: The default behavior varies depending on whether DBSubnetGroupName is + // specified. If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't + // specified, the following applies: // - If the default VPC in the target Region doesn’t have an internet gateway // attached to it, the DB cluster is private. // - If the default VPC in the target Region has an internet gateway attached to @@ -260,7 +260,7 @@ type RestoreDBClusterFromSnapshotInput struct { // Specifies the storage type to be associated with the DB cluster. When specified // for a Multi-AZ DB cluster, a value for the Iops parameter is required. Valid - // values: aurora , aurora-iopt1 (Aurora DB clusters); io1 (Multi-AZ DB clusters) + // Values: aurora , aurora-iopt1 (Aurora DB clusters); io1 (Multi-AZ DB clusters) // Default: aurora (Aurora DB clusters); io1 (Multi-AZ DB clusters) Valid for: // Aurora DB clusters and Multi-AZ DB clusters StorageType *string diff --git a/service/rds/api_op_RestoreDBClusterToPointInTime.go b/service/rds/api_op_RestoreDBClusterToPointInTime.go index 77260332647..7662254ce68 100644 --- a/service/rds/api_op_RestoreDBClusterToPointInTime.go +++ b/service/rds/api_op_RestoreDBClusterToPointInTime.go @@ -65,9 +65,9 @@ type RestoreDBClusterToPointInTimeInput struct { // Valid for: Aurora MySQL DB clusters only BacktrackWindow *int64 - // A value that indicates whether to copy all tags from the restored DB cluster to - // snapshots of the restored DB cluster. The default is not to copy them. Valid - // for: Aurora DB clusters and Multi-AZ DB clusters + // Specifies whether to copy all tags from the restored DB cluster to snapshots of + // the restored DB cluster. The default is not to copy them. Valid for: Aurora DB + // clusters and Multi-AZ DB clusters CopyTagsToSnapshot *bool // The compute and memory capacity of the each DB instance in the Multi-AZ DB @@ -93,21 +93,21 @@ type RestoreDBClusterToPointInTimeInput struct { // mydbsubnetgroup Valid for: Aurora DB clusters and Multi-AZ DB clusters DBSubnetGroupName *string - // A value that indicates whether the DB cluster has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB cluster. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. Valid for: Aurora DB clusters and Multi-AZ DB // clusters DeletionProtection *bool - // Specify the Active Directory directory ID to restore the DB cluster in. The - // domain must be created prior to this operation. For Amazon Aurora DB clusters, - // Amazon RDS can use Kerberos Authentication to authenticate users that connect to - // the DB cluster. For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + // The Active Directory directory ID to restore the DB cluster in. The domain must + // be created prior to this operation. For Amazon Aurora DB clusters, Amazon RDS + // can use Kerberos Authentication to authenticate users that connect to the DB + // cluster. For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) // in the Amazon Aurora User Guide. Valid for: Aurora DB clusters only Domain *string - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. Valid for: Aurora DB clusters only + // The name of the IAM role to be used when making API calls to the Directory + // Service. Valid for: Aurora DB clusters only DomainIAMRoleName *string // The list of logs that the restored DB cluster is to export to CloudWatch Logs. @@ -123,9 +123,9 @@ type RestoreDBClusterToPointInTimeInput struct { // clusters EnableCloudwatchLogsExports []string - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping isn't enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping isn't + // enabled. For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon Aurora User Guide. Valid for: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool @@ -162,7 +162,7 @@ type RestoreDBClusterToPointInTimeInput struct { // clusters KmsKeyId *string - // The network type of the DB cluster. Valid values: + // The network type of the DB cluster. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for the DB @@ -181,17 +181,17 @@ type RestoreDBClusterToPointInTimeInput struct { // Aurora DB clusters and Multi-AZ DB clusters Port *int32 - // A value that indicates whether the DB cluster is publicly accessible. When the - // DB cluster is publicly accessible, its Domain Name System (DNS) endpoint - // resolves to the private IP address from within the DB cluster's virtual private - // cloud (VPC). It resolves to the public IP address from outside of the DB - // cluster's VPC. Access to the DB cluster is ultimately controlled by the security - // group it uses. That public access is not permitted if the security group - // assigned to the DB cluster doesn't permit it. When the DB cluster isn't publicly - // accessible, it is an internal DB cluster with a DNS name that resolves to a - // private IP address. Default: The default behavior varies depending on whether - // DBSubnetGroupName is specified. If DBSubnetGroupName isn't specified, and - // PubliclyAccessible isn't specified, the following applies: + // Specifies whether the DB cluster is publicly accessible. When the DB cluster is + // publicly accessible, its Domain Name System (DNS) endpoint resolves to the + // private IP address from within the DB cluster's virtual private cloud (VPC). It + // resolves to the public IP address from outside of the DB cluster's VPC. Access + // to the DB cluster is ultimately controlled by the security group it uses. That + // public access is not permitted if the security group assigned to the DB cluster + // doesn't permit it. When the DB cluster isn't publicly accessible, it is an + // internal DB cluster with a DNS name that resolves to a private IP address. + // Default: The default behavior varies depending on whether DBSubnetGroupName is + // specified. If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't + // specified, the following applies: // - If the default VPC in the target Region doesn’t have an internet gateway // attached to it, the DB cluster is private. // - If the default VPC in the target Region has an internet gateway attached to @@ -245,7 +245,7 @@ type RestoreDBClusterToPointInTimeInput struct { // Specifies the storage type to be associated with the DB cluster. When specified // for a Multi-AZ DB cluster, a value for the Iops parameter is required. Valid - // values: aurora , aurora-iopt1 (Aurora DB clusters); io1 (Multi-AZ DB clusters) + // Values: aurora , aurora-iopt1 (Aurora DB clusters); io1 (Multi-AZ DB clusters) // Default: aurora (Aurora DB clusters); io1 (Multi-AZ DB clusters) Valid for: // Aurora DB clusters and Multi-AZ DB clusters StorageType *string @@ -254,10 +254,10 @@ type RestoreDBClusterToPointInTimeInput struct { // in the Amazon RDS User Guide. Tags []types.Tag - // A value that indicates whether to restore the DB cluster to the latest - // restorable backup time. By default, the DB cluster isn't restored to the latest - // restorable backup time. Constraints: Can't be specified if RestoreToTime - // parameter is provided. Valid for: Aurora DB clusters and Multi-AZ DB clusters + // Specifies whether to restore the DB cluster to the latest restorable backup + // time. By default, the DB cluster isn't restored to the latest restorable backup + // time. Constraints: Can't be specified if RestoreToTime parameter is provided. + // Valid for: Aurora DB clusters and Multi-AZ DB clusters UseLatestRestorableTime bool // A list of VPC security groups that the new DB cluster belongs to. Valid for: diff --git a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go index 1793ad5475a..8cc957586fd 100644 --- a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go +++ b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go @@ -66,9 +66,9 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // succeed. You can also allocate additional storage for future growth. AllocatedStorage *int32 - // A value that indicates whether minor version upgrades are applied automatically - // to the DB instance during the maintenance window. If you restore an RDS Custom - // DB instance, you must disable this parameter. + // Specifies whether to automatically apply minor version upgrades to the DB + // instance during the maintenance window. If you restore an RDS Custom DB + // instance, you must disable this parameter. AutoMinorVersionUpgrade *bool // The Availability Zone (AZ) where the DB instance will be created. Default: A @@ -84,13 +84,13 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // in the Amazon RDS User Guide. BackupTarget *string - // A value that indicates whether to copy all tags from the restored DB instance - // to snapshots of the DB instance. In most cases, tags aren't copied by default. - // However, when you restore a DB instance from a DB snapshot, RDS checks whether - // you specify new tags. If yes, the new tags are added to the restored DB - // instance. If there are no new tags, RDS looks for the tags from the source DB - // instance for the DB snapshot, and then adds those tags to the restored DB - // instance. For more information, see Copying tags to DB instance snapshots (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags) + // Specifies whether to copy all tags from the restored DB instance to snapshots + // of the DB instance. In most cases, tags aren't copied by default. However, when + // you restore a DB instance from a DB snapshot, RDS checks whether you specify new + // tags. If yes, the new tags are added to the restored DB instance. If there are + // no new tags, RDS looks for the tags from the source DB instance for the DB + // snapshot, and then adds those tags to the restored DB instance. For more + // information, see Copying tags to DB instance snapshots (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags) // in the Amazon RDS User Guide. CopyTagsToSnapshot *bool @@ -156,8 +156,8 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // must match the name of an existing DBSubnetGroup. Example: mydbsubnetgroup DBSubnetGroupName *string - // A value that indicates whether the DB instance has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB instance. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. For more information, see Deleting a DB // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) // . @@ -171,7 +171,9 @@ type RestoreDBInstanceFromDBSnapshotInput struct { Domain *string // The ARN for the Secrets Manager secret with the credentials for the user - // joining the domain. Constraints: Example: + // joining the domain. Constraints: + // - Can't be longer than 64 characters. + // Example: // arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456 DomainAuthSecretArn *string @@ -206,22 +208,22 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. EnableCloudwatchLogsExports []string - // A value that indicates whether to enable a customer-owned IP address (CoIP) for - // an RDS on Outposts DB instance. A CoIP provides local or external connectivity - // to resources in your Outpost subnets through your on-premises network. For some - // use cases, a CoIP can provide lower latency for connections to the DB instance - // from outside of its virtual private cloud (VPC) on your local network. This - // setting doesn't apply to RDS Custom. For more information about RDS on Outposts, - // see Working with Amazon RDS on Amazon Web Services Outposts (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + // Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on + // Outposts DB instance. A CoIP provides local or external connectivity to + // resources in your Outpost subnets through your on-premises network. For some use + // cases, a CoIP can provide lower latency for connections to the DB instance from + // outside of its virtual private cloud (VPC) on your local network. This setting + // doesn't apply to RDS Custom. For more information about RDS on Outposts, see + // Working with Amazon RDS on Amazon Web Services Outposts (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) // in the Amazon RDS User Guide. For more information about CoIPs, see // Customer-owned IP addresses (https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) // in the Amazon Web Services Outposts User Guide. EnableCustomerOwnedIp *bool - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping is disabled. For more information about IAM database authentication, see - // IAM Database Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping is disabled. + // For more information about IAM database authentication, see IAM Database + // Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom. EnableIAMDatabaseAuthentication *bool @@ -253,16 +255,16 @@ type RestoreDBInstanceFromDBSnapshotInput struct { Iops *int32 // License model information for the restored DB instance. This setting doesn't - // apply to RDS Custom. Default: Same as source. Valid values: license-included | + // apply to RDS Custom. Default: Same as source. Valid Values: license-included | // bring-your-own-license | general-public-license LicenseModel *string - // A value that indicates whether the DB instance is a Multi-AZ deployment. This - // setting doesn't apply to RDS Custom. Constraint: You can't specify the - // AvailabilityZone parameter if the DB instance is a Multi-AZ deployment. + // Specifies whether the DB instance is a Multi-AZ deployment. This setting + // doesn't apply to RDS Custom. Constraint: You can't specify the AvailabilityZone + // parameter if the DB instance is a Multi-AZ deployment. MultiAZ *bool - // The network type of the DB instance. Valid values: + // The network type of the DB instance. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for the DB @@ -287,22 +289,22 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // class of the DB instance. This setting doesn't apply to RDS Custom. ProcessorFeatures []types.ProcessorFeature - // A value that indicates whether the DB instance is publicly accessible. When the - // DB instance is publicly accessible, its Domain Name System (DNS) endpoint - // resolves to the private IP address from within the DB instance's virtual private - // cloud (VPC). It resolves to the public IP address from outside of the DB - // instance's VPC. Access to the DB instance is ultimately controlled by the - // security group it uses. That public access is not permitted if the security - // group assigned to the DB instance doesn't permit it. When the DB instance isn't - // publicly accessible, it is an internal DB instance with a DNS name that resolves - // to a private IP address. For more information, see CreateDBInstance . + // Specifies whether the DB instance is publicly accessible. When the DB instance + // is publicly accessible, its Domain Name System (DNS) endpoint resolves to the + // private IP address from within the DB instance's virtual private cloud (VPC). It + // resolves to the public IP address from outside of the DB instance's VPC. Access + // to the DB instance is ultimately controlled by the security group it uses. That + // public access is not permitted if the security group assigned to the DB instance + // doesn't permit it. When the DB instance isn't publicly accessible, it is an + // internal DB instance with a DNS name that resolves to a private IP address. For + // more information, see CreateDBInstance . PubliclyAccessible *bool // Specifies the storage throughput value for the DB instance. This setting // doesn't apply to RDS Custom or Amazon Aurora. StorageThroughput *int32 - // Specifies the storage type to be associated with the DB instance. Valid values: + // Specifies the storage type to be associated with the DB instance. Valid Values: // gp2 | gp3 | io1 | standard If you specify io1 or gp3 , you must also include a // value for the Iops parameter. Default: io1 if the Iops parameter is specified, // otherwise gp2 @@ -320,8 +322,8 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // device. This setting doesn't apply to RDS Custom. TdeCredentialPassword *string - // A value that indicates whether the DB instance class of the DB instance uses - // its default processor features. This setting doesn't apply to RDS Custom. + // Specifies whether the DB instance class of the DB instance uses its default + // processor features. This setting doesn't apply to RDS Custom. UseDefaultProcessorFeatures *bool // A list of EC2 VPC security groups to associate with this DB instance. Default: diff --git a/service/rds/api_op_RestoreDBInstanceFromS3.go b/service/rds/api_op_RestoreDBInstanceFromS3.go index a4a2054aa24..166dbaf1b00 100644 --- a/service/rds/api_op_RestoreDBInstanceFromS3.go +++ b/service/rds/api_op_RestoreDBInstanceFromS3.go @@ -93,9 +93,9 @@ type RestoreDBInstanceFromS3Input struct { // succeed. You can also allocate additional storage for future growth. AllocatedStorage *int32 - // A value that indicates whether minor engine upgrades are applied automatically - // to the DB instance during the maintenance window. By default, minor engine - // upgrades are not applied automatically. + // Specifies whether to automatically apply minor engine upgrades to the DB + // instance during the maintenance window. By default, minor engine upgrades are + // not applied automatically. AutoMinorVersionUpgrade *bool // The Availability Zone that the DB instance is created in. For information about @@ -113,8 +113,8 @@ type RestoreDBInstanceFromS3Input struct { // CreateDBInstance . BackupRetentionPeriod *int32 - // A value that indicates whether to copy all tags from the DB instance to - // snapshots of the DB instance. By default, tags are not copied. + // Specifies whether to copy all tags from the DB instance to snapshots of the DB + // instance. By default, tags are not copied. CopyTagsToSnapshot *bool // The name of the database to create when the DB instance is created. Follow the @@ -134,8 +134,8 @@ type RestoreDBInstanceFromS3Input struct { // must match the name of an existing DBSubnetGroup. Example: mydbsubnetgroup DBSubnetGroupName *string - // A value that indicates whether the DB instance has deletion protection enabled. - // The database can't be deleted when deletion protection is enabled. By default, + // Specifies whether to enable deletion protection for the DB instance. The + // database can't be deleted when deletion protection is enabled. By default, // deletion protection isn't enabled. For more information, see Deleting a DB // Instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) // . @@ -147,15 +147,15 @@ type RestoreDBInstanceFromS3Input struct { // in the Amazon RDS User Guide. EnableCloudwatchLogsExports []string - // A value that indicates whether to enable mapping of Amazon Web Services - // Identity and Access Management (IAM) accounts to database accounts. By default, - // mapping isn't enabled. For more information about IAM database authentication, - // see IAM Database Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + // Specifies whether to enable mapping of Amazon Web Services Identity and Access + // Management (IAM) accounts to database accounts. By default, mapping isn't + // enabled. For more information about IAM database authentication, see IAM + // Database Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon RDS User Guide. EnableIAMDatabaseAuthentication *bool - // A value that indicates whether to enable Performance Insights for the DB - // instance. For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + // Specifies whether to enable Performance Insights for the DB instance. For more + // information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) // in the Amazon RDS User Guide. EnablePerformanceInsights *bool @@ -183,9 +183,9 @@ type RestoreDBInstanceFromS3Input struct { // The license model for this DB instance. Use general-public-license . LicenseModel *string - // A value that indicates whether to manage the master user password with Amazon - // Web Services Secrets Manager. For more information, see Password management - // with Amazon Web Services Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + // Specifies whether to manage the master user password with Amazon Web Services + // Secrets Manager. For more information, see Password management with Amazon Web + // Services Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) // in the Amazon RDS User Guide. Constraints: // - Can't manage the master user password with Amazon Web Services Secrets // Manager if MasterUserPassword is specified. @@ -243,12 +243,11 @@ type RestoreDBInstanceFromS3Input struct { // than 0, then you must supply a MonitoringRoleArn value. MonitoringRoleArn *string - // A value that indicates whether the DB instance is a Multi-AZ deployment. If the - // DB instance is a Multi-AZ deployment, you can't set the AvailabilityZone - // parameter. + // Specifies whether the DB instance is a Multi-AZ deployment. If the DB instance + // is a Multi-AZ deployment, you can't set the AvailabilityZone parameter. MultiAZ *bool - // The network type of the DB instance. Valid values: + // The network type of the DB instance. Valid Values: // - IPV4 // - DUAL // The network type is determined by the DBSubnetGroup specified for the DB @@ -313,28 +312,28 @@ type RestoreDBInstanceFromS3Input struct { // class of the DB instance. ProcessorFeatures []types.ProcessorFeature - // A value that indicates whether the DB instance is publicly accessible. When the - // DB instance is publicly accessible, its Domain Name System (DNS) endpoint - // resolves to the private IP address from within the DB instance's virtual private - // cloud (VPC). It resolves to the public IP address from outside of the DB - // instance's VPC. Access to the DB instance is ultimately controlled by the - // security group it uses. That public access is not permitted if the security - // group assigned to the DB instance doesn't permit it. When the DB instance isn't - // publicly accessible, it is an internal DB instance with a DNS name that resolves - // to a private IP address. For more information, see CreateDBInstance . + // Specifies whether the DB instance is publicly accessible. When the DB instance + // is publicly accessible, its Domain Name System (DNS) endpoint resolves to the + // private IP address from within the DB instance's virtual private cloud (VPC). It + // resolves to the public IP address from outside of the DB instance's VPC. Access + // to the DB instance is ultimately controlled by the security group it uses. That + // public access is not permitted if the security group assigned to the DB instance + // doesn't permit it. When the DB instance isn't publicly accessible, it is an + // internal DB instance with a DNS name that resolves to a private IP address. For + // more information, see CreateDBInstance . PubliclyAccessible *bool // The prefix of your Amazon S3 bucket. S3Prefix *string - // A value that indicates whether the new DB instance is encrypted or not. + // Specifies whether the new DB instance is encrypted or not. StorageEncrypted *bool // Specifies the storage throughput value for the DB instance. This setting // doesn't apply to RDS Custom or Amazon Aurora. StorageThroughput *int32 - // Specifies the storage type to be associated with the DB instance. Valid values: + // Specifies the storage type to be associated with the DB instance. Valid Values: // gp2 | gp3 | io1 | standard If you specify io1 or gp3 , you must also include a // value for the Iops parameter. Default: io1 if the Iops parameter is specified; // otherwise gp2 @@ -345,8 +344,8 @@ type RestoreDBInstanceFromS3Input struct { // in the Amazon RDS User Guide. Tags []types.Tag - // A value that indicates whether the DB instance class of the DB instance uses - // its default processor features. + // Specifies whether the DB instance class of the DB instance uses its default + // processor features. UseDefaultProcessorFeatures *bool // A list of VPC security groups to associate with this DB instance. diff --git a/service/rds/api_op_RestoreDBInstanceToPointInTime.go b/service/rds/api_op_RestoreDBInstanceToPointInTime.go index a2f695606d0..1fb68f038b3 100644 --- a/service/rds/api_op_RestoreDBInstanceToPointInTime.go +++ b/service/rds/api_op_RestoreDBInstanceToPointInTime.go @@ -314,8 +314,8 @@ type RestoreDBInstanceToPointInTimeInput struct { // device. This setting doesn't apply to RDS Custom. TdeCredentialPassword *string - // A value that indicates whether the DB instance class of the DB instance uses - // its default processor features. This setting doesn't apply to RDS Custom. + // Specifies whether the DB instance class of the DB instance uses its default + // processor features. This setting doesn't apply to RDS Custom. UseDefaultProcessorFeatures *bool // Specifies whether the DB instance is restored from the latest backup time. By diff --git a/service/rds/api_op_StartExportTask.go b/service/rds/api_op_StartExportTask.go index 2fbf0205a4d..eeadf8758f2 100644 --- a/service/rds/api_op_StartExportTask.go +++ b/service/rds/api_op_StartExportTask.go @@ -96,8 +96,8 @@ type StartExportTaskInput struct { // This member is required. SourceArn *string - // The data to be exported from the snapshot or cluster. If this parameter is not - // provided, all of the data is exported. Valid values are the following: + // The data to be exported from the snapshot or cluster. If this parameter isn't + // provided, all of the data is exported. Valid Values: // - database - Export all the data from a specified database. // - database.table table-name - Export a table of the snapshot or cluster. This // format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. @@ -116,10 +116,10 @@ type StartExportTaskInput struct { } // Contains the details of a snapshot or cluster export to Amazon S3. This data -// type is used as a response element in the DescribeExportTasks action. +// type is used as a response element in the DescribeExportTasks operation. type StartExportTaskOutput struct { - // The data exported from the snapshot or cluster. Valid values are the following: + // The data exported from the snapshot or cluster. Valid Values: // - database - Export all the data from a specified database. // - database.table table-name - Export a table of the snapshot or cluster. This // format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. @@ -150,13 +150,13 @@ type StartExportTaskOutput struct { // The progress of the snapshot or cluster export task as a percentage. PercentProgress int32 - // The Amazon S3 bucket that the snapshot or cluster is exported to. + // The Amazon S3 bucket where the snapshot or cluster is exported to. S3Bucket *string // The Amazon S3 bucket prefix that is the file name and path of the exported data. S3Prefix *string - // The time that the snapshot was created. + // The time when the snapshot was created. SnapshotTime *time.Time // The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. @@ -174,10 +174,10 @@ type StartExportTaskOutput struct { // - STARTING Status *string - // The time that the snapshot or cluster export task ended. + // The time when the snapshot or cluster export task ended. TaskEndTime *time.Time - // The time that the snapshot or cluster export task started. + // The time when the snapshot or cluster export task started. TaskStartTime *time.Time // The total amount of data exported, in gigabytes. diff --git a/service/rds/types/types.go b/service/rds/types/types.go index ceee72dcff3..b91fdcd2a6d 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -204,7 +204,7 @@ type Certificate struct { // The type of the certificate. CertificateType *string - // Whether there is an override for the default certificate identifier. + // Indicates whether there is an override for the default certificate identifier. CustomerOverride *bool // If there is an override for the default certificate identifier, when the @@ -292,8 +292,8 @@ type ClusterPendingModifiedValues struct { // The database engine version. EngineVersion *string - // A value that indicates whether mapping of Amazon Web Services Identity and - // Access Management (IAM) accounts to database accounts is enabled. + // Indicates whether mapping of Amazon Web Services Identity and Access Management + // (IAM) accounts to database accounts is enabled. IAMDatabaseAuthenticationEnabled *bool // The Provisioned IOPS (I/O operations per second) value. This setting is only @@ -318,9 +318,10 @@ type ClusterPendingModifiedValues struct { type ConnectionPoolConfiguration struct { // The number of seconds for a proxy to wait for a connection to become available - // in the connection pool. Only applies when the proxy has opened its maximum - // number of connections and all connections are busy with client sessions. - // Default: 120 Constraints: between 1 and 3600, or 0 representing unlimited + // in the connection pool. This setting only applies when the proxy has opened its + // maximum number of connections and all connections are busy with client sessions. + // For an unlimited wait time, specify 0 . Default: 120 Constraints: + // - Must be between 0 and 3600. ConnectionBorrowTimeout *int32 // One or more SQL statements for the proxy to run when opening each new database @@ -336,21 +337,23 @@ type ConnectionPoolConfiguration struct { // DB instance or Aurora DB cluster used by the target group. If you specify // MaxIdleConnectionsPercent , then you must also include a value for this // parameter. Default: 10 for RDS for Microsoft SQL Server, and 100 for all other - // engines Constraints: Must be between 1 and 100. + // engines Constraints: + // - Must be between 1 and 100. MaxConnectionsPercent *int32 - // Controls how actively the proxy closes idle database connections in the - // connection pool. The value is expressed as a percentage of the max_connections - // setting for the RDS DB instance or Aurora DB cluster used by the target group. - // With a high value, the proxy leaves a high percentage of idle database - // connections open. A low value causes the proxy to close more idle connections - // and return them to the database. If you specify this parameter, then you must - // also include a value for MaxConnectionsPercent . Default: The default value is - // half of the value of MaxConnectionsPercent . For example, if + // A value that controls how actively the proxy closes idle database connections + // in the connection pool. The value is expressed as a percentage of the + // max_connections setting for the RDS DB instance or Aurora DB cluster used by the + // target group. With a high value, the proxy leaves a high percentage of idle + // database connections open. A low value causes the proxy to close more idle + // connections and return them to the database. If you specify this parameter, then + // you must also include a value for MaxConnectionsPercent . Default: The default + // value is half of the value of MaxConnectionsPercent . For example, if // MaxConnectionsPercent is 80, then the default value of MaxIdleConnectionsPercent // is 40. If the value of MaxConnectionsPercent isn't specified, then for SQL - // Server, MaxIdleConnectionsPercent is 5, and for all other engines, the default - // is 50. Constraints: Must be between 0 and the value of MaxConnectionsPercent . + // Server, MaxIdleConnectionsPercent is 5 , and for all other engines, the default + // is 50 . Constraints: + // - Must be between 0 and the value of MaxConnectionsPercent . MaxIdleConnectionsPercent *int32 // Each item in the list represents a class of SQL operations that normally cause @@ -583,7 +586,7 @@ type DBCluster struct { // The version of the database engine. EngineVersion *string - // Specifies whether write forwarding is enabled for a secondary cluster in an + // Indicates whether write forwarding is enabled for a secondary cluster in an // Aurora global database. Because write forwarding takes time to enable, check the // value of GlobalWriteForwardingStatus to confirm that the request has completed // before using the write forwarding feature for this cluster. @@ -624,7 +627,7 @@ type DBCluster struct { // The latest time to which a database can be restored with point-in-time restore. LatestRestorableTime *time.Time - // Specifies whether an Aurora DB cluster has in-cluster write forwarding enabled, + // Indicates whether an Aurora DB cluster has in-cluster write forwarding enabled, // not enabled, requested, or is in the process of enabling it. LocalWriteForwardingStatus LocalWriteForwardingStatus @@ -807,8 +810,8 @@ type DBClusterAutomatedBackup struct { // The version of the database engine for the automated backup. EngineVersion *string - // True if mapping of Amazon Web Services Identity and Access Management (IAM) - // accounts to database accounts is enabled, and otherwise false. + // Indicates whether mapping of Amazon Web Services Identity and Access Management + // (IAM) accounts to database accounts is enabled. IAMDatabaseAuthenticationEnabled bool // The IOPS (I/O operations per second) value for the automated backup. This @@ -840,7 +843,7 @@ type DBClusterAutomatedBackup struct { // - retained - Automated backups for deleted clusters. Status *string - // Specifies whether the source DB cluster is encrypted. + // Indicates whether the source DB cluster is encrypted. StorageEncrypted bool // The storage type associated with the DB cluster. This setting is only for @@ -950,8 +953,8 @@ type DBClusterMember struct { // Specifies the instance identifier for this member of the DB cluster. DBInstanceIdentifier *string - // Value that is true if the cluster member is the primary instance for the DB - // cluster and false otherwise. + // Indicates whether the cluster member is the primary DB instance for the DB + // cluster. IsClusterWriter bool // A value that specifies the order in which an Aurora Replica is promoted to the @@ -1026,45 +1029,44 @@ type DBClusterRole struct { // used as a response element in the DescribeDBClusterSnapshots action. type DBClusterSnapshot struct { - // Specifies the allocated storage size in gibibytes (GiB). + // The allocated storage size of the DB cluster snapshot in gibibytes (GiB). AllocatedStorage int32 - // Provides the list of Availability Zones (AZs) where instances in the DB cluster - // snapshot can be restored. + // The list of Availability Zones (AZs) where instances in the DB cluster snapshot + // can be restored. AvailabilityZones []string - // Specifies the time when the DB cluster was created, in Universal Coordinated - // Time (UTC). + // The time when the DB cluster was created, in Universal Coordinated Time (UTC). ClusterCreateTime *time.Time - // Specifies the DB cluster identifier of the DB cluster that this DB cluster - // snapshot was created from. + // The DB cluster identifier of the DB cluster that this DB cluster snapshot was + // created from. DBClusterIdentifier *string - // Specifies the Amazon Resource Name (ARN) for the DB cluster snapshot. + // The Amazon Resource Name (ARN) for the DB cluster snapshot. DBClusterSnapshotArn *string - // Specifies the identifier for the DB cluster snapshot. + // The identifier for the DB cluster snapshot. DBClusterSnapshotIdentifier *string // Reserved for future use. DBSystemId *string - // Specifies the resource ID of the DB cluster that this DB cluster snapshot was - // created from. + // The resource ID of the DB cluster that this DB cluster snapshot was created + // from. DbClusterResourceId *string - // Specifies the name of the database engine for this DB cluster snapshot. + // The name of the database engine for this DB cluster snapshot. Engine *string - // Provides the engine mode of the database engine for this DB cluster snapshot. + // The engine mode of the database engine for this DB cluster snapshot. EngineMode *string - // Provides the version of the database engine for this DB cluster snapshot. + // The version of the database engine for this DB cluster snapshot. EngineVersion *string - // True if mapping of Amazon Web Services Identity and Access Management (IAM) - // accounts to database accounts is enabled, and otherwise false. + // Indicates whether mapping of Amazon Web Services Identity and Access Management + // (IAM) accounts to database accounts is enabled. IAMDatabaseAuthenticationEnabled bool // If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the @@ -1072,24 +1074,22 @@ type DBClusterSnapshot struct { // key ARN, key ID, alias ARN, or alias name for the KMS key. KmsKeyId *string - // Provides the license model information for this DB cluster snapshot. + // The license model information for this DB cluster snapshot. LicenseModel *string - // Provides the master username for this DB cluster snapshot. + // The master username for this DB cluster snapshot. MasterUsername *string - // Specifies the percentage of the estimated data that has been transferred. + // The percentage of the estimated data that has been transferred. PercentProgress int32 - // Specifies the port that the DB cluster was listening on at the time of the - // snapshot. + // The port that the DB cluster was listening on at the time of the snapshot. Port int32 - // Provides the time when the snapshot was taken, in Universal Coordinated Time - // (UTC). + // The time when the snapshot was taken, in Universal Coordinated Time (UTC). SnapshotCreateTime *time.Time - // Provides the type of the DB cluster snapshot. + // The type of the DB cluster snapshot. SnapshotType *string // If the DB cluster snapshot was copied from a source DB cluster snapshot, the @@ -1097,14 +1097,13 @@ type DBClusterSnapshot struct { // value. SourceDBClusterSnapshotArn *string - // Specifies the status of this DB cluster snapshot. Valid statuses are the - // following: + // The status of this DB cluster snapshot. Valid statuses are the following: // - available // - copying // - creating Status *string - // Specifies whether the DB cluster snapshot is encrypted. + // Indicates whether the DB cluster snapshot is encrypted. StorageEncrypted bool // The storage type associated with the DB cluster snapshot. This setting is only @@ -1115,7 +1114,7 @@ type DBClusterSnapshot struct { // in the Amazon RDS User Guide. TagList []Tag - // Provides the VPC ID associated with the DB cluster snapshot. + // The VPC ID associated with the DB cluster snapshot. VpcId *string noSmithyDocumentSerde @@ -1257,30 +1256,29 @@ type DBEngineVersion struct { // the CreateDBInstance action. SupportedTimezones []Timezone - // A value that indicates whether the engine version supports Babelfish for Aurora - // PostgreSQL. + // Indicates whether the engine version supports Babelfish for Aurora PostgreSQL. SupportsBabelfish bool - // A value that indicates whether the engine version supports rotating the server - // certificate without rebooting the DB instance. + // Indicates whether the engine version supports rotating the server certificate + // without rebooting the DB instance. SupportsCertificateRotationWithoutRestart *bool - // A value that indicates whether you can use Aurora global databases with a - // specific DB engine version. + // Indicates whether you can use Aurora global databases with a specific DB engine + // version. SupportsGlobalDatabases bool - // A value that indicates whether the DB engine version supports forwarding write - // operations from reader DB instances to the writer DB instance in the DB cluster. - // By default, write operations aren't allowed on reader DB instances. Valid for: + // Indicates whether the DB engine version supports forwarding write operations + // from reader DB instances to the writer DB instance in the DB cluster. By + // default, write operations aren't allowed on reader DB instances. Valid for: // Aurora DB clusters only SupportsLocalWriteForwarding *bool - // A value that indicates whether the engine version supports exporting the log - // types specified by ExportableLogTypes to CloudWatch Logs. + // Indicates whether the engine version supports exporting the log types specified + // by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool - // A value that indicates whether you can use Aurora parallel query with a - // specific DB engine version. + // Indicates whether you can use Aurora parallel query with a specific DB engine + // version. SupportsParallelQuery bool // Indicates whether the database engine version supports read replicas. @@ -1683,7 +1681,7 @@ type DBInstance struct { // you deleted the source instance. type DBInstanceAutomatedBackup struct { - // Specifies the allocated storage size in gibibytes (GiB). + // The allocated storage size for the the automated backup in gibibytes (GiB). AllocatedStorage int32 // The Availability Zone that the automated backup was created in. For information @@ -1699,8 +1697,8 @@ type DBInstanceAutomatedBackup struct { // The retention period for the automated backups. BackupRetentionPeriod *int32 - // Specifies where automated backups are stored: Amazon Web Services Outposts or - // the Amazon Web Services Region. + // The location where automated backups are stored: Amazon Web Services Outposts + // or the Amazon Web Services Region. BackupTarget *string // The Amazon Resource Name (ARN) for the automated backups. @@ -1721,7 +1719,7 @@ type DBInstanceAutomatedBackup struct { // unique to an Amazon Web Services Region. DbiResourceId *string - // Specifies whether the automated backup is encrypted. + // Indicates whether the automated backup is encrypted. Encrypted bool // The name of the database engine for this automated backup. @@ -1734,7 +1732,7 @@ type DBInstanceAutomatedBackup struct { // accounts to database accounts is enabled, and otherwise false. IAMDatabaseAuthenticationEnabled bool - // Provides the date and time that the DB instance was created. + // The date and time when the DB instance was created. InstanceCreateTime *time.Time // The IOPS (I/O operations per second) value for the automated backup. @@ -1745,7 +1743,7 @@ type DBInstanceAutomatedBackup struct { // the KMS key. KmsKeyId *string - // License model information for the automated backup. + // The license model information for the automated backup. LicenseModel *string // The master user name of an automated backup. @@ -1762,20 +1760,20 @@ type DBInstanceAutomatedBackup struct { // The Amazon Web Services Region associated with the automated backup. Region *string - // Earliest and latest time an instance can be restored to. + // The earliest and latest time a DB instance can be restored to. RestoreWindow *RestoreWindow - // Provides a list of status information for an automated backup: + // A list of status information for an automated backup: // - active - Automated backups for current instances. // - retained - Automated backups for deleted instances. // - creating - Automated backups that are waiting for the first automated // snapshot to be available. Status *string - // Specifies the storage throughput for the automated backup. + // The storage throughput for the automated backup. StorageThroughput *int32 - // Specifies the storage type associated with the automated backup. + // The storage type associated with the automated backup. StorageType *string // The ARN from the key store with which the automated backup is associated for @@ -1787,7 +1785,7 @@ type DBInstanceAutomatedBackup struct { // were created with a time zone specified. Timezone *string - // Provides the VPC ID associated with the DB instance. + // The VPC ID associated with the DB instance. VpcId *string noSmithyDocumentSerde @@ -1804,8 +1802,8 @@ type DBInstanceAutomatedBackupsReplication struct { noSmithyDocumentSerde } -// Describes an Amazon Web Services Identity and Access Management (IAM) role that -// is associated with a DB instance. +// Information about an Amazon Web Services Identity and Access Management (IAM) +// role that is associated with a DB instance. type DBInstanceRole struct { // The name of the feature associated with the Amazon Web Services Identity and @@ -1817,8 +1815,8 @@ type DBInstanceRole struct { // instance. RoleArn *string - // Describes the state of association between the IAM role and the DB instance. - // The Status property returns one of the following values: + // Information about the state of association between the IAM role and the DB + // instance. The Status property returns one of the following values: // - ACTIVE - the IAM role ARN is associated with the DB instance and can be used // to access other Amazon Web Services services on your behalf. // - PENDING - the IAM role ARN is being associated with the DB instance. @@ -1837,13 +1835,13 @@ type DBInstanceStatusInfo struct { // isn't in an error state, this value is blank. Message *string - // Boolean value that is true if the instance is operating normally, or false if + // A Boolean value that is true if the instance is operating normally, or false if // the instance is in an error state. Normal bool - // Status of the DB instance. For a StatusType of read replica, the values can be - // replicating, replication stop point set, replication stop point reached, error, - // stopped, or terminated. + // The status of the DB instance. For a StatusType of read replica, the values can + // be replicating, replication stop point set, replication stop point reached, + // error, stopped, or terminated. Status *string // This value is currently "read replication." @@ -1909,13 +1907,13 @@ type DBProxy struct { // your Amazon Web Services account in the specified Amazon Web Services Region. DBProxyName *string - // Whether the proxy includes detailed information about SQL statements in its - // logs. This information helps you to debug issues involving SQL behavior or the - // performance and scalability of the proxy connections. The debug information - // includes the text of SQL statements that you submit through the proxy. Thus, - // only enable this setting when needed for debugging, and only when you have - // security measures in place to safeguard any sensitive information that appears - // in the logs. + // Indicates whether the proxy includes detailed information about SQL statements + // in its logs. This information helps you to debug issues involving SQL behavior + // or the performance and scalability of the proxy connections. The debug + // information includes the text of SQL statements that you submit through the + // proxy. Thus, only enable this setting when needed for debugging, and only when + // you have security measures in place to safeguard any sensitive information that + // appears in the logs. DebugLogging bool // The endpoint that you can use to connect to the DB proxy. You include the @@ -1989,10 +1987,10 @@ type DBProxyEndpoint struct { // endpoint value in the connection string for a database client application. Endpoint *string - // A value that indicates whether this endpoint is the default endpoint for the - // associated DB proxy. Default DB proxy endpoints always have read/write - // capability. Other endpoints that you associate with the DB proxy can be either - // read/write or read-only. + // Indicates whether this endpoint is the default endpoint for the associated DB + // proxy. Default DB proxy endpoints always have read/write capability. Other + // endpoints that you associate with the DB proxy can be either read/write or + // read-only. IsDefault bool // The current status of this DB proxy endpoint. A status of available means the @@ -2070,9 +2068,9 @@ type DBProxyTargetGroup struct { // The identifier for the RDS proxy associated with this target group. DBProxyName *string - // Whether this target group is the first one used for connection requests by the - // associated proxy. Because each proxy is currently associated with a single - // target group, currently this setting is always true . + // Indicates whether this target group is the first one used for connection + // requests by the associated proxy. Because each proxy is currently associated + // with a single target group, currently this setting is always true . IsDefault bool // The current status of this target group. A status of available means the target @@ -2170,7 +2168,7 @@ type DBSnapshot struct { // unique to an Amazon Web Services Region. DbiResourceId *string - // Specifies whether the DB snapshot is encrypted. + // Indicates whether the DB snapshot is encrypted. Encrypted bool // Specifies the name of the database engine. @@ -2179,8 +2177,8 @@ type DBSnapshot struct { // Specifies the version of the database engine. EngineVersion *string - // True if mapping of Amazon Web Services Identity and Access Management (IAM) - // accounts to database accounts is enabled, and otherwise false. + // Indicates whether mapping of Amazon Web Services Identity and Access Management + // (IAM) accounts to database accounts is enabled. IAMDatabaseAuthenticationEnabled bool // Specifies the time in Coordinated Universal Time (UTC) when the DB instance, @@ -2553,10 +2551,10 @@ type EventSubscription struct { } // Contains the details of a snapshot or cluster export to Amazon S3. This data -// type is used as a response element in the DescribeExportTasks action. +// type is used as a response element in the DescribeExportTasks operation. type ExportTask struct { - // The data exported from the snapshot or cluster. Valid values are the following: + // The data exported from the snapshot or cluster. Valid Values: // - database - Export all the data from a specified database. // - database.table table-name - Export a table of the snapshot or cluster. This // format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. @@ -2587,13 +2585,13 @@ type ExportTask struct { // The progress of the snapshot or cluster export task as a percentage. PercentProgress int32 - // The Amazon S3 bucket that the snapshot or cluster is exported to. + // The Amazon S3 bucket where the snapshot or cluster is exported to. S3Bucket *string // The Amazon S3 bucket prefix that is the file name and path of the exported data. S3Prefix *string - // The time that the snapshot was created. + // The time when the snapshot was created. SnapshotTime *time.Time // The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. @@ -2611,10 +2609,10 @@ type ExportTask struct { // - STARTING Status *string - // The time that the snapshot or cluster export task ended. + // The time when the snapshot or cluster export task ended. TaskEndTime *time.Time - // The time that the snapshot or cluster export task started. + // The time when the snapshot or cluster export task started. TaskStartTime *time.Time // The total amount of data exported, in gigabytes. @@ -2737,11 +2735,10 @@ type GlobalClusterMember struct { // The Amazon Resource Name (ARN) for each Aurora DB cluster in the global cluster. DBClusterArn *string - // Specifies whether a secondary cluster in the global cluster has write - // forwarding enabled, not enabled, or is in the process of enabling it. + // The status of write forwarding for a secondary cluster in the global cluster. GlobalWriteForwardingStatus WriteForwardingStatus - // Specifies whether the Aurora DB cluster is the primary cluster (that is, has + // Indicates whether the Aurora DB cluster is the primary cluster (that is, has // read-write capability) for the global cluster with which it is associated. IsWriter bool @@ -2759,11 +2756,11 @@ type GlobalClusterMember struct { // action. type IPRange struct { - // Specifies the IP range. + // The IP range. CIDRIP *string - // Specifies the status of the IP range. Status can be "authorizing", - // "authorized", "revoking", and "revoked". + // The status of the IP range. Status can be "authorizing", "authorized", + // "revoking", and "revoked". Status *string noSmithyDocumentSerde @@ -2812,7 +2809,7 @@ type MinimumEngineVersionPerAllowedValue struct { noSmithyDocumentSerde } -// Option details. +// The details of an option. type Option struct { // If the option requires access to a port, then this DB security group allows @@ -2831,10 +2828,10 @@ type Option struct { // The version of the option. OptionVersion *string - // Indicate if this option is permanent. + // Indicates whether this option is permanent. Permanent bool - // Indicate if this option is persistent. + // Indicates whether this option is persistent. Persistent bool // If required, the port configured for this option to use. @@ -2935,7 +2932,7 @@ type OptionGroupMembership struct { // Available option. type OptionGroupOption struct { - // Specifies whether the option can be copied across Amazon Web Services accounts. + // Indicates whether the option can be copied across Amazon Web Services accounts. CopyableCrossAccount *bool // If the option requires a port, specifies the default port for the option. @@ -2978,7 +2975,7 @@ type OptionGroupOption struct { // option group, your can remove the persistent option from the option group. Persistent bool - // Specifies whether the option requires a port. + // Indicates whether the option requires a port. PortRequired bool // If true, you must enable the Auto Minor Version Upgrade setting for your DB @@ -3011,12 +3008,12 @@ type OptionGroupOptionSetting struct { // The default value for the option group option. DefaultValue *string - // Boolean value where true indicates that this option group option can be changed - // from the default value. + // Indicates whether this option group option can be changed from the default + // value. IsModifiable bool - // Boolean value where true indicates that a value must be specified for this - // option setting of the option group option. + // Indicates whether a value must be specified for this option setting of the + // option group option. IsRequired bool // The minimum DB engine version required for the corresponding allowed value for @@ -3053,11 +3050,10 @@ type OptionSetting struct { // The description of the option setting. Description *string - // Indicates if the option setting is part of a collection. + // Indicates whether the option setting is part of a collection. IsCollection bool - // A Boolean value that, when true, indicates the option setting can be modified - // from the default. + // Indicates whether the option setting can be modified from the default. IsModifiable bool // The name of the option that has settings that you can set. @@ -3073,7 +3069,7 @@ type OptionSetting struct { // DescribeOptionGroupOptions action. type OptionVersion struct { - // True if the version is the default version of the option, and otherwise false. + // Indicates whether the version is the default version of the option. IsDefault bool // The version of the option. @@ -3141,15 +3137,15 @@ type OrderableDBInstanceOption struct { // Indicates whether a DB instance is Multi-AZ capable. MultiAZCapable bool - // Whether a DB instance supports RDS on Outposts. For more information about RDS - // on Outposts, see Amazon RDS on Amazon Web Services Outposts (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + // Indicates whether a DB instance supports RDS on Outposts. For more information + // about RDS on Outposts, see Amazon RDS on Amazon Web Services Outposts (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) // in the Amazon RDS User Guide. OutpostCapable bool // Indicates whether a DB instance can have a read replica. ReadReplicaCapable bool - // Indicates the storage type for a DB instance. + // The storage type for a DB instance. StorageType *string // The list of supported modes for Database Activity Streams. Aurora PostgreSQL @@ -3167,9 +3163,9 @@ type OrderableDBInstanceOption struct { // in the Amazon RDS User Guide. SupportedNetworkTypes []string - // Whether DB instances can be configured as a Multi-AZ DB cluster. For more - // information on Multi-AZ DB clusters, see Multi-AZ deployments with two readable - // standby DB instances (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + // Indicates whether DB instances can be configured as a Multi-AZ DB cluster. For + // more information on Multi-AZ DB clusters, see Multi-AZ deployments with two + // readable standby DB instances (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) // in the Amazon RDS User Guide. SupportsClusters bool @@ -3177,8 +3173,8 @@ type OrderableDBInstanceOption struct { // 1 to 60 seconds. SupportsEnhancedMonitoring bool - // A value that indicates whether you can use Aurora global databases with a - // specific combination of other DB engine attributes. + // Indicates whether you can use Aurora global databases with a specific + // combination of other DB engine attributes. SupportsGlobalDatabases bool // Indicates whether a DB instance supports IAM database authentication. @@ -3187,14 +3183,14 @@ type OrderableDBInstanceOption struct { // Indicates whether a DB instance supports provisioned IOPS. SupportsIops bool - // Whether a DB instance supports Kerberos Authentication. + // Indicates whether a DB instance supports Kerberos Authentication. SupportsKerberosAuthentication *bool - // True if a DB instance supports Performance Insights, otherwise false. + // Indicates whether a DB instance supports Performance Insights. SupportsPerformanceInsights bool - // Whether Amazon RDS can automatically scale storage for DB instances that use - // the specified DB instance class. + // Indicates whether Amazon RDS can automatically scale storage for DB instances + // that use the specified DB instance class. SupportsStorageAutoscaling *bool // Indicates whether a DB instance supports encrypted storage. @@ -3248,13 +3244,13 @@ type Parameter struct { // The earliest engine version to which the parameter can apply. MinimumEngineVersion *string - // Specifies the name of the parameter. + // The name of the parameter. ParameterName *string - // Specifies the value of the parameter. + // The value of the parameter. ParameterValue *string - // Indicates the source of the parameter value. + // The source of the parameter value. Source *string // The valid DB engine modes. @@ -3351,8 +3347,8 @@ type PendingModifiedValues struct { // The database engine version. EngineVersion *string - // Whether mapping of Amazon Web Services Identity and Access Management (IAM) - // accounts to database accounts is enabled. + // Indicates whether mapping of Amazon Web Services Identity and Access Management + // (IAM) accounts to database accounts is enabled. IAMDatabaseAuthenticationEnabled *bool // The Provisioned IOPS value for the DB instance. @@ -3365,7 +3361,7 @@ type PendingModifiedValues struct { // The master credentials for the DB instance. MasterUserPassword *string - // A value that indicates that the Single-AZ DB instance will change to a Multi-AZ + // Indicates whether the Single-AZ DB instance will change to a Multi-AZ // deployment. MultiAZ *bool @@ -3488,7 +3484,7 @@ type ReservedDBInstance struct { // reserved DB instance. LeaseId *string - // Indicates if the reservation applies to Multi-AZ deployments. + // Indicates whether the reservation applies to Multi-AZ deployments. MultiAZ bool // The offering type of this reserved DB instance. @@ -3537,7 +3533,7 @@ type ReservedDBInstancesOffering struct { // The fixed price charged for this offering. FixedPrice float64 - // Indicates if the offering applies to Multi-AZ deployments. + // Indicates whether the offering applies to Multi-AZ deployments. MultiAZ bool // The offering type. @@ -3588,11 +3584,11 @@ type RestoreWindow struct { // in the Amazon Aurora User Guide. type ScalingConfiguration struct { - // A value that indicates whether to allow or disallow automatic pause for an - // Aurora DB cluster in serverless DB engine mode. A DB cluster can be paused only - // when it's idle (it has no connections). If a DB cluster is paused for more than - // seven days, the DB cluster might be backed up with a snapshot. In this case, the - // DB cluster is restored when there is a request to connect to it. + // Indicates whether to allow or disallow automatic pause for an Aurora DB cluster + // in serverless DB engine mode. A DB cluster can be paused only when it's idle + // (it has no connections). If a DB cluster is paused for more than seven days, the + // DB cluster might be backed up with a snapshot. In this case, the DB cluster is + // restored when there is a request to connect to it. AutoPause *bool // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. For @@ -3636,9 +3632,9 @@ type ScalingConfiguration struct { // in the Amazon Aurora User Guide. type ScalingConfigurationInfo struct { - // A value that indicates whether automatic pause is allowed for the Aurora DB - // cluster in serverless DB engine mode. When the value is set to false for an - // Aurora Serverless v1 DB cluster, the DB cluster automatically resumes. + // Indicates whether automatic pause is allowed for the Aurora DB cluster in + // serverless DB engine mode. When the value is set to false for an Aurora + // Serverless v1 DB cluster, the DB cluster automatically resumes. AutoPause *bool // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. @@ -3720,8 +3716,8 @@ type SourceRegion struct { // The status of the source Amazon Web Services Region. Status *string - // Whether the source Amazon Web Services Region supports replicating automated - // backups to the current Amazon Web Services Region. + // Indicates whether the source Amazon Web Services Region supports replicating + // automated backups to the current Amazon Web Services Region. SupportsDBInstanceAutomatedBackupsReplication bool noSmithyDocumentSerde @@ -3830,8 +3826,8 @@ type Timezone struct { // The version of the database engine that a DB instance can be upgraded to. type UpgradeTarget struct { - // A value that indicates whether the target version is applied to any source DB - // instances that have AutoMinorVersionUpgrade set to true. + // Indicates whether the target version is applied to any source DB instances that + // have AutoMinorVersionUpgrade set to true. AutoUpgrade bool // The version of the database engine that a DB instance can be upgraded to. @@ -3843,29 +3839,29 @@ type UpgradeTarget struct { // The version number of the upgrade target database engine. EngineVersion *string - // A value that indicates whether upgrading to the target version requires - // upgrading the major version of the database engine. + // Indicates whether upgrading to the target version requires upgrading the major + // version of the database engine. IsMajorVersionUpgrade bool // A list of the supported DB engine modes for the target engine version. SupportedEngineModes []string - // A value that indicates whether you can use Babelfish for Aurora PostgreSQL with - // the target engine version. + // Indicates whether you can use Babelfish for Aurora PostgreSQL with the target + // engine version. SupportsBabelfish *bool - // A value that indicates whether you can use Aurora global databases with the - // target engine version. + // Indicates whether you can use Aurora global databases with the target engine + // version. SupportsGlobalDatabases *bool - // A value that indicates whether the target engine version supports forwarding - // write operations from reader DB instances to the writer DB instance in the DB - // cluster. By default, write operations aren't allowed on reader DB instances. - // Valid for: Aurora DB clusters only + // Indicates whether the target engine version supports forwarding write + // operations from reader DB instances to the writer DB instance in the DB cluster. + // By default, write operations aren't allowed on reader DB instances. Valid for: + // Aurora DB clusters only SupportsLocalWriteForwarding *bool - // A value that indicates whether you can use Aurora parallel query with the - // target engine version. + // Indicates whether you can use Aurora parallel query with the target engine + // version. SupportsParallelQuery *bool noSmithyDocumentSerde @@ -3886,9 +3882,10 @@ type UserAuthConfig struct { // as a specific database user. Description *string - // Whether to require or disallow Amazon Web Services Identity and Access - // Management (IAM) authentication for connections to the proxy. The ENABLED value - // is valid only for proxies with RDS for Microsoft SQL Server. + // A value that indicates whether to require or disallow Amazon Web Services + // Identity and Access Management (IAM) authentication for connections to the + // proxy. The ENABLED value is valid only for proxies with RDS for Microsoft SQL + // Server. IAMAuth IAMAuthMode // The Amazon Resource Name (ARN) representing the secret that the proxy uses to @@ -3975,8 +3972,8 @@ type ValidStorageOptions struct { // The valid storage types for your DB instance. For example: gp2, gp3, io1. StorageType *string - // Whether or not Amazon RDS can automatically scale storage for DB instances that - // use the new instance class. + // Indicates whether or not Amazon RDS can automatically scale storage for DB + // instances that use the new instance class. SupportsStorageAutoscaling bool noSmithyDocumentSerde diff --git a/service/route53/api_op_ChangeResourceRecordSets.go b/service/route53/api_op_ChangeResourceRecordSets.go index 6140f1d4f3d..f66d74c4478 100644 --- a/service/route53/api_op_ChangeResourceRecordSets.go +++ b/service/route53/api_op_ChangeResourceRecordSets.go @@ -51,8 +51,8 @@ import ( // - CREATE : Creates a resource record set that has the specified values. // - DELETE : Deletes an existing resource record set that has the specified // values. -// - UPSERT : If a resource set exists Route 53 updates it with the values in the -// request. +// - UPSERT : If a resource set doesn't exist, Route 53 creates it. If a resource +// set exists Route 53 updates it with the values in the request. // // Syntaxes for Creating, Updating, and Deleting Resource Record Sets The syntax // for a request depends on the type of resource record set that you want to diff --git a/service/route53/api_op_CreateHealthCheck.go b/service/route53/api_op_CreateHealthCheck.go index edee1f8b5ff..dbee4bf19b8 100644 --- a/service/route53/api_op_CreateHealthCheck.go +++ b/service/route53/api_op_CreateHealthCheck.go @@ -73,6 +73,9 @@ type CreateHealthCheckInput struct { // - If you send a CreateHealthCheck request with a unique CallerReference but // settings identical to an existing health check, Route 53 creates the health // check. + // Route 53 does not store the CallerReference for a deleted health check + // indefinitely. The CallerReference for a deleted health check will be deleted + // after a number of days. // // This member is required. CallerReference *string diff --git a/service/route53/api_op_CreateTrafficPolicyInstance.go b/service/route53/api_op_CreateTrafficPolicyInstance.go index 245dddaf652..f445bff4076 100644 --- a/service/route53/api_op_CreateTrafficPolicyInstance.go +++ b/service/route53/api_op_CreateTrafficPolicyInstance.go @@ -21,7 +21,12 @@ import ( // associates the resource record sets with a specified domain name (such as // example.com) or subdomain name (such as www.example.com). Amazon Route 53 // responds to DNS queries for the domain or subdomain name by using the resource -// record sets that CreateTrafficPolicyInstance created. +// record sets that CreateTrafficPolicyInstance created. After you submit an +// CreateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 +// creates the resource record sets that are specified in the traffic policy +// definition. Use GetTrafficPolicyInstance with the id of new traffic policy +// instance to confirm that the CreateTrafficPolicyInstance request completed +// successfully. For more information, see the State response element. func (c *Client) CreateTrafficPolicyInstance(ctx context.Context, params *CreateTrafficPolicyInstanceInput, optFns ...func(*Options)) (*CreateTrafficPolicyInstanceOutput, error) { if params == nil { params = &CreateTrafficPolicyInstanceInput{} diff --git a/service/route53/api_op_GetGeoLocation.go b/service/route53/api_op_GetGeoLocation.go index 8faad965e07..62d6193bb02 100644 --- a/service/route53/api_op_GetGeoLocation.go +++ b/service/route53/api_op_GetGeoLocation.go @@ -60,6 +60,7 @@ type GetGeoLocationInput struct { // Amazon Route 53 uses the two-letter country codes that are specified in ISO // standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) . + // Route 53 also supports the contry code UA forr Ukraine. CountryCode *string // The code for the subdivision, such as a particular state within the United diff --git a/service/route53/api_op_GetTrafficPolicyInstance.go b/service/route53/api_op_GetTrafficPolicyInstance.go index fb5d39bebfd..9605d85a4b9 100644 --- a/service/route53/api_op_GetTrafficPolicyInstance.go +++ b/service/route53/api_op_GetTrafficPolicyInstance.go @@ -16,12 +16,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about a specified traffic policy instance. After you submit a -// CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's -// a brief delay while Amazon Route 53 creates the resource record sets that are -// specified in the traffic policy definition. For more information, see the State -// response element. In the Route 53 console, traffic policy instances are known as -// policy records. +// Gets information about a specified traffic policy instance. Use +// GetTrafficPolicyInstance with the id of new traffic policy instance to confirm +// that the CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request +// completed successfully. For more information, see the State response element. +// In the Route 53 console, traffic policy instances are known as policy records. func (c *Client) GetTrafficPolicyInstance(ctx context.Context, params *GetTrafficPolicyInstanceInput, optFns ...func(*Options)) (*GetTrafficPolicyInstanceOutput, error) { if params == nil { params = &GetTrafficPolicyInstanceInput{} diff --git a/service/route53/api_op_ListHealthChecks.go b/service/route53/api_op_ListHealthChecks.go index 70e65e62746..31730c4e456 100644 --- a/service/route53/api_op_ListHealthChecks.go +++ b/service/route53/api_op_ListHealthChecks.go @@ -46,9 +46,9 @@ type ListHealthChecksInput struct { Marker *string // The maximum number of health checks that you want ListHealthChecks to return in - // response to the current request. Amazon Route 53 returns a maximum of 100 items. - // If you set MaxItems to a value greater than 100, Route 53 returns only the - // first 100 health checks. + // response to the current request. Amazon Route 53 returns a maximum of 1000 + // items. If you set MaxItems to a value greater than 1000, Route 53 returns only + // the first 1000 health checks. MaxItems *int32 noSmithyDocumentSerde @@ -177,9 +177,9 @@ var _ ListHealthChecksAPIClient = (*Client)(nil) // ListHealthChecksPaginatorOptions is the paginator options for ListHealthChecks type ListHealthChecksPaginatorOptions struct { // The maximum number of health checks that you want ListHealthChecks to return in - // response to the current request. Amazon Route 53 returns a maximum of 100 items. - // If you set MaxItems to a value greater than 100, Route 53 returns only the - // first 100 health checks. + // response to the current request. Amazon Route 53 returns a maximum of 1000 + // items. If you set MaxItems to a value greater than 1000, Route 53 returns only + // the first 1000 health checks. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/route53/api_op_ListHostedZones.go b/service/route53/api_op_ListHostedZones.go index 291a252b032..34df0a4525a 100644 --- a/service/route53/api_op_ListHostedZones.go +++ b/service/route53/api_op_ListHostedZones.go @@ -45,6 +45,9 @@ type ListHostedZonesInput struct { // reusable delegation set. DelegationSetId *string + // (Optional) Specifies if the hosted zone is private. + HostedZoneType types.HostedZoneType + // If the value of IsTruncated in the previous response was true , you have more // hosted zones. To get more hosted zones, submit another ListHostedZones request. // For the value of marker , specify the value of NextMarker from the previous diff --git a/service/route53/api_op_UpdateTrafficPolicyInstance.go b/service/route53/api_op_UpdateTrafficPolicyInstance.go index 4ccc5a82be9..47be4b0a7c4 100644 --- a/service/route53/api_op_UpdateTrafficPolicyInstance.go +++ b/service/route53/api_op_UpdateTrafficPolicyInstance.go @@ -16,6 +16,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// After you submit a UpdateTrafficPolicyInstance request, there's a brief delay +// while Route 53 creates the resource record sets that are specified in the +// traffic policy definition. Use GetTrafficPolicyInstance with the id of updated +// traffic policy instance confirm that the UpdateTrafficPolicyInstance request +// completed successfully. For more information, see the State response element. // Updates the resource record sets in a specified hosted zone that were created // based on the settings in a specified traffic policy version. When you update a // traffic policy instance, Amazon Route 53 continues to respond to DNS queries for diff --git a/service/route53/serializers.go b/service/route53/serializers.go index 21cab0cc606..897e11c3c55 100644 --- a/service/route53/serializers.go +++ b/service/route53/serializers.go @@ -4149,6 +4149,10 @@ func awsRestxml_serializeOpHttpBindingsListHostedZonesInput(v *ListHostedZonesIn encoder.SetQuery("delegationsetid").String(*v.DelegationSetId) } + if len(v.HostedZoneType) > 0 { + encoder.SetQuery("hostedzonetype").String(string(v.HostedZoneType)) + } + if v.Marker != nil { encoder.SetQuery("marker").String(*v.Marker) } diff --git a/service/route53/types/enums.go b/service/route53/types/enums.go index e761f92cc2a..30e48610d0c 100644 --- a/service/route53/types/enums.go +++ b/service/route53/types/enums.go @@ -266,6 +266,22 @@ func (HostedZoneLimitType) Values() []HostedZoneLimitType { } } +type HostedZoneType string + +// Enum values for HostedZoneType +const ( + HostedZoneTypePrivateHostedZone HostedZoneType = "PrivateHostedZone" +) + +// Values returns all known values for HostedZoneType. 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 (HostedZoneType) Values() []HostedZoneType { + return []HostedZoneType{ + "PrivateHostedZone", + } +} + type InsufficientDataHealthStatus string // Enum values for InsufficientDataHealthStatus diff --git a/service/route53/types/types.go b/service/route53/types/types.go index 16e1d95cc60..d5e7a7569f4 100644 --- a/service/route53/types/types.go +++ b/service/route53/types/types.go @@ -568,7 +568,8 @@ type GeoLocation struct { // For geolocation resource record sets, the two-letter code for a country. Amazon // Route 53 uses the two-letter country codes that are specified in ISO standard - // 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) . + // 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) . Route 53 + // also supports the contry code UA forr Ukraine. CountryCode *string // For geolocation resource record sets, the two-letter code for a state of the diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index b2b6b1b0517..54f4c185355 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -19185,6 +19185,555 @@ func awsRestjson1_deserializeDocumentAwsCorsConfiguration(v **types.AwsCorsConfi return nil } +func awsRestjson1_deserializeDocumentAwsDmsEndpointDetails(v **types.AwsDmsEndpointDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsDmsEndpointDetails + if *v == nil { + sv = &types.AwsDmsEndpointDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CertificateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CertificateArn = ptr.String(jtv) + } + + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "EndpointArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EndpointArn = ptr.String(jtv) + } + + case "EndpointIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EndpointIdentifier = ptr.String(jtv) + } + + case "EndpointType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EndpointType = ptr.String(jtv) + } + + case "EngineName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EngineName = ptr.String(jtv) + } + + case "ExternalId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ExternalId = ptr.String(jtv) + } + + case "ExtraConnectionAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ExtraConnectionAttributes = ptr.String(jtv) + } + + case "KmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.KmsKeyId = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + case "ServerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ServerName = ptr.String(jtv) + } + + case "SslMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SslMode = ptr.String(jtv) + } + + case "Username": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Username = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceDetails(v **types.AwsDmsReplicationInstanceDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsDmsReplicationInstanceDetails + if *v == nil { + sv = &types.AwsDmsReplicationInstanceDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AllocatedStorage": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AllocatedStorage = int32(i64) + } + + case "AutoMinorVersionUpgrade": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.AutoMinorVersionUpgrade = jtv + } + + case "AvailabilityZone": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AvailabilityZone = ptr.String(jtv) + } + + case "EngineVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EngineVersion = ptr.String(jtv) + } + + case "KmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.KmsKeyId = ptr.String(jtv) + } + + case "MultiAZ": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.MultiAZ = jtv + } + + case "PreferredMaintenanceWindow": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.PreferredMaintenanceWindow = ptr.String(jtv) + } + + case "PubliclyAccessible": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.PubliclyAccessible = jtv + } + + case "ReplicationInstanceClass": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationInstanceClass = ptr.String(jtv) + } + + case "ReplicationInstanceIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationInstanceIdentifier = ptr.String(jtv) + } + + case "ReplicationSubnetGroup": + if err := awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceReplicationSubnetGroupDetails(&sv.ReplicationSubnetGroup, value); err != nil { + return err + } + + case "VpcSecurityGroups": + if err := awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsList(&sv.VpcSecurityGroups, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceReplicationSubnetGroupDetails(v **types.AwsDmsReplicationInstanceReplicationSubnetGroupDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsDmsReplicationInstanceReplicationSubnetGroupDetails + if *v == nil { + sv = &types.AwsDmsReplicationInstanceReplicationSubnetGroupDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ReplicationSubnetGroupIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationSubnetGroupIdentifier = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsDetails(v **types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails + if *v == nil { + sv = &types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "VpcSecurityGroupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.VpcSecurityGroupId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsList(v *[]types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails + if *v == nil { + cv = []types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsDmsReplicationTaskDetails(v **types.AwsDmsReplicationTaskDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsDmsReplicationTaskDetails + if *v == nil { + sv = &types.AwsDmsReplicationTaskDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CdcStartPosition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CdcStartPosition = ptr.String(jtv) + } + + case "CdcStartTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CdcStartTime = ptr.String(jtv) + } + + case "CdcStopPosition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CdcStopPosition = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "MigrationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.MigrationType = ptr.String(jtv) + } + + case "ReplicationInstanceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationInstanceArn = ptr.String(jtv) + } + + case "ReplicationTaskIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationTaskIdentifier = ptr.String(jtv) + } + + case "ReplicationTaskSettings": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ReplicationTaskSettings = ptr.String(jtv) + } + + case "ResourceIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ResourceIdentifier = ptr.String(jtv) + } + + case "SourceEndpointArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SourceEndpointArn = ptr.String(jtv) + } + + case "TableMappings": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.TableMappings = ptr.String(jtv) + } + + case "TargetEndpointArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.TargetEndpointArn = ptr.String(jtv) + } + + case "TaskData": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.TaskData = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(v **types.AwsDynamoDbTableAttributeDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -30200,6 +30749,15 @@ func awsRestjson1_deserializeDocumentAwsEcsTaskDefinitionDetails(v **types.AwsEc return err } + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Status = ptr.String(jtv) + } + case "TaskRoleArn": if value != nil { jtv, ok := value.(string) @@ -34038,6 +34596,453 @@ func awsRestjson1_deserializeDocumentAwsEventSchemasRegistryDetails(v **types.Aw return nil } +func awsRestjson1_deserializeDocumentAwsEventsEndpointDetails(v **types.AwsEventsEndpointDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointDetails + if *v == nil { + sv = &types.AwsEventsEndpointDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "EndpointId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EndpointId = ptr.String(jtv) + } + + case "EndpointUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EndpointUrl = ptr.String(jtv) + } + + case "EventBuses": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointEventBusesList(&sv.EventBuses, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ReplicationConfig": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointReplicationConfigDetails(&sv.ReplicationConfig, value); err != nil { + return err + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "RoutingConfig": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigDetails(&sv.RoutingConfig, value); err != nil { + return err + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.State = ptr.String(jtv) + } + + case "StateReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.StateReason = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointEventBusesDetails(v **types.AwsEventsEndpointEventBusesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointEventBusesDetails + if *v == nil { + sv = &types.AwsEventsEndpointEventBusesDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EventBusArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EventBusArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointEventBusesList(v *[]types.AwsEventsEndpointEventBusesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEventsEndpointEventBusesDetails + if *v == nil { + cv = []types.AwsEventsEndpointEventBusesDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEventsEndpointEventBusesDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointEventBusesDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointReplicationConfigDetails(v **types.AwsEventsEndpointReplicationConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointReplicationConfigDetails + if *v == nil { + sv = &types.AwsEventsEndpointReplicationConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.State = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigDetails(v **types.AwsEventsEndpointRoutingConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointRoutingConfigDetails + if *v == nil { + sv = &types.AwsEventsEndpointRoutingConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FailoverConfig": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigDetails(&sv.FailoverConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigDetails(v **types.AwsEventsEndpointRoutingConfigFailoverConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointRoutingConfigFailoverConfigDetails + if *v == nil { + sv = &types.AwsEventsEndpointRoutingConfigFailoverConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Primary": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails(&sv.Primary, value); err != nil { + return err + } + + case "Secondary": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails(&sv.Secondary, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails(v **types.AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails + if *v == nil { + sv = &types.AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HealthCheck": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.HealthCheck = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails(v **types.AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails + if *v == nil { + sv = &types.AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Route": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Route = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEventsEventbusDetails(v **types.AwsEventsEventbusDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEventsEventbusDetails + if *v == nil { + sv = &types.AwsEventsEventbusDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Policy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Policy = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAwsGuardDutyDetectorDataSourcesCloudTrailDetails(v **types.AwsGuardDutyDetectorDataSourcesCloudTrailDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -36940,6 +37945,496 @@ func awsRestjson1_deserializeDocumentAwsMountPointList(v *[]types.AwsMountPoint, return nil } +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Sasl": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslDetails(&sv.Sasl, value); err != nil { + return err + } + + case "Tls": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationTlsDetails(&sv.Tls, value); err != nil { + return err + } + + case "Unauthenticated": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails(&sv.Unauthenticated, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationSaslDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationSaslDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationSaslDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Iam": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslIamDetails(&sv.Iam, value); err != nil { + return err + } + + case "Scram": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslScramDetails(&sv.Scram, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslIamDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enabled = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslScramDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enabled = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationTlsDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationTlsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationTlsDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationTlsDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CertificateAuthorityArnList": + if err := awsRestjson1_deserializeDocumentStringList(&sv.CertificateAuthorityArnList, value); err != nil { + return err + } + + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enabled = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails(v **types.AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enabled = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoDetails(v **types.AwsMskClusterClusterInfoDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClientAuthentication": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoClientAuthenticationDetails(&sv.ClientAuthentication, value); err != nil { + return err + } + + case "ClusterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ClusterName = ptr.String(jtv) + } + + case "CurrentVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CurrentVersion = ptr.String(jtv) + } + + case "EncryptionInfo": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoDetails(&sv.EncryptionInfo, value); err != nil { + return err + } + + case "NumberOfBrokerNodes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfBrokerNodes = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoDetails(v **types.AwsMskClusterClusterInfoEncryptionInfoDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoEncryptionInfoDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoEncryptionInfoDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EncryptionAtRest": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails(&sv.EncryptionAtRest, value); err != nil { + return err + } + + case "EncryptionInTransit": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails(&sv.EncryptionInTransit, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails(v **types.AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataVolumeKMSKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.DataVolumeKMSKeyId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails(v **types.AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails + if *v == nil { + sv = &types.AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClientBroker": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ClientBroker = ptr.String(jtv) + } + + case "InCluster": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.InCluster = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsMskClusterDetails(v **types.AwsMskClusterDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsMskClusterDetails + if *v == nil { + sv = &types.AwsMskClusterDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterInfo": + if err := awsRestjson1_deserializeDocumentAwsMskClusterClusterInfoDetails(&sv.ClusterInfo, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAwsNetworkFirewallFirewallDetails(v **types.AwsNetworkFirewallFirewallDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -38248,6 +39743,15 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl return err } + case "AutoMinorVersionUpgrade": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.AutoMinorVersionUpgrade = jtv + } + case "AvailabilityZones": if err := awsRestjson1_deserializeDocumentStringList(&sv.AvailabilityZones, value); err != nil { return err @@ -42934,6 +44438,306 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroups(v *[]ty return nil } +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneConfigDetails(v **types.AwsRoute53HostedZoneConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRoute53HostedZoneConfigDetails + if *v == nil { + sv = &types.AwsRoute53HostedZoneConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Comment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Comment = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneDetails(v **types.AwsRoute53HostedZoneDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRoute53HostedZoneDetails + if *v == nil { + sv = &types.AwsRoute53HostedZoneDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HostedZone": + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneObjectDetails(&sv.HostedZone, value); err != nil { + return err + } + + case "NameServers": + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneNameServersList(&sv.NameServers, value); err != nil { + return err + } + + case "QueryLoggingConfig": + if err := awsRestjson1_deserializeDocumentAwsRoute53QueryLoggingConfigDetails(&sv.QueryLoggingConfig, value); err != nil { + return err + } + + case "Vpcs": + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneVpcsList(&sv.Vpcs, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneNameServersList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneObjectDetails(v **types.AwsRoute53HostedZoneObjectDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRoute53HostedZoneObjectDetails + if *v == nil { + sv = &types.AwsRoute53HostedZoneObjectDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Config": + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneConfigDetails(&sv.Config, value); err != nil { + return err + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneVpcDetails(v **types.AwsRoute53HostedZoneVpcDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRoute53HostedZoneVpcDetails + if *v == nil { + sv = &types.AwsRoute53HostedZoneVpcDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "Region": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Region = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53HostedZoneVpcsList(v *[]types.AwsRoute53HostedZoneVpcDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsRoute53HostedZoneVpcDetails + if *v == nil { + cv = []types.AwsRoute53HostedZoneVpcDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsRoute53HostedZoneVpcDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneVpcDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsRoute53QueryLoggingConfigDetails(v **types.AwsRoute53QueryLoggingConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRoute53QueryLoggingConfigDetails + if *v == nil { + sv = &types.AwsRoute53QueryLoggingConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CloudWatchLogsLogGroupArn": + if err := awsRestjson1_deserializeDocumentCloudWatchLogsLogGroupArnConfigDetails(&sv.CloudWatchLogsLogGroupArn, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAwsS3AccountPublicAccessBlockDetails(v **types.AwsS3AccountPublicAccessBlockDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -50162,6 +51966,64 @@ func awsRestjson1_deserializeDocumentClassificationStatus(v **types.Classificati return nil } +func awsRestjson1_deserializeDocumentCloudWatchLogsLogGroupArnConfigDetails(v **types.CloudWatchLogsLogGroupArnConfigDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CloudWatchLogsLogGroupArnConfigDetails + if *v == nil { + sv = &types.CloudWatchLogsLogGroupArnConfigDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CloudWatchLogsLogGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) + } + + case "HostedZoneId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.HostedZoneId = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentCodeVulnerabilitiesFilePath(v **types.CodeVulnerabilitiesFilePath, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -55720,6 +57582,21 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsDmsEndpoint": + if err := awsRestjson1_deserializeDocumentAwsDmsEndpointDetails(&sv.AwsDmsEndpoint, value); err != nil { + return err + } + + case "AwsDmsReplicationInstance": + if err := awsRestjson1_deserializeDocumentAwsDmsReplicationInstanceDetails(&sv.AwsDmsReplicationInstance, value); err != nil { + return err + } + + case "AwsDmsReplicationTask": + if err := awsRestjson1_deserializeDocumentAwsDmsReplicationTaskDetails(&sv.AwsDmsReplicationTask, value); err != nil { + return err + } + case "AwsDynamoDbTable": if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(&sv.AwsDynamoDbTable, value); err != nil { return err @@ -55865,6 +57742,16 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsEventsEndpoint": + if err := awsRestjson1_deserializeDocumentAwsEventsEndpointDetails(&sv.AwsEventsEndpoint, value); err != nil { + return err + } + + case "AwsEventsEventbus": + if err := awsRestjson1_deserializeDocumentAwsEventsEventbusDetails(&sv.AwsEventsEventbus, value); err != nil { + return err + } + case "AwsGuardDutyDetector": if err := awsRestjson1_deserializeDocumentAwsGuardDutyDetectorDetails(&sv.AwsGuardDutyDetector, value); err != nil { return err @@ -55915,6 +57802,11 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsMskCluster": + if err := awsRestjson1_deserializeDocumentAwsMskClusterDetails(&sv.AwsMskCluster, value); err != nil { + return err + } + case "AwsNetworkFirewallFirewall": if err := awsRestjson1_deserializeDocumentAwsNetworkFirewallFirewallDetails(&sv.AwsNetworkFirewallFirewall, value); err != nil { return err @@ -55970,6 +57862,11 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsRoute53HostedZone": + if err := awsRestjson1_deserializeDocumentAwsRoute53HostedZoneDetails(&sv.AwsRoute53HostedZone, value); err != nil { + return err + } + case "AwsS3AccountPublicAccessBlock": if err := awsRestjson1_deserializeDocumentAwsS3AccountPublicAccessBlockDetails(&sv.AwsS3AccountPublicAccessBlock, value); err != nil { return err diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go index 557e88fb2cf..303df4c2311 100644 --- a/service/securityhub/serializers.go +++ b/service/securityhub/serializers.go @@ -9296,6 +9296,258 @@ func awsRestjson1_serializeDocumentAwsCorsConfiguration(v *types.AwsCorsConfigur return nil } +func awsRestjson1_serializeDocumentAwsDmsEndpointDetails(v *types.AwsDmsEndpointDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CertificateArn != nil { + ok := object.Key("CertificateArn") + ok.String(*v.CertificateArn) + } + + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) + } + + if v.EndpointArn != nil { + ok := object.Key("EndpointArn") + ok.String(*v.EndpointArn) + } + + if v.EndpointIdentifier != nil { + ok := object.Key("EndpointIdentifier") + ok.String(*v.EndpointIdentifier) + } + + if v.EndpointType != nil { + ok := object.Key("EndpointType") + ok.String(*v.EndpointType) + } + + if v.EngineName != nil { + ok := object.Key("EngineName") + ok.String(*v.EngineName) + } + + if v.ExternalId != nil { + ok := object.Key("ExternalId") + ok.String(*v.ExternalId) + } + + if v.ExtraConnectionAttributes != nil { + ok := object.Key("ExtraConnectionAttributes") + ok.String(*v.ExtraConnectionAttributes) + } + + if v.KmsKeyId != nil { + ok := object.Key("KmsKeyId") + ok.String(*v.KmsKeyId) + } + + if v.Port != 0 { + ok := object.Key("Port") + ok.Integer(v.Port) + } + + if v.ServerName != nil { + ok := object.Key("ServerName") + ok.String(*v.ServerName) + } + + if v.SslMode != nil { + ok := object.Key("SslMode") + ok.String(*v.SslMode) + } + + if v.Username != nil { + ok := object.Key("Username") + ok.String(*v.Username) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsDmsReplicationInstanceDetails(v *types.AwsDmsReplicationInstanceDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllocatedStorage != 0 { + ok := object.Key("AllocatedStorage") + ok.Integer(v.AllocatedStorage) + } + + if v.AutoMinorVersionUpgrade { + ok := object.Key("AutoMinorVersionUpgrade") + ok.Boolean(v.AutoMinorVersionUpgrade) + } + + if v.AvailabilityZone != nil { + ok := object.Key("AvailabilityZone") + ok.String(*v.AvailabilityZone) + } + + if v.EngineVersion != nil { + ok := object.Key("EngineVersion") + ok.String(*v.EngineVersion) + } + + if v.KmsKeyId != nil { + ok := object.Key("KmsKeyId") + ok.String(*v.KmsKeyId) + } + + if v.MultiAZ { + ok := object.Key("MultiAZ") + ok.Boolean(v.MultiAZ) + } + + if v.PreferredMaintenanceWindow != nil { + ok := object.Key("PreferredMaintenanceWindow") + ok.String(*v.PreferredMaintenanceWindow) + } + + if v.PubliclyAccessible { + ok := object.Key("PubliclyAccessible") + ok.Boolean(v.PubliclyAccessible) + } + + if v.ReplicationInstanceClass != nil { + ok := object.Key("ReplicationInstanceClass") + ok.String(*v.ReplicationInstanceClass) + } + + if v.ReplicationInstanceIdentifier != nil { + ok := object.Key("ReplicationInstanceIdentifier") + ok.String(*v.ReplicationInstanceIdentifier) + } + + if v.ReplicationSubnetGroup != nil { + ok := object.Key("ReplicationSubnetGroup") + if err := awsRestjson1_serializeDocumentAwsDmsReplicationInstanceReplicationSubnetGroupDetails(v.ReplicationSubnetGroup, ok); err != nil { + return err + } + } + + if v.VpcSecurityGroups != nil { + ok := object.Key("VpcSecurityGroups") + if err := awsRestjson1_serializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsList(v.VpcSecurityGroups, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsDmsReplicationInstanceReplicationSubnetGroupDetails(v *types.AwsDmsReplicationInstanceReplicationSubnetGroupDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ReplicationSubnetGroupIdentifier != nil { + ok := object.Key("ReplicationSubnetGroupIdentifier") + ok.String(*v.ReplicationSubnetGroupIdentifier) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsDetails(v *types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.VpcSecurityGroupId != nil { + ok := object.Key("VpcSecurityGroupId") + ok.String(*v.VpcSecurityGroupId) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsList(v []types.AwsDmsReplicationInstanceVpcSecurityGroupsDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsDmsReplicationInstanceVpcSecurityGroupsDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsDmsReplicationTaskDetails(v *types.AwsDmsReplicationTaskDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CdcStartPosition != nil { + ok := object.Key("CdcStartPosition") + ok.String(*v.CdcStartPosition) + } + + if v.CdcStartTime != nil { + ok := object.Key("CdcStartTime") + ok.String(*v.CdcStartTime) + } + + if v.CdcStopPosition != nil { + ok := object.Key("CdcStopPosition") + ok.String(*v.CdcStopPosition) + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.MigrationType != nil { + ok := object.Key("MigrationType") + ok.String(*v.MigrationType) + } + + if v.ReplicationInstanceArn != nil { + ok := object.Key("ReplicationInstanceArn") + ok.String(*v.ReplicationInstanceArn) + } + + if v.ReplicationTaskIdentifier != nil { + ok := object.Key("ReplicationTaskIdentifier") + ok.String(*v.ReplicationTaskIdentifier) + } + + if v.ReplicationTaskSettings != nil { + ok := object.Key("ReplicationTaskSettings") + ok.String(*v.ReplicationTaskSettings) + } + + if v.ResourceIdentifier != nil { + ok := object.Key("ResourceIdentifier") + ok.String(*v.ResourceIdentifier) + } + + if v.SourceEndpointArn != nil { + ok := object.Key("SourceEndpointArn") + ok.String(*v.SourceEndpointArn) + } + + if v.TableMappings != nil { + ok := object.Key("TableMappings") + ok.String(*v.TableMappings) + } + + if v.TargetEndpointArn != nil { + ok := object.Key("TargetEndpointArn") + ok.String(*v.TargetEndpointArn) + } + + if v.TaskData != nil { + ok := object.Key("TaskData") + ok.String(*v.TaskData) + } + + return nil +} + func awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinition(v *types.AwsDynamoDbTableAttributeDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -14329,6 +14581,11 @@ func awsRestjson1_serializeDocumentAwsEcsTaskDefinitionDetails(v *types.AwsEcsTa } } + if v.Status != nil { + ok := object.Key("Status") + ok.String(*v.Status) + } + if v.TaskRoleArn != nil { ok := object.Key("TaskRoleArn") ok.String(*v.TaskRoleArn) @@ -16066,6 +16323,192 @@ func awsRestjson1_serializeDocumentAwsEventSchemasRegistryDetails(v *types.AwsEv return nil } +func awsRestjson1_serializeDocumentAwsEventsEndpointDetails(v *types.AwsEventsEndpointDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.EndpointId != nil { + ok := object.Key("EndpointId") + ok.String(*v.EndpointId) + } + + if v.EndpointUrl != nil { + ok := object.Key("EndpointUrl") + ok.String(*v.EndpointUrl) + } + + if v.EventBuses != nil { + ok := object.Key("EventBuses") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointEventBusesList(v.EventBuses, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.ReplicationConfig != nil { + ok := object.Key("ReplicationConfig") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointReplicationConfigDetails(v.ReplicationConfig, ok); err != nil { + return err + } + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.RoutingConfig != nil { + ok := object.Key("RoutingConfig") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigDetails(v.RoutingConfig, ok); err != nil { + return err + } + } + + if v.State != nil { + ok := object.Key("State") + ok.String(*v.State) + } + + if v.StateReason != nil { + ok := object.Key("StateReason") + ok.String(*v.StateReason) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointEventBusesDetails(v *types.AwsEventsEndpointEventBusesDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EventBusArn != nil { + ok := object.Key("EventBusArn") + ok.String(*v.EventBusArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointEventBusesList(v []types.AwsEventsEndpointEventBusesDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEventsEndpointEventBusesDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointReplicationConfigDetails(v *types.AwsEventsEndpointReplicationConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.State != nil { + ok := object.Key("State") + ok.String(*v.State) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigDetails(v *types.AwsEventsEndpointRoutingConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FailoverConfig != nil { + ok := object.Key("FailoverConfig") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigDetails(v.FailoverConfig, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigDetails(v *types.AwsEventsEndpointRoutingConfigFailoverConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Primary != nil { + ok := object.Key("Primary") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails(v.Primary, ok); err != nil { + return err + } + } + + if v.Secondary != nil { + ok := object.Key("Secondary") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails(v.Secondary, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails(v *types.AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.HealthCheck != nil { + ok := object.Key("HealthCheck") + ok.String(*v.HealthCheck) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails(v *types.AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Route != nil { + ok := object.Key("Route") + ok.String(*v.Route) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEventsEventbusDetails(v *types.AwsEventsEventbusDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Policy != nil { + ok := object.Key("Policy") + ok.String(*v.Policy) + } + + return nil +} + func awsRestjson1_serializeDocumentAwsGuardDutyDetectorDataSourcesCloudTrailDetails(v *types.AwsGuardDutyDetectorDataSourcesCloudTrailDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -17195,9 +17638,197 @@ func awsRestjson1_serializeDocumentAwsLambdaFunctionEnvironment(v *types.AwsLamb } } - if v.Variables != nil { - ok := object.Key("Variables") - if err := awsRestjson1_serializeDocumentFieldMap(v.Variables, ok); err != nil { + if v.Variables != nil { + ok := object.Key("Variables") + if err := awsRestjson1_serializeDocumentFieldMap(v.Variables, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaFunctionEnvironmentError(v *types.AwsLambdaFunctionEnvironmentError, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ErrorCode != nil { + ok := object.Key("ErrorCode") + ok.String(*v.ErrorCode) + } + + if v.Message != nil { + ok := object.Key("Message") + ok.String(*v.Message) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(v *types.AwsLambdaFunctionLayer, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) + } + + if v.CodeSize != 0 { + ok := object.Key("CodeSize") + ok.Integer(v.CodeSize) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaFunctionLayerList(v []types.AwsLambdaFunctionLayer, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaFunctionTracingConfig(v *types.AwsLambdaFunctionTracingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Mode != nil { + ok := object.Key("Mode") + ok.String(*v.Mode) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaFunctionVpcConfig(v *types.AwsLambdaFunctionVpcConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SecurityGroupIds != nil { + ok := object.Key("SecurityGroupIds") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SecurityGroupIds, ok); err != nil { + return err + } + } + + if v.SubnetIds != nil { + ok := object.Key("SubnetIds") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SubnetIds, ok); err != nil { + return err + } + } + + if v.VpcId != nil { + ok := object.Key("VpcId") + ok.String(*v.VpcId) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsLambdaLayerVersionDetails(v *types.AwsLambdaLayerVersionDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CompatibleRuntimes != nil { + ok := object.Key("CompatibleRuntimes") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.CompatibleRuntimes, ok); err != nil { + return err + } + } + + if v.CreatedDate != nil { + ok := object.Key("CreatedDate") + ok.String(*v.CreatedDate) + } + + if v.Version != 0 { + ok := object.Key("Version") + ok.Long(v.Version) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsMountPoint(v *types.AwsMountPoint, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerPath != nil { + ok := object.Key("ContainerPath") + ok.String(*v.ContainerPath) + } + + if v.SourceVolume != nil { + ok := object.Key("SourceVolume") + ok.String(*v.SourceVolume) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsMountPointList(v []types.AwsMountPoint, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsMountPoint(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Sasl != nil { + ok := object.Key("Sasl") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslDetails(v.Sasl, ok); err != nil { + return err + } + } + + if v.Tls != nil { + ok := object.Key("Tls") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationTlsDetails(v.Tls, ok); err != nil { + return err + } + } + + if v.Unauthenticated != nil { + ok := object.Key("Unauthenticated") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails(v.Unauthenticated, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationSaslDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Iam != nil { + ok := object.Key("Iam") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslIamDetails(v.Iam, ok); err != nil { + return err + } + } + + if v.Scram != nil { + ok := object.Key("Scram") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslScramDetails(v.Scram, ok); err != nil { return err } } @@ -17205,142 +17836,158 @@ func awsRestjson1_serializeDocumentAwsLambdaFunctionEnvironment(v *types.AwsLamb return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionEnvironmentError(v *types.AwsLambdaFunctionEnvironmentError, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslIamDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ErrorCode != nil { - ok := object.Key("ErrorCode") - ok.String(*v.ErrorCode) - } - - if v.Message != nil { - ok := object.Key("Message") - ok.String(*v.Message) + if v.Enabled { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(v *types.AwsLambdaFunctionLayer, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationSaslScramDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if v.CodeSize != 0 { - ok := object.Key("CodeSize") - ok.Integer(v.CodeSize) + if v.Enabled { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionLayerList(v []types.AwsLambdaFunctionLayer, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationTlsDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationTlsDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(&v[i], av); err != nil { + if v.CertificateAuthorityArnList != nil { + ok := object.Key("CertificateAuthorityArnList") + if err := awsRestjson1_serializeDocumentStringList(v.CertificateAuthorityArnList, ok); err != nil { return err } } + + if v.Enabled { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) + } + return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionTracingConfig(v *types.AwsLambdaFunctionTracingConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails(v *types.AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Mode != nil { - ok := object.Key("Mode") - ok.String(*v.Mode) + if v.Enabled { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionVpcConfig(v *types.AwsLambdaFunctionVpcConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoDetails(v *types.AwsMskClusterClusterInfoDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SecurityGroupIds != nil { - ok := object.Key("SecurityGroupIds") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SecurityGroupIds, ok); err != nil { + if v.ClientAuthentication != nil { + ok := object.Key("ClientAuthentication") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoClientAuthenticationDetails(v.ClientAuthentication, ok); err != nil { return err } } - if v.SubnetIds != nil { - ok := object.Key("SubnetIds") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SubnetIds, ok); err != nil { + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + if v.CurrentVersion != nil { + ok := object.Key("CurrentVersion") + ok.String(*v.CurrentVersion) + } + + if v.EncryptionInfo != nil { + ok := object.Key("EncryptionInfo") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoDetails(v.EncryptionInfo, ok); err != nil { return err } } - if v.VpcId != nil { - ok := object.Key("VpcId") - ok.String(*v.VpcId) + if v.NumberOfBrokerNodes != 0 { + ok := object.Key("NumberOfBrokerNodes") + ok.Integer(v.NumberOfBrokerNodes) } return nil } -func awsRestjson1_serializeDocumentAwsLambdaLayerVersionDetails(v *types.AwsLambdaLayerVersionDetails, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoDetails(v *types.AwsMskClusterClusterInfoEncryptionInfoDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CompatibleRuntimes != nil { - ok := object.Key("CompatibleRuntimes") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.CompatibleRuntimes, ok); err != nil { + if v.EncryptionAtRest != nil { + ok := object.Key("EncryptionAtRest") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails(v.EncryptionAtRest, ok); err != nil { return err } } - if v.CreatedDate != nil { - ok := object.Key("CreatedDate") - ok.String(*v.CreatedDate) + if v.EncryptionInTransit != nil { + ok := object.Key("EncryptionInTransit") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails(v.EncryptionInTransit, ok); err != nil { + return err + } } - if v.Version != 0 { - ok := object.Key("Version") - ok.Long(v.Version) + return nil +} + +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails(v *types.AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataVolumeKMSKeyId != nil { + ok := object.Key("DataVolumeKMSKeyId") + ok.String(*v.DataVolumeKMSKeyId) } return nil } -func awsRestjson1_serializeDocumentAwsMountPoint(v *types.AwsMountPoint, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails(v *types.AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ContainerPath != nil { - ok := object.Key("ContainerPath") - ok.String(*v.ContainerPath) + if v.ClientBroker != nil { + ok := object.Key("ClientBroker") + ok.String(*v.ClientBroker) } - if v.SourceVolume != nil { - ok := object.Key("SourceVolume") - ok.String(*v.SourceVolume) + if v.InCluster { + ok := object.Key("InCluster") + ok.Boolean(v.InCluster) } return nil } -func awsRestjson1_serializeDocumentAwsMountPointList(v []types.AwsMountPoint, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentAwsMskClusterDetails(v *types.AwsMskClusterDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsMountPoint(&v[i], av); err != nil { + if v.ClusterInfo != nil { + ok := object.Key("ClusterInfo") + if err := awsRestjson1_serializeDocumentAwsMskClusterClusterInfoDetails(v.ClusterInfo, ok); err != nil { return err } } + return nil } @@ -17948,6 +18595,11 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust } } + if v.AutoMinorVersionUpgrade { + ok := object.Key("AutoMinorVersionUpgrade") + ok.Boolean(v.AutoMinorVersionUpgrade) + } + if v.AvailabilityZones != nil { ok := object.Key("AvailabilityZones") if err := awsRestjson1_serializeDocumentStringList(v.AvailabilityZones, ok); err != nil { @@ -20178,6 +20830,132 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroups(v []types return nil } +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneConfigDetails(v *types.AwsRoute53HostedZoneConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Comment != nil { + ok := object.Key("Comment") + ok.String(*v.Comment) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneDetails(v *types.AwsRoute53HostedZoneDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.HostedZone != nil { + ok := object.Key("HostedZone") + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneObjectDetails(v.HostedZone, ok); err != nil { + return err + } + } + + if v.NameServers != nil { + ok := object.Key("NameServers") + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneNameServersList(v.NameServers, ok); err != nil { + return err + } + } + + if v.QueryLoggingConfig != nil { + ok := object.Key("QueryLoggingConfig") + if err := awsRestjson1_serializeDocumentAwsRoute53QueryLoggingConfigDetails(v.QueryLoggingConfig, ok); err != nil { + return err + } + } + + if v.Vpcs != nil { + ok := object.Key("Vpcs") + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneVpcsList(v.Vpcs, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneNameServersList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneObjectDetails(v *types.AwsRoute53HostedZoneObjectDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Config != nil { + ok := object.Key("Config") + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneConfigDetails(v.Config, ok); err != nil { + return err + } + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneVpcDetails(v *types.AwsRoute53HostedZoneVpcDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.Region != nil { + ok := object.Key("Region") + ok.String(*v.Region) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53HostedZoneVpcsList(v []types.AwsRoute53HostedZoneVpcDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneVpcDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsRoute53QueryLoggingConfigDetails(v *types.AwsRoute53QueryLoggingConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CloudWatchLogsLogGroupArn != nil { + ok := object.Key("CloudWatchLogsLogGroupArn") + if err := awsRestjson1_serializeDocumentCloudWatchLogsLogGroupArnConfigDetails(v.CloudWatchLogsLogGroupArn, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentAwsS3AccountPublicAccessBlockDetails(v *types.AwsS3AccountPublicAccessBlockDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -23794,6 +24572,28 @@ func awsRestjson1_serializeDocumentClassificationStatus(v *types.ClassificationS return nil } +func awsRestjson1_serializeDocumentCloudWatchLogsLogGroupArnConfigDetails(v *types.CloudWatchLogsLogGroupArnConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CloudWatchLogsLogGroupArn != nil { + ok := object.Key("CloudWatchLogsLogGroupArn") + ok.String(*v.CloudWatchLogsLogGroupArn) + } + + if v.HostedZoneId != nil { + ok := object.Key("HostedZoneId") + ok.String(*v.HostedZoneId) + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + return nil +} + func awsRestjson1_serializeDocumentCodeVulnerabilitiesFilePath(v *types.CodeVulnerabilitiesFilePath, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -25629,6 +26429,27 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsDmsEndpoint != nil { + ok := object.Key("AwsDmsEndpoint") + if err := awsRestjson1_serializeDocumentAwsDmsEndpointDetails(v.AwsDmsEndpoint, ok); err != nil { + return err + } + } + + if v.AwsDmsReplicationInstance != nil { + ok := object.Key("AwsDmsReplicationInstance") + if err := awsRestjson1_serializeDocumentAwsDmsReplicationInstanceDetails(v.AwsDmsReplicationInstance, ok); err != nil { + return err + } + } + + if v.AwsDmsReplicationTask != nil { + ok := object.Key("AwsDmsReplicationTask") + if err := awsRestjson1_serializeDocumentAwsDmsReplicationTaskDetails(v.AwsDmsReplicationTask, ok); err != nil { + return err + } + } + if v.AwsDynamoDbTable != nil { ok := object.Key("AwsDynamoDbTable") if err := awsRestjson1_serializeDocumentAwsDynamoDbTableDetails(v.AwsDynamoDbTable, ok); err != nil { @@ -25832,6 +26653,20 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsEventsEndpoint != nil { + ok := object.Key("AwsEventsEndpoint") + if err := awsRestjson1_serializeDocumentAwsEventsEndpointDetails(v.AwsEventsEndpoint, ok); err != nil { + return err + } + } + + if v.AwsEventsEventbus != nil { + ok := object.Key("AwsEventsEventbus") + if err := awsRestjson1_serializeDocumentAwsEventsEventbusDetails(v.AwsEventsEventbus, ok); err != nil { + return err + } + } + if v.AwsGuardDutyDetector != nil { ok := object.Key("AwsGuardDutyDetector") if err := awsRestjson1_serializeDocumentAwsGuardDutyDetectorDetails(v.AwsGuardDutyDetector, ok); err != nil { @@ -25902,6 +26737,13 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsMskCluster != nil { + ok := object.Key("AwsMskCluster") + if err := awsRestjson1_serializeDocumentAwsMskClusterDetails(v.AwsMskCluster, ok); err != nil { + return err + } + } + if v.AwsNetworkFirewallFirewall != nil { ok := object.Key("AwsNetworkFirewallFirewall") if err := awsRestjson1_serializeDocumentAwsNetworkFirewallFirewallDetails(v.AwsNetworkFirewallFirewall, ok); err != nil { @@ -25979,6 +26821,13 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsRoute53HostedZone != nil { + ok := object.Key("AwsRoute53HostedZone") + if err := awsRestjson1_serializeDocumentAwsRoute53HostedZoneDetails(v.AwsRoute53HostedZone, ok); err != nil { + return err + } + } + if v.AwsS3AccountPublicAccessBlock != nil { ok := object.Key("AwsS3AccountPublicAccessBlock") if err := awsRestjson1_serializeDocumentAwsS3AccountPublicAccessBlockDetails(v.AwsS3AccountPublicAccessBlock, ok); err != nil { diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index 9bf8926a097..013b10fd3d0 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -3053,6 +3053,194 @@ type AwsCorsConfiguration struct { noSmithyDocumentSerde } +// Provides details about an Database Migration Service (DMS) endpoint. An +// endpoint provides connection, data store type, and location information about +// your data store. +type AwsDmsEndpointDetails struct { + + // The Amazon Resource Name (ARN) for the SSL certificate that encrypts + // connections between the DMS endpoint and the replication instance. + CertificateArn *string + + // The name of the endpoint database. + DatabaseName *string + + // The Amazon Resource Name (ARN) of the endpoint. + EndpointArn *string + + // The database endpoint identifier. + EndpointIdentifier *string + + // The type of endpoint. Valid values are source and target. + EndpointType *string + + // The type of engine for the endpoint, depending on the EndpointType value. + EngineName *string + + // A value that can be used for cross-account validation. + ExternalId *string + + // Additional attributes associated with the connection. + ExtraConnectionAttributes *string + + // An DMS key identifier that is used to encrypt the connection parameters for the + // endpoint. If you don't specify a value for the KmsKeyId parameter, then DMS + // uses your default encryption key. KMS creates the default encryption key for + // your Amazon Web Services account. Your Amazon Web Services account has a + // different default encryption key for each Amazon Web Services Region. + KmsKeyId *string + + // The port used to access the endpoint. + Port int32 + + // The name of the server where the endpoint database resides. + ServerName *string + + // The SSL mode used to connect to the endpoint. The default is none. + SslMode *string + + // The user name to be used to log in to the endpoint database. + Username *string + + noSmithyDocumentSerde +} + +// Provides details about an Database Migration Service (DMS) replication +// instance. DMS uses a replication instance to connect to your source data store, +// read the source data, and format the data for consumption by the target data +// store. +type AwsDmsReplicationInstanceDetails struct { + + // The amount of storage (in gigabytes) that is allocated for the replication + // instance. + AllocatedStorage int32 + + // Indicates whether minor engine upgrades are applied automatically to the + // replication instance during the maintenance window. + AutoMinorVersionUpgrade bool + + // The Availability Zone that the replication instance is created in. The default + // value is a random, system-chosen Availability Zone in the endpoint's Amazon Web + // Services Region, such as us-east-1d . + AvailabilityZone *string + + // The engine version number of the replication instance. If an engine version + // number is not specified when a replication instance is created, the default is + // the latest engine version available. + EngineVersion *string + + // An KMS key identifier that is used to encrypt the data on the replication + // instance. If you don't specify a value for the KmsKeyId parameter, DMS uses + // your default encryption key. KMS creates the default encryption key for your + // Amazon Web Services account. Your Amazon Web Services account has a different + // default encryption key for each Amazon Web Services Region. + KmsKeyId *string + + // Specifies whether the replication instance is deployed across multiple + // Availability Zones (AZs). You can't set the AvailabilityZone parameter if the + // MultiAZ parameter is set to true . + MultiAZ bool + + // The maintenance window times for the replication instance. Upgrades to the + // replication instance are performed during this time. + PreferredMaintenanceWindow *string + + // Specifies the accessibility options for the replication instance. A value of + // true represents an instance with a public IP address. A value of false + // represents an instance with a private IP address. The default value is true . + PubliclyAccessible bool + + // The compute and memory capacity of the replication instance as defined for the + // specified replication instance class. + ReplicationInstanceClass *string + + // The replication instance identifier. + ReplicationInstanceIdentifier *string + + // The subnet group for the replication instance. + ReplicationSubnetGroup *AwsDmsReplicationInstanceReplicationSubnetGroupDetails + + // The virtual private cloud (VPC) security group for the replication instance. + VpcSecurityGroups []AwsDmsReplicationInstanceVpcSecurityGroupsDetails + + noSmithyDocumentSerde +} + +// Provides details about the replication subnet group. +type AwsDmsReplicationInstanceReplicationSubnetGroupDetails struct { + + // The identifier of the replication subnet group. + ReplicationSubnetGroupIdentifier *string + + noSmithyDocumentSerde +} + +// Provides details about the virtual private cloud (VPC) security group that’s +// associated with the replication instance. +type AwsDmsReplicationInstanceVpcSecurityGroupsDetails struct { + + // The identifier of the VPC security group that’s associated with the replication + // instance. + VpcSecurityGroupId *string + + noSmithyDocumentSerde +} + +// Provides details about an Database Migration Service (DMS) replication task. A +// replication task moves a set of data from the source endpoint to the target +// endpoint. +type AwsDmsReplicationTaskDetails struct { + + // Indicates when you want a change data capture (CDC) operation to start. + // CCdcStartPosition or CCdcStartTime specifies when you want a CDC operation to + // start. Only a value for one of these fields is included. + CdcStartPosition *string + + // Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime + // specifies when you want a CDC operation to start. Only a value for one of these + // fields is included. + CdcStartTime *string + + // Indicates when you want a CDC operation to stop. The value can be either server + // time or commit time. + CdcStopPosition *string + + // The identifier of the replication task. + Id *string + + // The migration type. + MigrationType *string + + // The Amazon Resource Name (ARN) of a replication instance. + ReplicationInstanceArn *string + + // The user-defined replication task identifier or name. + ReplicationTaskIdentifier *string + + // The settings for the replication task. + ReplicationTaskSettings *string + + // A display name for the resource identifier at the end of the EndpointArn + // response parameter. If you don't specify a ResourceIdentifier value, DMS + // generates a default identifier value for the end of EndpointArn . + ResourceIdentifier *string + + // The ARN of the source endpoint. + SourceEndpointArn *string + + // The table mappings for the replication task, in JSON format. + TableMappings *string + + // The ARN of the target endpoint. + TargetEndpointArn *string + + // Supplemental information that the task requires to migrate the data for certain + // source and target endpoints. + TaskData *string + + noSmithyDocumentSerde +} + // Contains a definition of an attribute for the table. type AwsDynamoDbTableAttributeDefinition struct { @@ -6144,6 +6332,9 @@ type AwsEcsTaskDefinitionDetails struct { // The task launch types that the task definition was validated against. RequiresCompatibilities []string + // The status of the task definition. + Status *string + // The short name or ARN of the IAM role that grants containers in the task // permission to call Amazon Web Services API operations on your behalf. TaskRoleArn *string @@ -7232,6 +7423,137 @@ type AwsEventSchemasRegistryDetails struct { noSmithyDocumentSerde } +// Provides details about an Amazon EventBridge global endpoint. The endpoint can +// improve your application’s availability by making it Regional-fault tolerant. +type AwsEventsEndpointDetails struct { + + // The Amazon Resource Name (ARN) of the endpoint. + Arn *string + + // A description of the endpoint. + Description *string + + // The URL subdomain of the endpoint. For example, if EndpointUrl is + // https://abcde.veo.endpoints.event.amazonaws.com , then the EndpointId is + // abcde.veo . + EndpointId *string + + // The URL of the endpoint. + EndpointUrl *string + + // The event buses being used by the endpoint. + EventBuses []AwsEventsEndpointEventBusesDetails + + // The name of the endpoint. + Name *string + + // Whether event replication was enabled or disabled for this endpoint. The + // default state is ENABLED , which means you must supply a RoleArn . If you don't + // have a RoleArn or you don't want event replication enabled, set the state to + // DISABLED . + ReplicationConfig *AwsEventsEndpointReplicationConfigDetails + + // The ARN of the role used by event replication for the endpoint. + RoleArn *string + + // The routing configuration of the endpoint. + RoutingConfig *AwsEventsEndpointRoutingConfigDetails + + // The current state of the endpoint. + State *string + + // The reason the endpoint is in its current state. + StateReason *string + + noSmithyDocumentSerde +} + +// Provides details about the Amazon EventBridge event buses that the endpoint is +// associated with. +type AwsEventsEndpointEventBusesDetails struct { + + // The Amazon Resource Name (ARN) of the event bus that the endpoint is associated + // with. + EventBusArn *string + + noSmithyDocumentSerde +} + +// Indicates whether replication is enabled or disabled for the endpoint. If +// enabled, the endpoint can replicate all events to a secondary Amazon Web +// Services Region. +type AwsEventsEndpointReplicationConfigDetails struct { + + // The state of event replication. + State *string + + noSmithyDocumentSerde +} + +// Provides details about the routing configuration of the endpoint. +type AwsEventsEndpointRoutingConfigDetails struct { + + // The failover configuration for an endpoint. This includes what triggers + // failover and what happens when it's triggered. + FailoverConfig *AwsEventsEndpointRoutingConfigFailoverConfigDetails + + noSmithyDocumentSerde +} + +// The failover configuration for an endpoint. This includes what triggers +// failover and what happens when it's triggered. +type AwsEventsEndpointRoutingConfigFailoverConfigDetails struct { + + // The main Region of the endpoint. + Primary *AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails + + // The Region that events are routed to when failover is triggered or event + // replication is enabled. + Secondary *AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails + + noSmithyDocumentSerde +} + +// Provides details about the primary Amazon Web Services Region of the endpoint. +type AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails struct { + + // The Amazon Resource Name (ARN) of the health check used by the endpoint to + // determine whether failover is triggered. + HealthCheck *string + + noSmithyDocumentSerde +} + +// The Amazon Web Services Region that events are routed to when failover is +// triggered or event replication is enabled. +type AwsEventsEndpointRoutingConfigFailoverConfigSecondaryDetails struct { + + // Defines the secondary Region. + Route *string + + noSmithyDocumentSerde +} + +// Provides details about Amazon EventBridge event bus. An event bus is a router +// that receives events and delivers them to zero or more destinations, or targets. +// This can be a custom event bus which you can use to receive events from your +// custom applications and services, or it can be a partner event bus which can be +// matched to a partner event source. +type AwsEventsEventbusDetails struct { + + // The Amazon Resource Name (ARN) of the account permitted to write events to the + // current account. + Arn *string + + // The name of the event bus. + Name *string + + // The policy that enables the external account to send events to your account. + Policy *string + + noSmithyDocumentSerde +} + // An object that contains information on the status of CloudTrail as a data // source for the detector. type AwsGuardDutyDetectorDataSourcesCloudTrailDetails struct { @@ -8038,6 +8360,149 @@ type AwsMountPoint struct { noSmithyDocumentSerde } +// Provides details about different modes of client authentication. +type AwsMskClusterClusterInfoClientAuthenticationDetails struct { + + // Provides details for client authentication using SASL. + Sasl *AwsMskClusterClusterInfoClientAuthenticationSaslDetails + + // Provides details for client authentication using TLS. + Tls *AwsMskClusterClusterInfoClientAuthenticationTlsDetails + + // Provides details for allowing no client authentication. + Unauthenticated *AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails + + noSmithyDocumentSerde +} + +// Provides details for client authentication using SASL. +type AwsMskClusterClusterInfoClientAuthenticationSaslDetails struct { + + // Provides details for SASL client authentication using IAM. + Iam *AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails + + // Details for SASL client authentication using SCRAM. + Scram *AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails + + noSmithyDocumentSerde +} + +// Details for SASL/IAM client authentication. +type AwsMskClusterClusterInfoClientAuthenticationSaslIamDetails struct { + + // Indicates whether SASL/IAM authentication is enabled or not. + Enabled bool + + noSmithyDocumentSerde +} + +// Details for SASL/SCRAM client authentication. +type AwsMskClusterClusterInfoClientAuthenticationSaslScramDetails struct { + + // Indicates whether SASL/SCRAM authentication is enabled or not. + Enabled bool + + noSmithyDocumentSerde +} + +// Provides details for client authentication using TLS. +type AwsMskClusterClusterInfoClientAuthenticationTlsDetails struct { + + // List of Amazon Web Services Private CA Amazon Resource Names (ARNs). Amazon Web + // Services Private CA enables creation of private certificate authority (CA) + // hierarchies, including root and subordinate CAs, without the investment and + // maintenance costs of operating an on-premises CA. + CertificateAuthorityArnList []string + + // Indicates whether TLS authentication is enabled or not. + Enabled bool + + noSmithyDocumentSerde +} + +// Provides details for allowing no client authentication. +type AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails struct { + + // Indicates whether unauthenticated is allowed or not. + Enabled bool + + noSmithyDocumentSerde +} + +// Provide details about an Amazon MSK cluster. +type AwsMskClusterClusterInfoDetails struct { + + // Provides information for different modes of client authentication. + ClientAuthentication *AwsMskClusterClusterInfoClientAuthenticationDetails + + // The name of the cluster. + ClusterName *string + + // The current version of the MSK cluster. + CurrentVersion *string + + // Includes encryption-related information, such as the KMS key used for + // encrypting data at rest and whether you want Amazon MSK to encrypt your data in + // transit. + EncryptionInfo *AwsMskClusterClusterInfoEncryptionInfoDetails + + // The number of broker nodes in the cluster. + NumberOfBrokerNodes int32 + + noSmithyDocumentSerde +} + +// Includes encryption-related information, such as the KMS key used for +// encrypting data at rest and whether you want MSK to encrypt your data in +// transit. +type AwsMskClusterClusterInfoEncryptionInfoDetails struct { + + // The data-volume encryption details. You can't update encryption at rest + // settings for existing clusters. + EncryptionAtRest *AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails + + // The settings for encrypting data in transit. + EncryptionInTransit *AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails + + noSmithyDocumentSerde +} + +// The data-volume encryption details. You can't update encryption at rest +// settings for existing clusters. +type AwsMskClusterClusterInfoEncryptionInfoEncryptionAtRestDetails struct { + + // The Amazon Resource Name (ARN) of the KMS key for encrypting data at rest. If + // you don't specify a KMS key, MSK creates one for you and uses it. + DataVolumeKMSKeyId *string + + noSmithyDocumentSerde +} + +// The settings for encrypting data in transit. +type AwsMskClusterClusterInfoEncryptionInfoEncryptionInTransitDetails struct { + + // Indicates the encryption setting for data in transit between clients and + // brokers. + ClientBroker *string + + // When set to true , it indicates that data communication among the broker nodes + // of the cluster is encrypted. When set to false , the communication happens in + // plain text. The default value is true . + InCluster bool + + noSmithyDocumentSerde +} + +// Provides details about an Amazon Managed Streaming for Apache Kafka (Amazon +// MSK) cluster. +type AwsMskClusterDetails struct { + + // Provides information about a cluster. + ClusterInfo *AwsMskClusterClusterInfoDetails + + noSmithyDocumentSerde +} + // Details about an Network Firewall firewall. type AwsNetworkFirewallFirewallDetails struct { @@ -8433,6 +8898,9 @@ type AwsRdsDbClusterDetails struct { // A list of the IAM roles that are associated with the DB cluster. AssociatedRoles []AwsRdsDbClusterAssociatedRole + // Indicates if minor version upgrades are automatically applied to the cluster. + AutoMinorVersionUpgrade bool + // A list of Availability Zones (AZs) where instances in the DB cluster can be // created. AvailabilityZones []string @@ -9826,6 +10294,81 @@ type AwsRedshiftClusterVpcSecurityGroup struct { noSmithyDocumentSerde } +// An object that contains an optional comment about your Amazon Route 53 hosted +// zone. +type AwsRoute53HostedZoneConfigDetails struct { + + // Any comments that you include about the hosted zone. + Comment *string + + noSmithyDocumentSerde +} + +// Provides details about a specified Amazon Route 53 hosted zone, including the +// four name servers assigned to the hosted zone. A hosted zone represents a +// collection of records that can be managed together, belonging to a single parent +// domain name. +type AwsRoute53HostedZoneDetails struct { + + // An object that contains information about the specified hosted zone. + HostedZone *AwsRoute53HostedZoneObjectDetails + + // An object that contains a list of the authoritative name servers for a hosted + // zone or for a reusable delegation set. + NameServers []string + + // An array that contains one QueryLoggingConfig element for each DNS query + // logging configuration that is associated with the current Amazon Web Services + // account. + QueryLoggingConfig *AwsRoute53QueryLoggingConfigDetails + + // An object that contains information about the Amazon Virtual Private Clouds + // (Amazon VPCs) that are associated with the specified hosted zone. + Vpcs []AwsRoute53HostedZoneVpcDetails + + noSmithyDocumentSerde +} + +// An object that contains information about an Amazon Route 53 hosted zone. +type AwsRoute53HostedZoneObjectDetails struct { + + // An object that includes the Comment element. + Config *AwsRoute53HostedZoneConfigDetails + + // The ID that Route 53 assigns to the hosted zone when you create it. + Id *string + + // The name of the domain. For public hosted zones, this is the name that you have + // registered with your DNS registrar. + Name *string + + noSmithyDocumentSerde +} + +// For private hosted zones, this is a complex type that contains information +// about an Amazon VPC. +type AwsRoute53HostedZoneVpcDetails struct { + + // The identifier of an Amazon VPC. + Id *string + + // The Amazon Web Services Region that an Amazon VPC was created in. + Region *string + + noSmithyDocumentSerde +} + +// Provides details about a specified Amazon Route 53 configuration for DNS query +// logging. +type AwsRoute53QueryLoggingConfigDetails struct { + + // The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group that + // Route 53 is publishing logs to. + CloudWatchLogsLogGroupArn *CloudWatchLogsLogGroupArnConfigDetails + + noSmithyDocumentSerde +} + // provides information about the Amazon S3 Public Access Block configuration for // accounts. type AwsS3AccountPublicAccessBlockDetails struct { @@ -12259,6 +12802,22 @@ type ClassificationStatus struct { noSmithyDocumentSerde } +// The Amazon Resource Name (ARN) and other details of the Amazon CloudWatch Logs +// log group that Amazon Route 53 is publishing logs to. +type CloudWatchLogsLogGroupArnConfigDetails struct { + + // The ARN of the CloudWatch Logs log group that Route 53 is publishing logs to. + CloudWatchLogsLogGroupArn *string + + // The ID of the hosted zone that CloudWatch Logs is logging queries for. + HostedZoneId *string + + // The ID for a DNS query logging configuration. + Id *string + + noSmithyDocumentSerde +} + // Provides details about where a code vulnerability is located in your Lambda // function. type CodeVulnerabilitiesFilePath struct { @@ -13628,6 +14187,20 @@ type ResourceDetails struct { // Details for an CodeBuild project. AwsCodeBuildProject *AwsCodeBuildProjectDetails + // Provides details about an Database Migration Service (DMS) endpoint. An + // endpoint provides connection, data store type, and location information about + // your data store. + AwsDmsEndpoint *AwsDmsEndpointDetails + + // Provides details about an DMS replication instance. DMS uses a replication + // instance to connect to your source data store, read the source data, and format + // the data for consumption by the target data store. + AwsDmsReplicationInstance *AwsDmsReplicationInstanceDetails + + // Provides details about an DMS replication task. A replication task moves a set + // of data from the source endpoint to the target endpoint. + AwsDmsReplicationTask *AwsDmsReplicationTaskDetails + // Details about a DynamoDB table. AwsDynamoDbTable *AwsDynamoDbTableDetails @@ -13727,6 +14300,15 @@ type ResourceDetails struct { // so that your schemas are in logical groups. AwsEventSchemasRegistry *AwsEventSchemasRegistryDetails + // Provides details about an Amazon EventBridge global endpoint. The endpoint can + // improve your application’s availability by making it Regional-fault tolerant. + AwsEventsEndpoint *AwsEventsEndpointDetails + + // Provides details about Amazon EventBridge event bus for an endpoint. An event + // bus is a router that receives events and delivers them to zero or more + // destinations, or targets. + AwsEventsEventbus *AwsEventsEventbusDetails + // Provides details about an Amazon GuardDuty detector. A detector is an object // that represents the GuardDuty service. A detector is required for GuardDuty to // become operational. @@ -13759,6 +14341,10 @@ type ResourceDetails struct { // Details for a Lambda layer version. AwsLambdaLayerVersion *AwsLambdaLayerVersionDetails + // Provides details about an Amazon Managed Streaming for Apache Kafka (Amazon + // MSK) cluster. + AwsMskCluster *AwsMskClusterDetails + // Details about an Network Firewall firewall. AwsNetworkFirewallFirewall *AwsNetworkFirewallFirewallDetails @@ -13792,6 +14378,11 @@ type ResourceDetails struct { // Contains details about an Amazon Redshift cluster. AwsRedshiftCluster *AwsRedshiftClusterDetails + // Provides details about an Amazon Route 53 hosted zone, including the four name + // servers assigned to the hosted zone. A hosted zone represents a collection of + // records that can be managed together, belonging to a single parent domain name. + AwsRoute53HostedZone *AwsRoute53HostedZoneDetails + // Details about the Amazon S3 Public Access Block configuration for an account. AwsS3AccountPublicAccessBlock *AwsS3AccountPublicAccessBlockDetails diff --git a/service/storagegateway/api_op_DescribeGatewayInformation.go b/service/storagegateway/api_op_DescribeGatewayInformation.go index ec59b47d062..8e853d20f3e 100644 --- a/service/storagegateway/api_op_DescribeGatewayInformation.go +++ b/service/storagegateway/api_op_DescribeGatewayInformation.go @@ -16,10 +16,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns metadata about a gateway such as its name, network interfaces, -// configured time zone, and the state (whether the gateway is running or not). To -// specify which gateway to describe, use the Amazon Resource Name (ARN) of the -// gateway in your request. +// Returns metadata about a gateway such as its name, network interfaces, time +// zone, status, and software version. To specify which gateway to describe, use +// the Amazon Resource Name (ARN) of the gateway in your request. func (c *Client) DescribeGatewayInformation(ctx context.Context, params *DescribeGatewayInformationInput, optFns ...func(*Options)) (*DescribeGatewayInformationOutput, error) { if params == nil { params = &DescribeGatewayInformationInput{} @@ -120,6 +119,9 @@ type DescribeGatewayInformationOutput struct { // features. SoftwareUpdatesEndDate *string + // The version number of the software running on the gateway appliance. + SoftwareVersion *string + // A list of the metadata cache sizes that the gateway can support based on its // current hardware specifications. SupportedGatewayCapacities []types.GatewayCapacity diff --git a/service/storagegateway/api_op_JoinDomain.go b/service/storagegateway/api_op_JoinDomain.go index 4b3d4719b42..36a44667b69 100644 --- a/service/storagegateway/api_op_JoinDomain.go +++ b/service/storagegateway/api_op_JoinDomain.go @@ -17,7 +17,14 @@ import ( ) // Adds a file gateway to an Active Directory domain. This operation is only -// supported for file gateways that support the SMB file protocol. +// supported for file gateways that support the SMB file protocol. Joining a domain +// creates an Active Directory computer account in the default organizational unit, +// using the gateway's Gateway ID as the account name (for example, SGW-1234ADE). +// If your Active Directory environment requires that you pre-stage accounts to +// facilitate the join domain process, you will need to create this account ahead +// of time. To create the gateway's computer account in an organizational unit +// other than the default, you must specify the organizational unit when joining +// the domain. func (c *Client) JoinDomain(ctx context.Context, params *JoinDomainInput, optFns ...func(*Options)) (*JoinDomainOutput, error) { if params == nil { params = &JoinDomainInput{} diff --git a/service/storagegateway/api_op_ListFileShares.go b/service/storagegateway/api_op_ListFileShares.go index ec382cd4c78..e6ccd7ba4c1 100644 --- a/service/storagegateway/api_op_ListFileShares.go +++ b/service/storagegateway/api_op_ListFileShares.go @@ -17,8 +17,8 @@ import ( ) // Gets a list of the file shares for a specific S3 File Gateway, or the list of -// file shares that belong to the calling user account. This operation is only -// supported for S3 File Gateways. +// file shares that belong to the calling Amazon Web Services account. This +// operation is only supported for S3 File Gateways. func (c *Client) ListFileShares(ctx context.Context, params *ListFileSharesInput, optFns ...func(*Options)) (*ListFileSharesOutput, error) { if params == nil { params = &ListFileSharesInput{} diff --git a/service/storagegateway/api_op_NotifyWhenUploaded.go b/service/storagegateway/api_op_NotifyWhenUploaded.go index a261eef6b1d..a9a5162b5f8 100644 --- a/service/storagegateway/api_op_NotifyWhenUploaded.go +++ b/service/storagegateway/api_op_NotifyWhenUploaded.go @@ -24,8 +24,8 @@ import ( // notification through an Amazon CloudWatch Event. You can configure CloudWatch // Events to send the notification through event targets such as Amazon SNS or // Lambda function. This operation is only supported for S3 File Gateways. For more -// information, see Getting file upload notification (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-upload-notification) -// in the Storage Gateway User Guide. +// information, see Getting file upload notification (https://docs.aws.amazon.com/filegateway/latest/files3/monitoring-file-gateway.html#get-notification) +// in the Amazon S3 File Gateway User Guide. func (c *Client) NotifyWhenUploaded(ctx context.Context, params *NotifyWhenUploadedInput, optFns ...func(*Options)) (*NotifyWhenUploadedOutput, error) { if params == nil { params = &NotifyWhenUploadedInput{} diff --git a/service/storagegateway/api_op_RefreshCache.go b/service/storagegateway/api_op_RefreshCache.go index 533422f0403..070b21ec550 100644 --- a/service/storagegateway/api_op_RefreshCache.go +++ b/service/storagegateway/api_op_RefreshCache.go @@ -37,8 +37,6 @@ import ( // Getting notified about file operations (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-notification) // in the Storage Gateway User Guide. // - Wait at least 60 seconds between consecutive RefreshCache API requests. -// - RefreshCache does not evict cache entries if invoked consecutively within -// 60 seconds of a previous RefreshCache request. // - If you invoke the RefreshCache API when two requests are already being // processed, any new request will cause an InvalidGatewayRequestException error // because too many requests were sent to the server. diff --git a/service/storagegateway/api_op_UpdateBandwidthRateLimitSchedule.go b/service/storagegateway/api_op_UpdateBandwidthRateLimitSchedule.go index 1d85262d46b..3a075628869 100644 --- a/service/storagegateway/api_op_UpdateBandwidthRateLimitSchedule.go +++ b/service/storagegateway/api_op_UpdateBandwidthRateLimitSchedule.go @@ -19,8 +19,9 @@ import ( // Updates the bandwidth rate limit schedule for a specified gateway. By default, // gateways do not have bandwidth rate limit schedules, which means no bandwidth // rate limiting is in effect. Use this to initiate or update a gateway's bandwidth -// rate limit schedule. This operation is supported only for volume, tape and S3 -// file gateways. FSx file gateways do not support bandwidth rate limits. +// rate limit schedule. This operation is supported for volume, tape, and S3 file +// gateways. S3 file gateways support bandwidth rate limits for upload only. FSx +// file gateways do not support bandwidth rate limits. func (c *Client) UpdateBandwidthRateLimitSchedule(ctx context.Context, params *UpdateBandwidthRateLimitScheduleInput, optFns ...func(*Options)) (*UpdateBandwidthRateLimitScheduleOutput, error) { if params == nil { params = &UpdateBandwidthRateLimitScheduleInput{} diff --git a/service/storagegateway/deserializers.go b/service/storagegateway/deserializers.go index cb1fe247614..6cba8ce41d0 100644 --- a/service/storagegateway/deserializers.go +++ b/service/storagegateway/deserializers.go @@ -16706,6 +16706,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc sv.SoftwareUpdatesEndDate = ptr.String(jtv) } + case "SoftwareVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SoftwareVersion to be of type string, got %T instead", value) + } + sv.SoftwareVersion = ptr.String(jtv) + } + case "SupportedGatewayCapacities": if err := awsAwsjson11_deserializeDocumentSupportedGatewayCapacities(&sv.SupportedGatewayCapacities, value); err != nil { return err diff --git a/service/storagegateway/types/types.go b/service/storagegateway/types/types.go index 60414570f5d..ec1c0508ec2 100644 --- a/service/storagegateway/types/types.go +++ b/service/storagegateway/types/types.go @@ -112,7 +112,9 @@ type BandwidthRateLimitInterval struct { // The average upload rate limit component of the bandwidth rate limit interval, // in bits per second. This field does not appear in the response if the upload - // rate limit is not set. + // rate limit is not set. For Tape Gateway and Volume Gateway, the minimum value is + // 51200 . For S3 File Gateway and FSx File Gateway, the minimum value is 104857600 + // . AverageUploadRateLimitInBitsPerSec *int64 noSmithyDocumentSerde diff --git a/service/workspaces/api_op_AssociateWorkspaceApplication.go b/service/workspaces/api_op_AssociateWorkspaceApplication.go new file mode 100644 index 00000000000..c58711d6682 --- /dev/null +++ b/service/workspaces/api_op_AssociateWorkspaceApplication.go @@ -0,0 +1,267 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates the specified application to the specified WorkSpace. +func (c *Client) AssociateWorkspaceApplication(ctx context.Context, params *AssociateWorkspaceApplicationInput, optFns ...func(*Options)) (*AssociateWorkspaceApplicationOutput, error) { + if params == nil { + params = &AssociateWorkspaceApplicationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateWorkspaceApplication", params, optFns, c.addOperationAssociateWorkspaceApplicationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateWorkspaceApplicationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateWorkspaceApplicationInput struct { + + // The identifier of the application. + // + // This member is required. + ApplicationId *string + + // The identifier of the WorkSpace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type AssociateWorkspaceApplicationOutput struct { + + // Information about the association between the specified WorkSpace and the + // specified application. + Association *types.WorkspaceResourceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateWorkspaceApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateWorkspaceApplication{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateWorkspaceApplication{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addAssociateWorkspaceApplicationResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpAssociateWorkspaceApplicationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateWorkspaceApplication(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateWorkspaceApplication(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "AssociateWorkspaceApplication", + } +} + +type opAssociateWorkspaceApplicationResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opAssociateWorkspaceApplicationResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opAssociateWorkspaceApplicationResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addAssociateWorkspaceApplicationResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opAssociateWorkspaceApplicationResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DeployWorkspaceApplications.go b/service/workspaces/api_op_DeployWorkspaceApplications.go new file mode 100644 index 00000000000..bd52efcc813 --- /dev/null +++ b/service/workspaces/api_op_DeployWorkspaceApplications.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deploys associated applications to the specified WorkSpace +func (c *Client) DeployWorkspaceApplications(ctx context.Context, params *DeployWorkspaceApplicationsInput, optFns ...func(*Options)) (*DeployWorkspaceApplicationsOutput, error) { + if params == nil { + params = &DeployWorkspaceApplicationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeployWorkspaceApplications", params, optFns, c.addOperationDeployWorkspaceApplicationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeployWorkspaceApplicationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeployWorkspaceApplicationsInput struct { + + // The identifier of the WorkSpace. + // + // This member is required. + WorkspaceId *string + + // Indicates whether the force flag is applied for the specified WorkSpace. When + // the force flag is enabled, it allows previously failed deployments to be + // retried. + Force *bool + + noSmithyDocumentSerde +} + +type DeployWorkspaceApplicationsOutput struct { + + // The list of deployed associations and information about them. + Deployment *types.WorkSpaceApplicationDeployment + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeployWorkspaceApplicationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeployWorkspaceApplications{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeployWorkspaceApplications{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDeployWorkspaceApplicationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeployWorkspaceApplicationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeployWorkspaceApplications(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeployWorkspaceApplications(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DeployWorkspaceApplications", + } +} + +type opDeployWorkspaceApplicationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDeployWorkspaceApplicationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDeployWorkspaceApplicationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDeployWorkspaceApplicationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDeployWorkspaceApplicationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DescribeApplicationAssociations.go b/service/workspaces/api_op_DescribeApplicationAssociations.go new file mode 100644 index 00000000000..5f41b5e9bc4 --- /dev/null +++ b/service/workspaces/api_op_DescribeApplicationAssociations.go @@ -0,0 +1,371 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the associations between the application and the specified associated +// resources. +func (c *Client) DescribeApplicationAssociations(ctx context.Context, params *DescribeApplicationAssociationsInput, optFns ...func(*Options)) (*DescribeApplicationAssociationsOutput, error) { + if params == nil { + params = &DescribeApplicationAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeApplicationAssociations", params, optFns, c.addOperationDescribeApplicationAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeApplicationAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeApplicationAssociationsInput struct { + + // The identifier of the specified application. + // + // This member is required. + ApplicationId *string + + // The resource type of the associated resources. + // + // This member is required. + AssociatedResourceTypes []types.ApplicationAssociatedResourceType + + // The maximum number of associations to return. + MaxResults *int32 + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeApplicationAssociationsOutput struct { + + // List of associations and information about them. + Associations []types.ApplicationResourceAssociation + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeApplicationAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeApplicationAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeApplicationAssociations{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDescribeApplicationAssociationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeApplicationAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeApplicationAssociations(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// DescribeApplicationAssociationsAPIClient is a client that implements the +// DescribeApplicationAssociations operation. +type DescribeApplicationAssociationsAPIClient interface { + DescribeApplicationAssociations(context.Context, *DescribeApplicationAssociationsInput, ...func(*Options)) (*DescribeApplicationAssociationsOutput, error) +} + +var _ DescribeApplicationAssociationsAPIClient = (*Client)(nil) + +// DescribeApplicationAssociationsPaginatorOptions is the paginator options for +// DescribeApplicationAssociations +type DescribeApplicationAssociationsPaginatorOptions struct { + // The maximum number of associations to return. + 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 +} + +// DescribeApplicationAssociationsPaginator is a paginator for +// DescribeApplicationAssociations +type DescribeApplicationAssociationsPaginator struct { + options DescribeApplicationAssociationsPaginatorOptions + client DescribeApplicationAssociationsAPIClient + params *DescribeApplicationAssociationsInput + nextToken *string + firstPage bool +} + +// NewDescribeApplicationAssociationsPaginator returns a new +// DescribeApplicationAssociationsPaginator +func NewDescribeApplicationAssociationsPaginator(client DescribeApplicationAssociationsAPIClient, params *DescribeApplicationAssociationsInput, optFns ...func(*DescribeApplicationAssociationsPaginatorOptions)) *DescribeApplicationAssociationsPaginator { + if params == nil { + params = &DescribeApplicationAssociationsInput{} + } + + options := DescribeApplicationAssociationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeApplicationAssociationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeApplicationAssociationsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeApplicationAssociations page. +func (p *DescribeApplicationAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeApplicationAssociationsOutput, 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.DescribeApplicationAssociations(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_opDescribeApplicationAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DescribeApplicationAssociations", + } +} + +type opDescribeApplicationAssociationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeApplicationAssociationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeApplicationAssociationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeApplicationAssociationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeApplicationAssociationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DescribeApplications.go b/service/workspaces/api_op_DescribeApplications.go new file mode 100644 index 00000000000..8a0d8df2c57 --- /dev/null +++ b/service/workspaces/api_op_DescribeApplications.go @@ -0,0 +1,371 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the specified applications by filtering based on their compute types, +// license availability, operating systems, and owners. +func (c *Client) DescribeApplications(ctx context.Context, params *DescribeApplicationsInput, optFns ...func(*Options)) (*DescribeApplicationsOutput, error) { + if params == nil { + params = &DescribeApplicationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeApplications", params, optFns, c.addOperationDescribeApplicationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeApplicationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeApplicationsInput struct { + + // The identifiers of one or more applications. + ApplicationIds []string + + // The compute types supported by the applications. + ComputeTypeNames []types.Compute + + // The license availability for the applications. + LicenseType types.WorkSpaceApplicationLicenseType + + // The maximum number of applications to return. + MaxResults *int32 + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string + + // The operating systems supported by the applications. + OperatingSystemNames []types.OperatingSystemName + + // The owner of the applications. + Owner *string + + noSmithyDocumentSerde +} + +type DescribeApplicationsOutput struct { + + // List of information about the specified applications. + Applications []types.WorkSpaceApplication + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeApplicationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeApplications{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeApplications{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDescribeApplicationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeApplications(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// DescribeApplicationsAPIClient is a client that implements the +// DescribeApplications operation. +type DescribeApplicationsAPIClient interface { + DescribeApplications(context.Context, *DescribeApplicationsInput, ...func(*Options)) (*DescribeApplicationsOutput, error) +} + +var _ DescribeApplicationsAPIClient = (*Client)(nil) + +// DescribeApplicationsPaginatorOptions is the paginator options for +// DescribeApplications +type DescribeApplicationsPaginatorOptions struct { + // The maximum number of applications to return. + 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 +} + +// DescribeApplicationsPaginator is a paginator for DescribeApplications +type DescribeApplicationsPaginator struct { + options DescribeApplicationsPaginatorOptions + client DescribeApplicationsAPIClient + params *DescribeApplicationsInput + nextToken *string + firstPage bool +} + +// NewDescribeApplicationsPaginator returns a new DescribeApplicationsPaginator +func NewDescribeApplicationsPaginator(client DescribeApplicationsAPIClient, params *DescribeApplicationsInput, optFns ...func(*DescribeApplicationsPaginatorOptions)) *DescribeApplicationsPaginator { + if params == nil { + params = &DescribeApplicationsInput{} + } + + options := DescribeApplicationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeApplicationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeApplicationsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeApplications page. +func (p *DescribeApplicationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeApplicationsOutput, 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.DescribeApplications(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_opDescribeApplications(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DescribeApplications", + } +} + +type opDescribeApplicationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeApplicationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeApplicationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeApplicationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeApplicationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DescribeBundleAssociations.go b/service/workspaces/api_op_DescribeBundleAssociations.go new file mode 100644 index 00000000000..559eaff152e --- /dev/null +++ b/service/workspaces/api_op_DescribeBundleAssociations.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the associations between the applications and the specified bundle. +func (c *Client) DescribeBundleAssociations(ctx context.Context, params *DescribeBundleAssociationsInput, optFns ...func(*Options)) (*DescribeBundleAssociationsOutput, error) { + if params == nil { + params = &DescribeBundleAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeBundleAssociations", params, optFns, c.addOperationDescribeBundleAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeBundleAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeBundleAssociationsInput struct { + + // The resource types of the associated resource. + // + // This member is required. + AssociatedResourceTypes []types.BundleAssociatedResourceType + + // The identifier of the bundle. + // + // This member is required. + BundleId *string + + noSmithyDocumentSerde +} + +type DescribeBundleAssociationsOutput struct { + + // List of information about the specified associations. + Associations []types.BundleResourceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeBundleAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeBundleAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeBundleAssociations{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDescribeBundleAssociationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeBundleAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeBundleAssociations(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeBundleAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DescribeBundleAssociations", + } +} + +type opDescribeBundleAssociationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeBundleAssociationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeBundleAssociationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeBundleAssociationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeBundleAssociationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DescribeImageAssociations.go b/service/workspaces/api_op_DescribeImageAssociations.go new file mode 100644 index 00000000000..ad96a8a458a --- /dev/null +++ b/service/workspaces/api_op_DescribeImageAssociations.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the associations between the applications and the specified image. +func (c *Client) DescribeImageAssociations(ctx context.Context, params *DescribeImageAssociationsInput, optFns ...func(*Options)) (*DescribeImageAssociationsOutput, error) { + if params == nil { + params = &DescribeImageAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeImageAssociations", params, optFns, c.addOperationDescribeImageAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeImageAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeImageAssociationsInput struct { + + // The resource types of the associated resource. + // + // This member is required. + AssociatedResourceTypes []types.ImageAssociatedResourceType + + // The identifier of the image. + // + // This member is required. + ImageId *string + + noSmithyDocumentSerde +} + +type DescribeImageAssociationsOutput struct { + + // List of information about the specified associations. + Associations []types.ImageResourceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeImageAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeImageAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeImageAssociations{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDescribeImageAssociationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeImageAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeImageAssociations(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeImageAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DescribeImageAssociations", + } +} + +type opDescribeImageAssociationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeImageAssociationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeImageAssociationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeImageAssociationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeImageAssociationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DescribeWorkspaceAssociations.go b/service/workspaces/api_op_DescribeWorkspaceAssociations.go new file mode 100644 index 00000000000..e73ddf66dc6 --- /dev/null +++ b/service/workspaces/api_op_DescribeWorkspaceAssociations.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the associations betweens applications and the specified WorkSpace. +func (c *Client) DescribeWorkspaceAssociations(ctx context.Context, params *DescribeWorkspaceAssociationsInput, optFns ...func(*Options)) (*DescribeWorkspaceAssociationsOutput, error) { + if params == nil { + params = &DescribeWorkspaceAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeWorkspaceAssociations", params, optFns, c.addOperationDescribeWorkspaceAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeWorkspaceAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeWorkspaceAssociationsInput struct { + + // The resource types of the associated resources. + // + // This member is required. + AssociatedResourceTypes []types.WorkSpaceAssociatedResourceType + + // The identifier of the WorkSpace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type DescribeWorkspaceAssociationsOutput struct { + + // List of information about the specified associations. + Associations []types.WorkspaceResourceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeWorkspaceAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeWorkspaceAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeWorkspaceAssociations{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDescribeWorkspaceAssociationsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeWorkspaceAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeWorkspaceAssociations(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeWorkspaceAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DescribeWorkspaceAssociations", + } +} + +type opDescribeWorkspaceAssociationsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeWorkspaceAssociationsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeWorkspaceAssociationsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeWorkspaceAssociationsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeWorkspaceAssociationsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/api_op_DisassociateWorkspaceApplication.go b/service/workspaces/api_op_DisassociateWorkspaceApplication.go new file mode 100644 index 00000000000..756049a3368 --- /dev/null +++ b/service/workspaces/api_op_DisassociateWorkspaceApplication.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspaces + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/workspaces/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates the specified application from a WorkSpace. +func (c *Client) DisassociateWorkspaceApplication(ctx context.Context, params *DisassociateWorkspaceApplicationInput, optFns ...func(*Options)) (*DisassociateWorkspaceApplicationOutput, error) { + if params == nil { + params = &DisassociateWorkspaceApplicationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateWorkspaceApplication", params, optFns, c.addOperationDisassociateWorkspaceApplicationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateWorkspaceApplicationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateWorkspaceApplicationInput struct { + + // The identifier of the application. + // + // This member is required. + ApplicationId *string + + // The identifier of the WorkSpace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type DisassociateWorkspaceApplicationOutput struct { + + // Information about the targeted association. + Association *types.WorkspaceResourceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateWorkspaceApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateWorkspaceApplication{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateWorkspaceApplication{}, middleware.After) + if err != nil { + return 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 = addHTTPSignerV4Middleware(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 = addDisassociateWorkspaceApplicationResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDisassociateWorkspaceApplicationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateWorkspaceApplication(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 = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateWorkspaceApplication(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces", + OperationName: "DisassociateWorkspaceApplication", + } +} + +type opDisassociateWorkspaceApplicationResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDisassociateWorkspaceApplicationResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDisassociateWorkspaceApplicationResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "workspaces" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "workspaces" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("workspaces") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDisassociateWorkspaceApplicationResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDisassociateWorkspaceApplicationResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/workspaces/deserializers.go b/service/workspaces/deserializers.go index 00b23a0961f..8de44b4e0f4 100644 --- a/service/workspaces/deserializers.go +++ b/service/workspaces/deserializers.go @@ -271,6 +271,144 @@ func awsAwsjson11_deserializeOpErrorAssociateIpGroups(response *smithyhttp.Respo } } +type awsAwsjson11_deserializeOpAssociateWorkspaceApplication struct { +} + +func (*awsAwsjson11_deserializeOpAssociateWorkspaceApplication) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpAssociateWorkspaceApplication) 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, awsAwsjson11_deserializeOpErrorAssociateWorkspaceApplication(response, &metadata) + } + output := &AssociateWorkspaceApplicationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentAssociateWorkspaceApplicationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorAssociateWorkspaceApplication(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(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 err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ApplicationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorApplicationNotSupportedException(response, errorBody) + + case strings.EqualFold("ComputeNotCompatibleException", errorCode): + return awsAwsjson11_deserializeErrorComputeNotCompatibleException(response, errorBody) + + case strings.EqualFold("IncompatibleApplicationsException", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleApplicationsException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("OperatingSystemNotCompatibleException", errorCode): + return awsAwsjson11_deserializeErrorOperatingSystemNotCompatibleException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceAlreadyExistsException", errorCode): + return awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response, errorBody) + + case strings.EqualFold("ResourceInUseException", errorCode): + return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpAuthorizeIpRules struct { } @@ -2464,14 +2602,14 @@ func awsAwsjson11_deserializeOpErrorDeleteWorkspaceImage(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory struct { +type awsAwsjson11_deserializeOpDeployWorkspaceApplications struct { } -func (*awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) ID() string { +func (*awsAwsjson11_deserializeOpDeployWorkspaceApplications) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeployWorkspaceApplications) 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) @@ -2485,9 +2623,9 @@ func (m *awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeployWorkspaceApplications(response, &metadata) } - output := &DeregisterWorkspaceDirectoryOutput{} + output := &DeployWorkspaceApplicationsOutput{} out.Result = output var buff [1024]byte @@ -2507,7 +2645,7 @@ func (m *awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeregisterWorkspaceDirectoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeployWorkspaceApplicationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2521,7 +2659,7 @@ func (m *awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeployWorkspaceApplications(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)} @@ -2565,15 +2703,18 @@ func awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(response *smith case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("IncompatibleApplicationsException", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleApplicationsException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceInUseException", errorCode): + return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -2587,14 +2728,14 @@ func awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(response *smith } } -type awsAwsjson11_deserializeOpDescribeAccount struct { +type awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory struct { } -func (*awsAwsjson11_deserializeOpDescribeAccount) ID() string { +func (*awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeregisterWorkspaceDirectory) 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) @@ -2608,9 +2749,9 @@ func (m *awsAwsjson11_deserializeOpDescribeAccount) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeAccount(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(response, &metadata) } - output := &DescribeAccountOutput{} + output := &DeregisterWorkspaceDirectoryOutput{} out.Result = output var buff [1024]byte @@ -2630,7 +2771,7 @@ func (m *awsAwsjson11_deserializeOpDescribeAccount) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeAccountOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeregisterWorkspaceDirectoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2644,7 +2785,7 @@ func (m *awsAwsjson11_deserializeOpDescribeAccount) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeregisterWorkspaceDirectory(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)} @@ -2688,6 +2829,18 @@ func awsAwsjson11_deserializeOpErrorDescribeAccount(response *smithyhttp.Respons case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2698,14 +2851,14 @@ func awsAwsjson11_deserializeOpErrorDescribeAccount(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeAccountModifications struct { +type awsAwsjson11_deserializeOpDescribeAccount struct { } -func (*awsAwsjson11_deserializeOpDescribeAccountModifications) ID() string { +func (*awsAwsjson11_deserializeOpDescribeAccount) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeAccountModifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeAccount) 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) @@ -2719,9 +2872,9 @@ func (m *awsAwsjson11_deserializeOpDescribeAccountModifications) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeAccountModifications(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeAccount(response, &metadata) } - output := &DescribeAccountModificationsOutput{} + output := &DescribeAccountOutput{} out.Result = output var buff [1024]byte @@ -2741,7 +2894,7 @@ func (m *awsAwsjson11_deserializeOpDescribeAccountModifications) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeAccountModificationsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeAccountOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2755,7 +2908,7 @@ func (m *awsAwsjson11_deserializeOpDescribeAccountModifications) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeAccountModifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeAccount(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)} @@ -2809,14 +2962,14 @@ func awsAwsjson11_deserializeOpErrorDescribeAccountModifications(response *smith } } -type awsAwsjson11_deserializeOpDescribeClientBranding struct { +type awsAwsjson11_deserializeOpDescribeAccountModifications struct { } -func (*awsAwsjson11_deserializeOpDescribeClientBranding) ID() string { +func (*awsAwsjson11_deserializeOpDescribeAccountModifications) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeClientBranding) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeAccountModifications) 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) @@ -2830,9 +2983,9 @@ func (m *awsAwsjson11_deserializeOpDescribeClientBranding) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeClientBranding(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeAccountModifications(response, &metadata) } - output := &DescribeClientBrandingOutput{} + output := &DescribeAccountModificationsOutput{} out.Result = output var buff [1024]byte @@ -2852,7 +3005,7 @@ func (m *awsAwsjson11_deserializeOpDescribeClientBranding) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeClientBrandingOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeAccountModificationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2866,7 +3019,7 @@ func (m *awsAwsjson11_deserializeOpDescribeClientBranding) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeClientBranding(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeAccountModifications(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)} @@ -2910,12 +3063,6 @@ func awsAwsjson11_deserializeOpErrorDescribeClientBranding(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2926,14 +3073,14 @@ func awsAwsjson11_deserializeOpErrorDescribeClientBranding(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeClientProperties struct { +type awsAwsjson11_deserializeOpDescribeApplicationAssociations struct { } -func (*awsAwsjson11_deserializeOpDescribeClientProperties) ID() string { +func (*awsAwsjson11_deserializeOpDescribeApplicationAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeClientProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeApplicationAssociations) 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) @@ -2947,9 +3094,9 @@ func (m *awsAwsjson11_deserializeOpDescribeClientProperties) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeClientProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeApplicationAssociations(response, &metadata) } - output := &DescribeClientPropertiesOutput{} + output := &DescribeApplicationAssociationsOutput{} out.Result = output var buff [1024]byte @@ -2969,7 +3116,7 @@ func (m *awsAwsjson11_deserializeOpDescribeClientProperties) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeClientPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeApplicationAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2983,7 +3130,7 @@ func (m *awsAwsjson11_deserializeOpDescribeClientProperties) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeClientProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeApplicationAssociations(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)} @@ -3030,6 +3177,9 @@ func awsAwsjson11_deserializeOpErrorDescribeClientProperties(response *smithyhtt case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3043,14 +3193,14 @@ func awsAwsjson11_deserializeOpErrorDescribeClientProperties(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeConnectClientAddIns struct { +type awsAwsjson11_deserializeOpDescribeApplications struct { } -func (*awsAwsjson11_deserializeOpDescribeConnectClientAddIns) ID() string { +func (*awsAwsjson11_deserializeOpDescribeApplications) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeConnectClientAddIns) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeApplications) 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) @@ -3064,9 +3214,9 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectClientAddIns) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeApplications(response, &metadata) } - output := &DescribeConnectClientAddInsOutput{} + output := &DescribeApplicationsOutput{} out.Result = output var buff [1024]byte @@ -3086,7 +3236,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectClientAddIns) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeConnectClientAddInsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeApplicationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3100,7 +3250,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectClientAddIns) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeApplications(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)} @@ -3147,6 +3297,9 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(response *smithy case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3160,14 +3313,14 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(response *smithy } } -type awsAwsjson11_deserializeOpDescribeConnectionAliases struct { +type awsAwsjson11_deserializeOpDescribeBundleAssociations struct { } -func (*awsAwsjson11_deserializeOpDescribeConnectionAliases) ID() string { +func (*awsAwsjson11_deserializeOpDescribeBundleAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeConnectionAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeBundleAssociations) 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) @@ -3181,9 +3334,9 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliases) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeBundleAssociations(response, &metadata) } - output := &DescribeConnectionAliasesOutput{} + output := &DescribeBundleAssociationsOutput{} out.Result = output var buff [1024]byte @@ -3203,7 +3356,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliases) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeBundleAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3217,7 +3370,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliases) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeBundleAssociations(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)} @@ -3267,6 +3420,9 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(response *smithyht case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3277,14 +3433,14 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions struct { +type awsAwsjson11_deserializeOpDescribeClientBranding struct { } -func (*awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) ID() string { +func (*awsAwsjson11_deserializeOpDescribeClientBranding) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeClientBranding) 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) @@ -3298,9 +3454,9 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeClientBranding(response, &metadata) } - output := &DescribeConnectionAliasPermissionsOutput{} + output := &DescribeClientBrandingOutput{} out.Result = output var buff [1024]byte @@ -3320,7 +3476,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) HandleDes return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasPermissionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeClientBrandingOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3334,7 +3490,7 @@ func (m *awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) HandleDes return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeClientBranding(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)} @@ -3381,9 +3537,6 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(response case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3397,14 +3550,14 @@ func awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(response } } -type awsAwsjson11_deserializeOpDescribeIpGroups struct { +type awsAwsjson11_deserializeOpDescribeClientProperties struct { } -func (*awsAwsjson11_deserializeOpDescribeIpGroups) ID() string { +func (*awsAwsjson11_deserializeOpDescribeClientProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeIpGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeClientProperties) 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) @@ -3418,9 +3571,9 @@ func (m *awsAwsjson11_deserializeOpDescribeIpGroups) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeIpGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeClientProperties(response, &metadata) } - output := &DescribeIpGroupsOutput{} + output := &DescribeClientPropertiesOutput{} out.Result = output var buff [1024]byte @@ -3440,7 +3593,7 @@ func (m *awsAwsjson11_deserializeOpDescribeIpGroups) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeIpGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeClientPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3454,7 +3607,7 @@ func (m *awsAwsjson11_deserializeOpDescribeIpGroups) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeIpGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeClientProperties(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)} @@ -3501,8 +3654,11 @@ func awsAwsjson11_deserializeOpErrorDescribeIpGroups(response *smithyhttp.Respon case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - default: - genericError := &smithy.GenericAPIError{ + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } @@ -3511,14 +3667,14 @@ func awsAwsjson11_deserializeOpErrorDescribeIpGroups(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDescribeTags struct { +type awsAwsjson11_deserializeOpDescribeConnectClientAddIns struct { } -func (*awsAwsjson11_deserializeOpDescribeTags) ID() string { +func (*awsAwsjson11_deserializeOpDescribeConnectClientAddIns) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeConnectClientAddIns) 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) @@ -3532,9 +3688,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTags) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTags(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(response, &metadata) } - output := &DescribeTagsOutput{} + output := &DescribeConnectClientAddInsOutput{} out.Result = output var buff [1024]byte @@ -3554,7 +3710,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTags) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTagsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeConnectClientAddInsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3568,7 +3724,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTags) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeConnectClientAddIns(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)} @@ -3609,6 +3765,12 @@ func awsAwsjson11_deserializeOpErrorDescribeTags(response *smithyhttp.Response, } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3622,14 +3784,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTags(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeWorkspaceBundles struct { +type awsAwsjson11_deserializeOpDescribeConnectionAliases struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaceBundles) ID() string { +func (*awsAwsjson11_deserializeOpDescribeConnectionAliases) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaceBundles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeConnectionAliases) 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) @@ -3643,9 +3805,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceBundles) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(response, &metadata) } - output := &DescribeWorkspaceBundlesOutput{} + output := &DescribeConnectionAliasesOutput{} out.Result = output var buff [1024]byte @@ -3665,7 +3827,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceBundles) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceBundlesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3679,7 +3841,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceBundles) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeConnectionAliases(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)} @@ -3720,9 +3882,15 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(response *smithyhtt } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3733,14 +3901,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeWorkspaceDirectories struct { +type awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) ID() string { +func (*awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeConnectionAliasPermissions) 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) @@ -3754,9 +3922,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(response, &metadata) } - output := &DescribeWorkspaceDirectoriesOutput{} + output := &DescribeConnectionAliasPermissionsOutput{} out.Result = output var buff [1024]byte @@ -3776,7 +3944,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceDirectoriesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3790,7 +3958,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeConnectionAliasPermissions(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)} @@ -3831,9 +3999,18 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(response *smith } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3844,14 +4021,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(response *smith } } -type awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions struct { +type awsAwsjson11_deserializeOpDescribeImageAssociations struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) ID() string { +func (*awsAwsjson11_deserializeOpDescribeImageAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeImageAssociations) 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) @@ -3865,9 +4042,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeImageAssociations(response, &metadata) } - output := &DescribeWorkspaceImagePermissionsOutput{} + output := &DescribeImageAssociationsOutput{} out.Result = output var buff [1024]byte @@ -3887,7 +4064,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagePermissionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeImageAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3901,7 +4078,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeImageAssociations(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)} @@ -3948,6 +4125,9 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(response * case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3961,14 +4141,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(response * } } -type awsAwsjson11_deserializeOpDescribeWorkspaceImages struct { +type awsAwsjson11_deserializeOpDescribeIpGroups struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaceImages) ID() string { +func (*awsAwsjson11_deserializeOpDescribeIpGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeIpGroups) 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) @@ -3982,9 +4162,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImages) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeIpGroups(response, &metadata) } - output := &DescribeWorkspaceImagesOutput{} + output := &DescribeIpGroupsOutput{} out.Result = output var buff [1024]byte @@ -4004,7 +4184,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImages) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeIpGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4018,7 +4198,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImages) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeIpGroups(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)} @@ -4062,6 +4242,9 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(response *smithyhttp case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4072,14 +4255,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(response *smithyhttp } } -type awsAwsjson11_deserializeOpDescribeWorkspaces struct { +type awsAwsjson11_deserializeOpDescribeTags struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTags) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTags) 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) @@ -4093,9 +4276,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaces) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTags(response, &metadata) } - output := &DescribeWorkspacesOutput{} + output := &DescribeTagsOutput{} out.Result = output var buff [1024]byte @@ -4115,7 +4298,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaces) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTagsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4129,7 +4312,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaces) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTags(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)} @@ -4170,11 +4353,8 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaces(response *smithyhttp.Resp } switch { - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4186,14 +4366,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaces(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceAssociations struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceAssociations) 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) @@ -4207,9 +4387,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceAssociations(response, &metadata) } - output := &DescribeWorkspacesConnectionStatusOutput{} + output := &DescribeWorkspaceAssociationsOutput{} out.Result = output var buff [1024]byte @@ -4229,7 +4409,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) HandleDes return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspacesConnectionStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4243,7 +4423,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) HandleDes return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceAssociations(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)} @@ -4284,9 +4464,18 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(response } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4297,14 +4486,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(response } } -type awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceBundles struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceBundles) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceBundles) 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) @@ -4318,9 +4507,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(response, &metadata) } - output := &DescribeWorkspaceSnapshotsOutput{} + output := &DescribeWorkspaceBundlesOutput{} out.Result = output var buff [1024]byte @@ -4340,7 +4529,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceSnapshotsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceBundlesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4354,7 +4543,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceBundles(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)} @@ -4395,15 +4584,9 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(response *smithyh } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4414,14 +4597,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(response *smithyh } } -type awsAwsjson11_deserializeOpDisassociateConnectionAlias struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceDirectories struct { } -func (*awsAwsjson11_deserializeOpDisassociateConnectionAlias) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisassociateConnectionAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceDirectories) 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) @@ -4435,9 +4618,9 @@ func (m *awsAwsjson11_deserializeOpDisassociateConnectionAlias) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(response, &metadata) } - output := &DisassociateConnectionAliasOutput{} + output := &DescribeWorkspaceDirectoriesOutput{} out.Result = output var buff [1024]byte @@ -4457,7 +4640,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateConnectionAlias) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisassociateConnectionAliasOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceDirectoriesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4471,7 +4654,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateConnectionAlias) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceDirectories(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)} @@ -4512,21 +4695,9 @@ func awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(response *smithy } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4537,14 +4708,14 @@ func awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(response *smithy } } -type awsAwsjson11_deserializeOpDisassociateIpGroups struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions struct { } -func (*awsAwsjson11_deserializeOpDisassociateIpGroups) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisassociateIpGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImagePermissions) 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) @@ -4558,9 +4729,9 @@ func (m *awsAwsjson11_deserializeOpDisassociateIpGroups) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateIpGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(response, &metadata) } - output := &DisassociateIpGroupsOutput{} + output := &DescribeWorkspaceImagePermissionsOutput{} out.Result = output var buff [1024]byte @@ -4580,7 +4751,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateIpGroups) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisassociateIpGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4594,7 +4765,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateIpGroups) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisassociateIpGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImagePermissions(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)} @@ -4641,9 +4812,6 @@ func awsAwsjson11_deserializeOpErrorDisassociateIpGroups(response *smithyhttp.Re case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -4657,14 +4825,14 @@ func awsAwsjson11_deserializeOpErrorDisassociateIpGroups(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpImportClientBranding struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceImages struct { } -func (*awsAwsjson11_deserializeOpImportClientBranding) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceImages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpImportClientBranding) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceImages) 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) @@ -4678,9 +4846,9 @@ func (m *awsAwsjson11_deserializeOpImportClientBranding) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorImportClientBranding(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(response, &metadata) } - output := &ImportClientBrandingOutput{} + output := &DescribeWorkspaceImagesOutput{} out.Result = output var buff [1024]byte @@ -4700,7 +4868,7 @@ func (m *awsAwsjson11_deserializeOpImportClientBranding) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentImportClientBrandingOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4714,7 +4882,7 @@ func (m *awsAwsjson11_deserializeOpImportClientBranding) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorImportClientBranding(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceImages(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)} @@ -4758,15 +4926,6 @@ func awsAwsjson11_deserializeOpErrorImportClientBranding(response *smithyhttp.Re case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4777,14 +4936,14 @@ func awsAwsjson11_deserializeOpErrorImportClientBranding(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpImportWorkspaceImage struct { +type awsAwsjson11_deserializeOpDescribeWorkspaces struct { } -func (*awsAwsjson11_deserializeOpImportWorkspaceImage) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpImportWorkspaceImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaces) 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) @@ -4798,9 +4957,9 @@ func (m *awsAwsjson11_deserializeOpImportWorkspaceImage) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorImportWorkspaceImage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaces(response, &metadata) } - output := &ImportWorkspaceImageOutput{} + output := &DescribeWorkspacesOutput{} out.Result = output var buff [1024]byte @@ -4820,7 +4979,7 @@ func (m *awsAwsjson11_deserializeOpImportWorkspaceImage) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentImportWorkspaceImageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4834,7 +4993,7 @@ func (m *awsAwsjson11_deserializeOpImportWorkspaceImage) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorImportWorkspaceImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaces(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)} @@ -4875,23 +5034,11 @@ func awsAwsjson11_deserializeOpErrorImportWorkspaceImage(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - - case strings.EqualFold("ResourceAlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4903,14 +5050,14 @@ func awsAwsjson11_deserializeOpErrorImportWorkspaceImage(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListAvailableManagementCidrRanges struct { +type awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus struct { } -func (*awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspacesConnectionStatus) 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) @@ -4924,9 +5071,9 @@ func (m *awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(response, &metadata) } - output := &ListAvailableManagementCidrRangesOutput{} + output := &DescribeWorkspacesConnectionStatusOutput{} out.Result = output var buff [1024]byte @@ -4946,7 +5093,7 @@ func (m *awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAvailableManagementCidrRangesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspacesConnectionStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4960,7 +5107,7 @@ func (m *awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspacesConnectionStatus(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)} @@ -5001,9 +5148,6 @@ func awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(response * } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) @@ -5017,14 +5161,14 @@ func awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(response * } } -type awsAwsjson11_deserializeOpMigrateWorkspace struct { +type awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots struct { } -func (*awsAwsjson11_deserializeOpMigrateWorkspace) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpMigrateWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkspaceSnapshots) 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) @@ -5038,9 +5182,9 @@ func (m *awsAwsjson11_deserializeOpMigrateWorkspace) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorMigrateWorkspace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(response, &metadata) } - output := &MigrateWorkspaceOutput{} + output := &DescribeWorkspaceSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -5060,7 +5204,7 @@ func (m *awsAwsjson11_deserializeOpMigrateWorkspace) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentMigrateWorkspaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkspaceSnapshotsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5074,7 +5218,7 @@ func (m *awsAwsjson11_deserializeOpMigrateWorkspace) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorMigrateWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkspaceSnapshots(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)} @@ -5121,18 +5265,9 @@ func awsAwsjson11_deserializeOpErrorMigrateWorkspace(response *smithyhttp.Respon case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationInProgressException", errorCode): - return awsAwsjson11_deserializeErrorOperationInProgressException(response, errorBody) - - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5143,14 +5278,14 @@ func awsAwsjson11_deserializeOpErrorMigrateWorkspace(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpModifyAccount struct { +type awsAwsjson11_deserializeOpDisassociateConnectionAlias struct { } -func (*awsAwsjson11_deserializeOpModifyAccount) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateConnectionAlias) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateConnectionAlias) 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) @@ -5164,9 +5299,9 @@ func (m *awsAwsjson11_deserializeOpModifyAccount) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyAccount(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(response, &metadata) } - output := &ModifyAccountOutput{} + output := &DisassociateConnectionAliasOutput{} out.Result = output var buff [1024]byte @@ -5186,7 +5321,7 @@ func (m *awsAwsjson11_deserializeOpModifyAccount) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyAccountOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateConnectionAliasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5200,7 +5335,7 @@ func (m *awsAwsjson11_deserializeOpModifyAccount) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateConnectionAlias(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)} @@ -5250,12 +5385,12 @@ func awsAwsjson11_deserializeOpErrorModifyAccount(response *smithyhttp.Response, case strings.EqualFold("InvalidResourceStateException", errorCode): return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5266,14 +5401,14 @@ func awsAwsjson11_deserializeOpErrorModifyAccount(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties struct { +type awsAwsjson11_deserializeOpDisassociateIpGroups struct { } -func (*awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateIpGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateIpGroups) 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) @@ -5287,9 +5422,9 @@ func (m *awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateIpGroups(response, &metadata) } - output := &ModifyCertificateBasedAuthPropertiesOutput{} + output := &DisassociateIpGroupsOutput{} out.Result = output var buff [1024]byte @@ -5309,7 +5444,7 @@ func (m *awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) HandleD return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyCertificateBasedAuthPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateIpGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5323,7 +5458,7 @@ func (m *awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) HandleD return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateIpGroups(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)} @@ -5370,8 +5505,8 @@ func awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(respons case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -5386,14 +5521,14 @@ func awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(respons } } -type awsAwsjson11_deserializeOpModifyClientProperties struct { +type awsAwsjson11_deserializeOpDisassociateWorkspaceApplication struct { } -func (*awsAwsjson11_deserializeOpModifyClientProperties) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateWorkspaceApplication) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyClientProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateWorkspaceApplication) 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) @@ -5407,9 +5542,9 @@ func (m *awsAwsjson11_deserializeOpModifyClientProperties) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyClientProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateWorkspaceApplication(response, &metadata) } - output := &ModifyClientPropertiesOutput{} + output := &DisassociateWorkspaceApplicationOutput{} out.Result = output var buff [1024]byte @@ -5429,7 +5564,7 @@ func (m *awsAwsjson11_deserializeOpModifyClientProperties) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyClientPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateWorkspaceApplicationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5443,7 +5578,7 @@ func (m *awsAwsjson11_deserializeOpModifyClientProperties) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyClientProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateWorkspaceApplication(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)} @@ -5490,6 +5625,12 @@ func awsAwsjson11_deserializeOpErrorModifyClientProperties(response *smithyhttp. case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceInUseException", errorCode): + return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -5503,14 +5644,14 @@ func awsAwsjson11_deserializeOpErrorModifyClientProperties(response *smithyhttp. } } -type awsAwsjson11_deserializeOpModifySamlProperties struct { +type awsAwsjson11_deserializeOpImportClientBranding struct { } -func (*awsAwsjson11_deserializeOpModifySamlProperties) ID() string { +func (*awsAwsjson11_deserializeOpImportClientBranding) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifySamlProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpImportClientBranding) 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) @@ -5524,9 +5665,9 @@ func (m *awsAwsjson11_deserializeOpModifySamlProperties) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifySamlProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorImportClientBranding(response, &metadata) } - output := &ModifySamlPropertiesOutput{} + output := &ImportClientBrandingOutput{} out.Result = output var buff [1024]byte @@ -5546,7 +5687,7 @@ func (m *awsAwsjson11_deserializeOpModifySamlProperties) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifySamlPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentImportClientBrandingOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5560,7 +5701,7 @@ func (m *awsAwsjson11_deserializeOpModifySamlProperties) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifySamlProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorImportClientBranding(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)} @@ -5607,8 +5748,8 @@ func awsAwsjson11_deserializeOpErrorModifySamlProperties(response *smithyhttp.Re case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceLimitExceededException", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -5623,14 +5764,14 @@ func awsAwsjson11_deserializeOpErrorModifySamlProperties(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpModifySelfservicePermissions struct { +type awsAwsjson11_deserializeOpImportWorkspaceImage struct { } -func (*awsAwsjson11_deserializeOpModifySelfservicePermissions) ID() string { +func (*awsAwsjson11_deserializeOpImportWorkspaceImage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifySelfservicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpImportWorkspaceImage) 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) @@ -5644,9 +5785,9 @@ func (m *awsAwsjson11_deserializeOpModifySelfservicePermissions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorImportWorkspaceImage(response, &metadata) } - output := &ModifySelfservicePermissionsOutput{} + output := &ImportWorkspaceImageOutput{} out.Result = output var buff [1024]byte @@ -5666,7 +5807,7 @@ func (m *awsAwsjson11_deserializeOpModifySelfservicePermissions) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifySelfservicePermissionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentImportWorkspaceImageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5680,7 +5821,7 @@ func (m *awsAwsjson11_deserializeOpModifySelfservicePermissions) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorImportWorkspaceImage(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)} @@ -5727,6 +5868,15 @@ func awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(response *smith case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceAlreadyExistsException", errorCode): + return awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceededException", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -5740,14 +5890,14 @@ func awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(response *smith } } -type awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties struct { +type awsAwsjson11_deserializeOpListAvailableManagementCidrRanges struct { } -func (*awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) ID() string { +func (*awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAvailableManagementCidrRanges) 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) @@ -5761,9 +5911,9 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(response, &metadata) } - output := &ModifyWorkspaceAccessPropertiesOutput{} + output := &ListAvailableManagementCidrRangesOutput{} out.Result = output var buff [1024]byte @@ -5783,7 +5933,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) HandleDeseri return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceAccessPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAvailableManagementCidrRangesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5797,7 +5947,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) HandleDeseri return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAvailableManagementCidrRanges(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)} @@ -5841,8 +5991,8 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(response *sm case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -5854,14 +6004,14 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(response *sm } } -type awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties struct { +type awsAwsjson11_deserializeOpMigrateWorkspace struct { } -func (*awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) ID() string { +func (*awsAwsjson11_deserializeOpMigrateWorkspace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpMigrateWorkspace) 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) @@ -5875,9 +6025,9 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorMigrateWorkspace(response, &metadata) } - output := &ModifyWorkspaceCreationPropertiesOutput{} + output := &MigrateWorkspaceOutput{} out.Result = output var buff [1024]byte @@ -5897,7 +6047,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceCreationPropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentMigrateWorkspaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5911,7 +6061,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorMigrateWorkspace(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)} @@ -5958,12 +6108,18 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(response * case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationInProgressException", errorCode): + return awsAwsjson11_deserializeErrorOperationInProgressException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5974,14 +6130,14 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(response * } } -type awsAwsjson11_deserializeOpModifyWorkspaceProperties struct { +type awsAwsjson11_deserializeOpModifyAccount struct { } -func (*awsAwsjson11_deserializeOpModifyWorkspaceProperties) ID() string { +func (*awsAwsjson11_deserializeOpModifyAccount) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyWorkspaceProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyAccount) 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) @@ -5995,9 +6151,9 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceProperties) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyAccount(response, &metadata) } - output := &ModifyWorkspacePropertiesOutput{} + output := &ModifyAccountOutput{} out.Result = output var buff [1024]byte @@ -6017,7 +6173,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceProperties) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyWorkspacePropertiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyAccountOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6031,7 +6187,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceProperties) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyAccount(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)} @@ -6081,18 +6237,12 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(response *smithyht case strings.EqualFold("InvalidResourceStateException", errorCode): return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - case strings.EqualFold("OperationInProgressException", errorCode): - return awsAwsjson11_deserializeErrorOperationInProgressException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ResourceUnavailableException", errorCode): return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("UnsupportedWorkspaceConfigurationException", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedWorkspaceConfigurationException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6103,14 +6253,14 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(response *smithyht } } -type awsAwsjson11_deserializeOpModifyWorkspaceState struct { +type awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties struct { } -func (*awsAwsjson11_deserializeOpModifyWorkspaceState) ID() string { +func (*awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpModifyWorkspaceState) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyCertificateBasedAuthProperties) 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) @@ -6124,9 +6274,9 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceState) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceState(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(response, &metadata) } - output := &ModifyWorkspaceStateOutput{} + output := &ModifyCertificateBasedAuthPropertiesOutput{} out.Result = output var buff [1024]byte @@ -6146,7 +6296,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceState) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceStateOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyCertificateBasedAuthPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6160,7 +6310,7 @@ func (m *awsAwsjson11_deserializeOpModifyWorkspaceState) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorModifyWorkspaceState(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyCertificateBasedAuthProperties(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)} @@ -6201,12 +6351,12 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceState(response *smithyhttp.Re } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) @@ -6223,14 +6373,14 @@ func awsAwsjson11_deserializeOpErrorModifyWorkspaceState(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpRebootWorkspaces struct { +type awsAwsjson11_deserializeOpModifyClientProperties struct { } -func (*awsAwsjson11_deserializeOpRebootWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpModifyClientProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRebootWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyClientProperties) 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) @@ -6244,9 +6394,9 @@ func (m *awsAwsjson11_deserializeOpRebootWorkspaces) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRebootWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyClientProperties(response, &metadata) } - output := &RebootWorkspacesOutput{} + output := &ModifyClientPropertiesOutput{} out.Result = output var buff [1024]byte @@ -6266,7 +6416,7 @@ func (m *awsAwsjson11_deserializeOpRebootWorkspaces) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRebootWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyClientPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6280,7 +6430,7 @@ func (m *awsAwsjson11_deserializeOpRebootWorkspaces) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRebootWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyClientProperties(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)} @@ -6321,8 +6471,14 @@ func awsAwsjson11_deserializeOpErrorRebootWorkspaces(response *smithyhttp.Respon } switch { - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6334,14 +6490,14 @@ func awsAwsjson11_deserializeOpErrorRebootWorkspaces(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpRebuildWorkspaces struct { +type awsAwsjson11_deserializeOpModifySamlProperties struct { } -func (*awsAwsjson11_deserializeOpRebuildWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpModifySamlProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRebuildWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifySamlProperties) 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) @@ -6355,9 +6511,9 @@ func (m *awsAwsjson11_deserializeOpRebuildWorkspaces) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRebuildWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifySamlProperties(response, &metadata) } - output := &RebuildWorkspacesOutput{} + output := &ModifySamlPropertiesOutput{} out.Result = output var buff [1024]byte @@ -6377,7 +6533,7 @@ func (m *awsAwsjson11_deserializeOpRebuildWorkspaces) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRebuildWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifySamlPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6391,7 +6547,7 @@ func (m *awsAwsjson11_deserializeOpRebuildWorkspaces) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRebuildWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifySamlProperties(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)} @@ -6432,9 +6588,18 @@ func awsAwsjson11_deserializeOpErrorRebuildWorkspaces(response *smithyhttp.Respo } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6445,14 +6610,14 @@ func awsAwsjson11_deserializeOpErrorRebuildWorkspaces(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpRegisterWorkspaceDirectory struct { +type awsAwsjson11_deserializeOpModifySelfservicePermissions struct { } -func (*awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) ID() string { +func (*awsAwsjson11_deserializeOpModifySelfservicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifySelfservicePermissions) 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) @@ -6466,9 +6631,9 @@ func (m *awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(response, &metadata) } - output := &RegisterWorkspaceDirectoryOutput{} + output := &ModifySelfservicePermissionsOutput{} out.Result = output var buff [1024]byte @@ -6488,7 +6653,7 @@ func (m *awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRegisterWorkspaceDirectoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifySelfservicePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6502,7 +6667,7 @@ func (m *awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifySelfservicePermissions(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)} @@ -6549,24 +6714,9 @@ func awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(response *smithyh case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("UnsupportedNetworkConfigurationException", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedNetworkConfigurationException(response, errorBody) - - case strings.EqualFold("WorkspacesDefaultRoleNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorWorkspacesDefaultRoleNotFoundException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6577,14 +6727,14 @@ func awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(response *smithyh } } -type awsAwsjson11_deserializeOpRestoreWorkspace struct { +type awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties struct { } -func (*awsAwsjson11_deserializeOpRestoreWorkspace) ID() string { +func (*awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRestoreWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyWorkspaceAccessProperties) 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) @@ -6598,9 +6748,9 @@ func (m *awsAwsjson11_deserializeOpRestoreWorkspace) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRestoreWorkspace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(response, &metadata) } - output := &RestoreWorkspaceOutput{} + output := &ModifyWorkspaceAccessPropertiesOutput{} out.Result = output var buff [1024]byte @@ -6620,7 +6770,7 @@ func (m *awsAwsjson11_deserializeOpRestoreWorkspace) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRestoreWorkspaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceAccessPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6634,7 +6784,7 @@ func (m *awsAwsjson11_deserializeOpRestoreWorkspace) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRestoreWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyWorkspaceAccessProperties(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)} @@ -6678,12 +6828,6 @@ func awsAwsjson11_deserializeOpErrorRestoreWorkspace(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -6697,14 +6841,14 @@ func awsAwsjson11_deserializeOpErrorRestoreWorkspace(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpRevokeIpRules struct { +type awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties struct { } -func (*awsAwsjson11_deserializeOpRevokeIpRules) ID() string { +func (*awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRevokeIpRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyWorkspaceCreationProperties) 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) @@ -6718,9 +6862,9 @@ func (m *awsAwsjson11_deserializeOpRevokeIpRules) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRevokeIpRules(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(response, &metadata) } - output := &RevokeIpRulesOutput{} + output := &ModifyWorkspaceCreationPropertiesOutput{} out.Result = output var buff [1024]byte @@ -6740,7 +6884,7 @@ func (m *awsAwsjson11_deserializeOpRevokeIpRules) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRevokeIpRulesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceCreationPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6754,7 +6898,7 @@ func (m *awsAwsjson11_deserializeOpRevokeIpRules) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRevokeIpRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyWorkspaceCreationProperties(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)} @@ -6801,8 +6945,8 @@ func awsAwsjson11_deserializeOpErrorRevokeIpRules(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -6817,14 +6961,14 @@ func awsAwsjson11_deserializeOpErrorRevokeIpRules(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpStartWorkspaces struct { +type awsAwsjson11_deserializeOpModifyWorkspaceProperties struct { } -func (*awsAwsjson11_deserializeOpStartWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpModifyWorkspaceProperties) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyWorkspaceProperties) 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) @@ -6838,9 +6982,9 @@ func (m *awsAwsjson11_deserializeOpStartWorkspaces) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(response, &metadata) } - output := &StartWorkspacesOutput{} + output := &ModifyWorkspacePropertiesOutput{} out.Result = output var buff [1024]byte @@ -6860,7 +7004,7 @@ func (m *awsAwsjson11_deserializeOpStartWorkspaces) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStartWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyWorkspacePropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6874,7 +7018,7 @@ func (m *awsAwsjson11_deserializeOpStartWorkspaces) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyWorkspaceProperties(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)} @@ -6915,6 +7059,27 @@ func awsAwsjson11_deserializeOpErrorStartWorkspaces(response *smithyhttp.Respons } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + + case strings.EqualFold("OperationInProgressException", errorCode): + return awsAwsjson11_deserializeErrorOperationInProgressException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("UnsupportedWorkspaceConfigurationException", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedWorkspaceConfigurationException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6925,14 +7090,14 @@ func awsAwsjson11_deserializeOpErrorStartWorkspaces(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopWorkspaces struct { +type awsAwsjson11_deserializeOpModifyWorkspaceState struct { } -func (*awsAwsjson11_deserializeOpStopWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpModifyWorkspaceState) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpModifyWorkspaceState) 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) @@ -6946,9 +7111,9 @@ func (m *awsAwsjson11_deserializeOpStopWorkspaces) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorModifyWorkspaceState(response, &metadata) } - output := &StopWorkspacesOutput{} + output := &ModifyWorkspaceStateOutput{} out.Result = output var buff [1024]byte @@ -6968,7 +7133,7 @@ func (m *awsAwsjson11_deserializeOpStopWorkspaces) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStopWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentModifyWorkspaceStateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6982,7 +7147,7 @@ func (m *awsAwsjson11_deserializeOpStopWorkspaces) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorModifyWorkspaceState(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)} @@ -7023,6 +7188,18 @@ func awsAwsjson11_deserializeOpErrorStopWorkspaces(response *smithyhttp.Response } switch { + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7033,14 +7210,14 @@ func awsAwsjson11_deserializeOpErrorStopWorkspaces(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpTerminateWorkspaces struct { +type awsAwsjson11_deserializeOpRebootWorkspaces struct { } -func (*awsAwsjson11_deserializeOpTerminateWorkspaces) ID() string { +func (*awsAwsjson11_deserializeOpRebootWorkspaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpTerminateWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRebootWorkspaces) 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) @@ -7054,9 +7231,9 @@ func (m *awsAwsjson11_deserializeOpTerminateWorkspaces) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTerminateWorkspaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRebootWorkspaces(response, &metadata) } - output := &TerminateWorkspacesOutput{} + output := &RebootWorkspacesOutput{} out.Result = output var buff [1024]byte @@ -7076,7 +7253,7 @@ func (m *awsAwsjson11_deserializeOpTerminateWorkspaces) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentTerminateWorkspacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRebootWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7090,7 +7267,7 @@ func (m *awsAwsjson11_deserializeOpTerminateWorkspaces) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorTerminateWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRebootWorkspaces(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)} @@ -7131,6 +7308,9 @@ func awsAwsjson11_deserializeOpErrorTerminateWorkspaces(response *smithyhttp.Res } switch { + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7141,14 +7321,14 @@ func awsAwsjson11_deserializeOpErrorTerminateWorkspaces(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpUpdateConnectClientAddIn struct { +type awsAwsjson11_deserializeOpRebuildWorkspaces struct { } -func (*awsAwsjson11_deserializeOpUpdateConnectClientAddIn) ID() string { +func (*awsAwsjson11_deserializeOpRebuildWorkspaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateConnectClientAddIn) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRebuildWorkspaces) 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) @@ -7162,9 +7342,9 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectClientAddIn) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRebuildWorkspaces(response, &metadata) } - output := &UpdateConnectClientAddInOutput{} + output := &RebuildWorkspacesOutput{} out.Result = output var buff [1024]byte @@ -7184,7 +7364,7 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectClientAddIn) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateConnectClientAddInOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRebuildWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7198,7 +7378,7 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectClientAddIn) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRebuildWorkspaces(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)} @@ -7239,14 +7419,8 @@ func awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(response *smithyhtt } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -7258,14 +7432,14 @@ func awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(response *smithyhtt } } -type awsAwsjson11_deserializeOpUpdateConnectionAliasPermission struct { +type awsAwsjson11_deserializeOpRegisterWorkspaceDirectory struct { } -func (*awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) ID() string { +func (*awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRegisterWorkspaceDirectory) 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) @@ -7279,9 +7453,9 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(response, &metadata) } - output := &UpdateConnectionAliasPermissionOutput{} + output := &RegisterWorkspaceDirectoryOutput{} out.Result = output var buff [1024]byte @@ -7301,7 +7475,7 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) HandleDeseri return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateConnectionAliasPermissionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRegisterWorkspaceDirectoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7315,7 +7489,7 @@ func (m *awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) HandleDeseri return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRegisterWorkspaceDirectory(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)} @@ -7368,15 +7542,18 @@ func awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(response *sm case strings.EqualFold("OperationNotSupportedException", errorCode): return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - case strings.EqualFold("ResourceAssociatedException", errorCode): - return awsAwsjson11_deserializeErrorResourceAssociatedException(response, errorBody) - case strings.EqualFold("ResourceLimitExceededException", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("UnsupportedNetworkConfigurationException", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedNetworkConfigurationException(response, errorBody) + + case strings.EqualFold("WorkspacesDefaultRoleNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorWorkspacesDefaultRoleNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7387,14 +7564,14 @@ func awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(response *sm } } -type awsAwsjson11_deserializeOpUpdateRulesOfIpGroup struct { +type awsAwsjson11_deserializeOpRestoreWorkspace struct { } -func (*awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) ID() string { +func (*awsAwsjson11_deserializeOpRestoreWorkspace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRestoreWorkspace) 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) @@ -7408,9 +7585,9 @@ func (m *awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRestoreWorkspace(response, &metadata) } - output := &UpdateRulesOfIpGroupOutput{} + output := &RestoreWorkspaceOutput{} out.Result = output var buff [1024]byte @@ -7430,7 +7607,7 @@ func (m *awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateRulesOfIpGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRestoreWorkspaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7444,7 +7621,7 @@ func (m *awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRestoreWorkspace(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)} @@ -7491,11 +7668,8 @@ func awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(response *smithyhttp.Re case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("InvalidResourceStateException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -7510,14 +7684,14 @@ func awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateWorkspaceBundle struct { +type awsAwsjson11_deserializeOpRevokeIpRules struct { } -func (*awsAwsjson11_deserializeOpUpdateWorkspaceBundle) ID() string { +func (*awsAwsjson11_deserializeOpRevokeIpRules) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateWorkspaceBundle) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRevokeIpRules) 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) @@ -7531,9 +7705,9 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceBundle) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRevokeIpRules(response, &metadata) } - output := &UpdateWorkspaceBundleOutput{} + output := &RevokeIpRulesOutput{} out.Result = output var buff [1024]byte @@ -7553,7 +7727,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceBundle) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateWorkspaceBundleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRevokeIpRulesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7567,7 +7741,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceBundle) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRevokeIpRules(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)} @@ -7614,15 +7788,12 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(response *smithyhttp.R case strings.EqualFold("InvalidParameterValuesException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7633,14 +7804,14 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission struct { +type awsAwsjson11_deserializeOpStartWorkspaces struct { } -func (*awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) ID() string { +func (*awsAwsjson11_deserializeOpStartWorkspaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartWorkspaces) 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) @@ -7654,9 +7825,9 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartWorkspaces(response, &metadata) } - output := &UpdateWorkspaceImagePermissionOutput{} + output := &StartWorkspacesOutput{} out.Result = output var buff [1024]byte @@ -7676,7 +7847,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateWorkspaceImagePermissionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentStartWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7690,7 +7861,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartWorkspaces(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)} @@ -7731,21 +7902,6 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(response *smi } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InvalidParameterValuesException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) - - case strings.EqualFold("OperationNotSupportedException", errorCode): - return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7756,46 +7912,36 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(response *smi } } -func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } +type awsAwsjson11_deserializeOpStopWorkspaces struct { +} - output := &types.AccessDeniedException{} - err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) +func (*awsAwsjson11_deserializeOpStopWorkspaces) ID() string { + return "OperationDeserializer" +} +func (m *awsAwsjson11_deserializeOpStopWorkspaces) 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) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - 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, awsAwsjson11_deserializeOpErrorStopWorkspaces(response, &metadata) + } + output := &StopWorkspacesOutput{} + out.Result = output -func awsAwsjson11_deserializeErrorInvalidParameterValuesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -7806,12 +7952,10 @@ func awsAwsjson11_deserializeErrorInvalidParameterValuesException(response *smit Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InvalidParameterValuesException{} - err := awsAwsjson11_deserializeDocumentInvalidParameterValuesException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentStopWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7819,22 +7963,35 @@ func awsAwsjson11_deserializeErrorInvalidParameterValuesException(response *smit Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorInvalidResourceStateException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorStopWorkspaces(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -7844,28 +8001,55 @@ func awsAwsjson11_deserializeErrorInvalidResourceStateException(response *smithy return err } - output := &types.InvalidResourceStateException{} - err := awsAwsjson11_deserializeDocumentInvalidResourceStateException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - 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(), + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpTerminateWorkspaces struct { } -func awsAwsjson11_deserializeErrorOperationInProgressException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpTerminateWorkspaces) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpTerminateWorkspaces) 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, awsAwsjson11_deserializeOpErrorTerminateWorkspaces(response, &metadata) + } + output := &TerminateWorkspacesOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -7876,12 +8060,10 @@ func awsAwsjson11_deserializeErrorOperationInProgressException(response *smithyh Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.OperationInProgressException{} - err := awsAwsjson11_deserializeDocumentOperationInProgressException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentTerminateWorkspacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7889,22 +8071,35 @@ func awsAwsjson11_deserializeErrorOperationInProgressException(response *smithyh Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorOperationNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorTerminateWorkspaces(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -7914,28 +8109,55 @@ func awsAwsjson11_deserializeErrorOperationNotSupportedException(response *smith return err } - output := &types.OperationNotSupportedException{} - err := awsAwsjson11_deserializeDocumentOperationNotSupportedException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - 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(), + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUpdateConnectClientAddIn struct { } -func awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUpdateConnectClientAddIn) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateConnectClientAddIn) 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, awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(response, &metadata) + } + output := &UpdateConnectClientAddInOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -7946,12 +8168,10 @@ func awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response *smith Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.ResourceAlreadyExistsException{} - err := awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateConnectClientAddInOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7959,22 +8179,35 @@ func awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response *smith Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorResourceAssociatedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateConnectClientAddIn(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -7984,13 +8217,1047 @@ func awsAwsjson11_deserializeErrorResourceAssociatedException(response *smithyht return err } - output := &types.ResourceAssociatedException{} - err := awsAwsjson11_deserializeDocumentResourceAssociatedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateConnectionAliasPermission struct { +} + +func (*awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateConnectionAliasPermission) 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, awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(response, &metadata) + } + output := &UpdateConnectionAliasPermissionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateConnectionAliasPermissionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateConnectionAliasPermission(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(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 err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceAssociatedException", errorCode): + return awsAwsjson11_deserializeErrorResourceAssociatedException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceededException", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateRulesOfIpGroup struct { +} + +func (*awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateRulesOfIpGroup) 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, awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(response, &metadata) + } + output := &UpdateRulesOfIpGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateRulesOfIpGroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateRulesOfIpGroup(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(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 err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("InvalidResourceStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceStateException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceededException", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateWorkspaceBundle struct { +} + +func (*awsAwsjson11_deserializeOpUpdateWorkspaceBundle) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateWorkspaceBundle) 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, awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(response, &metadata) + } + output := &UpdateWorkspaceBundleOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateWorkspaceBundleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateWorkspaceBundle(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(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 err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission struct { +} + +func (*awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateWorkspaceImagePermission) 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, awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(response, &metadata) + } + output := &UpdateWorkspaceImagePermissionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateWorkspaceImagePermissionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateWorkspaceImagePermission(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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(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 err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InvalidParameterValuesException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterValuesException(response, errorBody) + + case strings.EqualFold("OperationNotSupportedException", errorCode): + return awsAwsjson11_deserializeErrorOperationNotSupportedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.AccessDeniedException{} + err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorApplicationNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ApplicationNotSupportedException{} + err := awsAwsjson11_deserializeDocumentApplicationNotSupportedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorComputeNotCompatibleException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ComputeNotCompatibleException{} + err := awsAwsjson11_deserializeDocumentComputeNotCompatibleException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorIncompatibleApplicationsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.IncompatibleApplicationsException{} + err := awsAwsjson11_deserializeDocumentIncompatibleApplicationsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorInvalidParameterValuesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidParameterValuesException{} + err := awsAwsjson11_deserializeDocumentInvalidParameterValuesException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorInvalidResourceStateException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidResourceStateException{} + err := awsAwsjson11_deserializeDocumentInvalidResourceStateException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorOperatingSystemNotCompatibleException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.OperatingSystemNotCompatibleException{} + err := awsAwsjson11_deserializeDocumentOperatingSystemNotCompatibleException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorOperationInProgressException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.OperationInProgressException{} + err := awsAwsjson11_deserializeDocumentOperationInProgressException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorOperationNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.OperationNotSupportedException{} + err := awsAwsjson11_deserializeDocumentOperationNotSupportedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceAlreadyExistsException{} + err := awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceAssociatedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceAssociatedException{} + err := awsAwsjson11_deserializeDocumentResourceAssociatedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceCreationFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceCreationFailedException{} + err := awsAwsjson11_deserializeDocumentResourceCreationFailedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceInUseException{} + err := awsAwsjson11_deserializeDocumentResourceInUseException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceLimitExceededException{} + err := awsAwsjson11_deserializeDocumentResourceLimitExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceNotFoundException{} + err := awsAwsjson11_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } @@ -8001,7 +9268,7 @@ func awsAwsjson11_deserializeErrorResourceAssociatedException(response *smithyht return output } -func awsAwsjson11_deserializeErrorResourceCreationFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -8019,8 +9286,8 @@ func awsAwsjson11_deserializeErrorResourceCreationFailedException(response *smit return err } - output := &types.ResourceCreationFailedException{} - err := awsAwsjson11_deserializeDocumentResourceCreationFailedException(&output, shape) + output := &types.ResourceUnavailableException{} + err := awsAwsjson11_deserializeDocumentResourceUnavailableException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -8036,7 +9303,7 @@ func awsAwsjson11_deserializeErrorResourceCreationFailedException(response *smit return output } -func awsAwsjson11_deserializeErrorResourceLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorUnsupportedNetworkConfigurationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -8054,8 +9321,8 @@ func awsAwsjson11_deserializeErrorResourceLimitExceededException(response *smith return err } - output := &types.ResourceLimitExceededException{} - err := awsAwsjson11_deserializeDocumentResourceLimitExceededException(&output, shape) + output := &types.UnsupportedNetworkConfigurationException{} + err := awsAwsjson11_deserializeDocumentUnsupportedNetworkConfigurationException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -8071,7 +9338,7 @@ func awsAwsjson11_deserializeErrorResourceLimitExceededException(response *smith return output } -func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorUnsupportedWorkspaceConfigurationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -8089,8 +9356,8 @@ func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp return err } - output := &types.ResourceNotFoundException{} - err := awsAwsjson11_deserializeDocumentResourceNotFoundException(&output, shape) + output := &types.UnsupportedWorkspaceConfigurationException{} + err := awsAwsjson11_deserializeDocumentUnsupportedWorkspaceConfigurationException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -8106,7 +9373,7 @@ func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp return output } -func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorWorkspacesDefaultRoleNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -8124,8 +9391,8 @@ func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyh return err } - output := &types.ResourceUnavailableException{} - err := awsAwsjson11_deserializeDocumentResourceUnavailableException(&output, shape) + output := &types.WorkspacesDefaultRoleNotFoundException{} + err := awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -8141,112 +9408,342 @@ func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyh return output } -func awsAwsjson11_deserializeErrorUnsupportedNetworkConfigurationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModification, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccountModification + if *v == nil { + sv = &types.AccountModification{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DedicatedTenancyManagementCidrRange": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DedicatedTenancyManagementCidrRange to be of type string, got %T instead", value) + } + sv.DedicatedTenancyManagementCidrRange = ptr.String(jtv) + } + + case "DedicatedTenancySupport": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DedicatedTenancySupportResultEnum to be of type string, got %T instead", value) + } + sv.DedicatedTenancySupport = types.DedicatedTenancySupportResultEnum(jtv) + } + + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkspaceErrorCode to be of type string, got %T instead", value) + } + sv.ErrorCode = ptr.String(jtv) + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Description to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "ModificationState": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DedicatedTenancyModificationStateEnum to be of type string, got %T instead", value) + } + sv.ModificationState = types.DedicatedTenancyModificationStateEnum(jtv) + } + + case "StartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]types.AccountModification, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AccountModification + if *v == nil { + cv = []types.AccountModification{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AccountModification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountModification(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentApplicationNotSupportedException(v **types.ApplicationNotSupportedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ApplicationNotSupportedException + if *v == nil { + sv = &types.ApplicationNotSupportedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentApplicationResourceAssociation(v **types.ApplicationResourceAssociation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ApplicationResourceAssociation + if *v == nil { + sv = &types.ApplicationResourceAssociation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ApplicationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkSpaceApplicationId to be of type string, got %T instead", value) + } + sv.ApplicationId = ptr.String(jtv) + } + + case "AssociatedResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AssociatedResourceId = ptr.String(jtv) + } + + case "AssociatedResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ApplicationAssociatedResourceType to be of type string, got %T instead", value) + } + sv.AssociatedResourceType = types.ApplicationAssociatedResourceType(jtv) + } + + case "Created": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64)) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - output := &types.UnsupportedNetworkConfigurationException{} - err := awsAwsjson11_deserializeDocumentUnsupportedNetworkConfigurationException(&output, shape) + } + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - errorBody.Seek(0, io.SeekStart) - return output -} + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) -func awsAwsjson11_deserializeErrorUnsupportedWorkspaceConfigurationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + } + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationState to be of type string, got %T instead", value) + } + sv.State = types.AssociationState(jtv) + } - output := &types.UnsupportedWorkspaceConfigurationException{} - err := awsAwsjson11_deserializeDocumentUnsupportedWorkspaceConfigurationException(&output, shape) + case "StateReason": + if err := awsAwsjson11_deserializeDocumentAssociationStateReason(&sv.StateReason, value); err != nil { + return err + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } - - errorBody.Seek(0, io.SeekStart) - return output + *v = sv + return nil } -func awsAwsjson11_deserializeErrorWorkspacesDefaultRoleNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func awsAwsjson11_deserializeDocumentApplicationResourceAssociationList(v *[]types.ApplicationResourceAssociation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - output := &types.WorkspacesDefaultRoleNotFoundException{} - err := awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(&output, shape) + var cv []types.ApplicationResourceAssociation + if *v == nil { + cv = []types.ApplicationResourceAssociation{} + } else { + cv = *v + } - 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(), + for _, value := range shape { + var col types.ApplicationResourceAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationResourceAssociation(&destAddr, value); err != nil { + return err } - return err - } + col = *destAddr + cv = append(cv, col) - errorBody.Seek(0, io.SeekStart) - return output + } + *v = cv + return nil } -func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationStateReason(v **types.AssociationStateReason, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8259,22 +9756,31 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *types.AssociationStateReason if *v == nil { - sv = &types.AccessDeniedException{} + sv = &types.AssociationStateReason{} } else { sv = *v } for key, value := range shape { switch key { - case "message": + case "ErrorCode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected AssociationErrorCode to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ErrorCode = types.AssociationErrorCode(jtv) + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String2048 to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) } default: @@ -8286,7 +9792,41 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModification, value interface{}) error { +func awsAwsjson11_deserializeDocumentBundleList(v *[]types.WorkspaceBundle, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.WorkspaceBundle + if *v == nil { + cv = []types.WorkspaceBundle{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.WorkspaceBundle + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceBundle(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentBundleResourceAssociation(v **types.BundleResourceAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8299,61 +9839,59 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccountModification + var sv *types.BundleResourceAssociation if *v == nil { - sv = &types.AccountModification{} + sv = &types.BundleResourceAssociation{} } else { sv = *v } for key, value := range shape { switch key { - case "DedicatedTenancyManagementCidrRange": + case "AssociatedResourceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DedicatedTenancyManagementCidrRange to be of type string, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DedicatedTenancyManagementCidrRange = ptr.String(jtv) + sv.AssociatedResourceId = ptr.String(jtv) } - case "DedicatedTenancySupport": + case "AssociatedResourceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DedicatedTenancySupportResultEnum to be of type string, got %T instead", value) + return fmt.Errorf("expected BundleAssociatedResourceType to be of type string, got %T instead", value) } - sv.DedicatedTenancySupport = types.DedicatedTenancySupportResultEnum(jtv) + sv.AssociatedResourceType = types.BundleAssociatedResourceType(jtv) } - case "ErrorCode": + case "BundleId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkspaceErrorCode to be of type string, got %T instead", value) + return fmt.Errorf("expected BundleId to be of type string, got %T instead", value) } - sv.ErrorCode = ptr.String(jtv) + sv.BundleId = ptr.String(jtv) } - case "ErrorMessage": + case "Created": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) - } - sv.ErrorMessage = ptr.String(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "ModificationState": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DedicatedTenancyModificationStateEnum to be of type string, got %T instead", value) } - sv.ModificationState = types.DedicatedTenancyModificationStateEnum(jtv) } - case "StartTime": + case "LastUpdatedTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -8361,7 +9899,7 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi if err != nil { return err } - sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -8369,50 +9907,30 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi } } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]types.AccountModification, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationState to be of type string, got %T instead", value) + } + sv.State = types.AssociationState(jtv) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "StateReason": + if err := awsAwsjson11_deserializeDocumentAssociationStateReason(&sv.StateReason, value); err != nil { + return err + } - var cv []types.AccountModification - if *v == nil { - cv = []types.AccountModification{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col types.AccountModification - destAddr := &col - if err := awsAwsjson11_deserializeDocumentAccountModification(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentBundleList(v *[]types.WorkspaceBundle, value interface{}) error { +func awsAwsjson11_deserializeDocumentBundleResourceAssociationList(v *[]types.BundleResourceAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8425,17 +9943,17 @@ func awsAwsjson11_deserializeDocumentBundleList(v *[]types.WorkspaceBundle, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.WorkspaceBundle + var cv []types.BundleResourceAssociation if *v == nil { - cv = []types.WorkspaceBundle{} + cv = []types.BundleResourceAssociation{} } else { cv = *v } for _, value := range shape { - var col types.WorkspaceBundle + var col types.BundleResourceAssociation destAddr := &col - if err := awsAwsjson11_deserializeDocumentWorkspaceBundle(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentBundleResourceAssociation(&destAddr, value); err != nil { return err } col = *destAddr @@ -8623,6 +10141,73 @@ func awsAwsjson11_deserializeDocumentClientPropertiesResult(v **types.ClientProp return nil } +func awsAwsjson11_deserializeDocumentComputeList(v *[]types.Compute, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Compute + if *v == nil { + cv = []types.Compute{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Compute + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Compute to be of type string, got %T instead", value) + } + col = types.Compute(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentComputeNotCompatibleException(v **types.ComputeNotCompatibleException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ComputeNotCompatibleException + if *v == nil { + sv = &types.ComputeNotCompatibleException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentComputeType(v **types.ComputeType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9786,13 +11371,191 @@ func awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(v **types.Fail sv.ErrorMessage = ptr.String(jtv) } - case "WorkspaceId": + case "WorkspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImagePermission(v **types.ImagePermission, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ImagePermission + if *v == nil { + sv = &types.ImagePermission{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "SharedAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) + } + sv.SharedAccountId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImagePermissions(v *[]types.ImagePermission, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ImagePermission + if *v == nil { + cv = []types.ImagePermission{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ImagePermission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImagePermission(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentImageResourceAssociation(v **types.ImageResourceAssociation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ImageResourceAssociation + if *v == nil { + sv = &types.ImageResourceAssociation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssociatedResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AssociatedResourceId = ptr.String(jtv) + } + + case "AssociatedResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageAssociatedResourceType to be of type string, got %T instead", value) + } + sv.AssociatedResourceType = types.ImageAssociatedResourceType(jtv) + } + + case "Created": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "ImageId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) + } + sv.ImageId = ptr.String(jtv) + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "State": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) + return fmt.Errorf("expected AssociationState to be of type string, got %T instead", value) } - sv.WorkspaceId = ptr.String(jtv) + sv.State = types.AssociationState(jtv) + } + + case "StateReason": + if err := awsAwsjson11_deserializeDocumentAssociationStateReason(&sv.StateReason, value); err != nil { + return err } default: @@ -9804,7 +11567,7 @@ func awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(v **types.Fail return nil } -func awsAwsjson11_deserializeDocumentImagePermission(v **types.ImagePermission, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageResourceAssociationList(v *[]types.ImageResourceAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9812,39 +11575,33 @@ func awsAwsjson11_deserializeDocumentImagePermission(v **types.ImagePermission, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImagePermission + var cv []types.ImageResourceAssociation if *v == nil { - sv = &types.ImagePermission{} + cv = []types.ImageResourceAssociation{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SharedAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) - } - sv.SharedAccountId = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ImageResourceAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageResourceAssociation(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentImagePermissions(v *[]types.ImagePermission, value interface{}) error { +func awsAwsjson11_deserializeDocumentIncompatibleApplicationsException(v **types.IncompatibleApplicationsException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9852,29 +11609,26 @@ func awsAwsjson11_deserializeDocumentImagePermissions(v *[]types.ImagePermission return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ImagePermission + var sv *types.IncompatibleApplicationsException if *v == nil { - cv = []types.ImagePermission{} + sv = &types.IncompatibleApplicationsException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ImagePermission - destAddr := &col - if err := awsAwsjson11_deserializeDocumentImagePermission(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } @@ -10326,6 +12080,73 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, return nil } +func awsAwsjson11_deserializeDocumentOperatingSystemNameList(v *[]types.OperatingSystemName, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.OperatingSystemName + if *v == nil { + cv = []types.OperatingSystemName{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.OperatingSystemName + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OperatingSystemName to be of type string, got %T instead", value) + } + col = types.OperatingSystemName(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentOperatingSystemNotCompatibleException(v **types.OperatingSystemNotCompatibleException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.OperatingSystemNotCompatibleException + if *v == nil { + sv = &types.OperatingSystemNotCompatibleException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentOperationInProgressException(v **types.OperationInProgressException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10773,6 +12594,55 @@ func awsAwsjson11_deserializeDocumentResourceCreationFailedException(v **types.R return nil } +func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceInUseException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceInUseException + if *v == nil { + sv = &types.ResourceInUseException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "ResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.ResourceLimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11733,45 +13603,192 @@ func awsAwsjson11_deserializeDocumentWorkspaceAccessProperties(v **types.Workspa if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + } + sv.DeviceTypeLinux = types.AccessPropertyValue(jtv) + } + + case "DeviceTypeOsx": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + } + sv.DeviceTypeOsx = types.AccessPropertyValue(jtv) + } + + case "DeviceTypeWeb": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + } + sv.DeviceTypeWeb = types.AccessPropertyValue(jtv) + } + + case "DeviceTypeWindows": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + } + sv.DeviceTypeWindows = types.AccessPropertyValue(jtv) + } + + case "DeviceTypeZeroClient": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + } + sv.DeviceTypeZeroClient = types.AccessPropertyValue(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentWorkSpaceApplication(v **types.WorkSpaceApplication, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.WorkSpaceApplication + if *v == nil { + sv = &types.WorkSpaceApplication{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ApplicationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkSpaceApplicationId to be of type string, got %T instead", value) + } + sv.ApplicationId = ptr.String(jtv) + } + + case "Created": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String2048 to be of type string, got %T instead", value) } - sv.DeviceTypeLinux = types.AccessPropertyValue(jtv) + sv.Description = ptr.String(jtv) } - case "DeviceTypeOsx": + case "LicenseType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + return fmt.Errorf("expected WorkSpaceApplicationLicenseType to be of type string, got %T instead", value) } - sv.DeviceTypeOsx = types.AccessPropertyValue(jtv) + sv.LicenseType = types.WorkSpaceApplicationLicenseType(jtv) } - case "DeviceTypeWeb": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeviceTypeWeb = types.AccessPropertyValue(jtv) + sv.Name = ptr.String(jtv) } - case "DeviceTypeWindows": + case "Owner": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + return fmt.Errorf("expected WorkSpaceApplicationOwner to be of type string, got %T instead", value) } - sv.DeviceTypeWindows = types.AccessPropertyValue(jtv) + sv.Owner = ptr.String(jtv) } - case "DeviceTypeZeroClient": + case "State": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccessPropertyValue to be of type string, got %T instead", value) + return fmt.Errorf("expected WorkSpaceApplicationState to be of type string, got %T instead", value) } - sv.DeviceTypeZeroClient = types.AccessPropertyValue(jtv) + sv.State = types.WorkSpaceApplicationState(jtv) + } + + case "SupportedComputeTypeNames": + if err := awsAwsjson11_deserializeDocumentComputeList(&sv.SupportedComputeTypeNames, value); err != nil { + return err + } + + case "SupportedOperatingSystemNames": + if err := awsAwsjson11_deserializeDocumentOperatingSystemNameList(&sv.SupportedOperatingSystemNames, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentWorkSpaceApplicationDeployment(v **types.WorkSpaceApplicationDeployment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.WorkSpaceApplicationDeployment + if *v == nil { + sv = &types.WorkSpaceApplicationDeployment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentWorkspaceResourceAssociationList(&sv.Associations, value); err != nil { + return err } default: @@ -11783,6 +13800,40 @@ func awsAwsjson11_deserializeDocumentWorkspaceAccessProperties(v **types.Workspa return nil } +func awsAwsjson11_deserializeDocumentWorkSpaceApplicationList(v *[]types.WorkSpaceApplication, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.WorkSpaceApplication + if *v == nil { + cv = []types.WorkSpaceApplication{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.WorkSpaceApplication + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkSpaceApplication(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12433,6 +14484,15 @@ func awsAwsjson11_deserializeDocumentWorkspaceProperties(v **types.WorkspaceProp sv.ComputeTypeName = types.Compute(jtv) } + case "OperatingSystemName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OperatingSystemName to be of type string, got %T instead", value) + } + sv.OperatingSystemName = types.OperatingSystemName(jtv) + } + case "Protocols": if err := awsAwsjson11_deserializeDocumentProtocolList(&sv.Protocols, value); err != nil { return err @@ -12590,6 +14650,144 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest return nil } +func awsAwsjson11_deserializeDocumentWorkspaceResourceAssociation(v **types.WorkspaceResourceAssociation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.WorkspaceResourceAssociation + if *v == nil { + sv = &types.WorkspaceResourceAssociation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssociatedResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AssociatedResourceId = ptr.String(jtv) + } + + case "AssociatedResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkSpaceAssociatedResourceType to be of type string, got %T instead", value) + } + sv.AssociatedResourceType = types.WorkSpaceAssociatedResourceType(jtv) + } + + case "Created": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationState to be of type string, got %T instead", value) + } + sv.State = types.AssociationState(jtv) + } + + case "StateReason": + if err := awsAwsjson11_deserializeDocumentAssociationStateReason(&sv.StateReason, value); err != nil { + return err + } + + case "WorkspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentWorkspaceResourceAssociationList(v *[]types.WorkspaceResourceAssociation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.WorkspaceResourceAssociation + if *v == nil { + cv = []types.WorkspaceResourceAssociation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.WorkspaceResourceAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceResourceAssociation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(v **types.WorkspacesDefaultRoleNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12742,22 +14940,53 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionAliasOutput(v **Associ var sv *AssociateConnectionAliasOutput if *v == nil { - sv = &AssociateConnectionAliasOutput{} + sv = &AssociateConnectionAliasOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConnectionIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConnectionIdentifier to be of type string, got %T instead", value) + } + sv.ConnectionIdentifier = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentAssociateIpGroupsOutput(v **AssociateIpGroupsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *AssociateIpGroupsOutput + if *v == nil { + sv = &AssociateIpGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ConnectionIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionIdentifier to be of type string, got %T instead", value) - } - sv.ConnectionIdentifier = ptr.String(jtv) - } - default: _, _ = key, value @@ -12767,7 +14996,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionAliasOutput(v **Associ return nil } -func awsAwsjson11_deserializeOpDocumentAssociateIpGroupsOutput(v **AssociateIpGroupsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentAssociateWorkspaceApplicationOutput(v **AssociateWorkspaceApplicationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12780,15 +15009,20 @@ func awsAwsjson11_deserializeOpDocumentAssociateIpGroupsOutput(v **AssociateIpGr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *AssociateIpGroupsOutput + var sv *AssociateWorkspaceApplicationOutput if *v == nil { - sv = &AssociateIpGroupsOutput{} + sv = &AssociateWorkspaceApplicationOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Association": + if err := awsAwsjson11_deserializeDocumentWorkspaceResourceAssociation(&sv.Association, value); err != nil { + return err + } + default: _, _ = key, value @@ -13501,6 +15735,42 @@ func awsAwsjson11_deserializeOpDocumentDeleteWorkspaceImageOutput(v **DeleteWork return nil } +func awsAwsjson11_deserializeOpDocumentDeployWorkspaceApplicationsOutput(v **DeployWorkspaceApplicationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeployWorkspaceApplicationsOutput + if *v == nil { + sv = &DeployWorkspaceApplicationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Deployment": + if err := awsAwsjson11_deserializeDocumentWorkSpaceApplicationDeployment(&sv.Deployment, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDeregisterWorkspaceDirectoryOutput(v **DeregisterWorkspaceDirectoryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13626,6 +15896,132 @@ func awsAwsjson11_deserializeOpDocumentDescribeAccountOutput(v **DescribeAccount return nil } +func awsAwsjson11_deserializeOpDocumentDescribeApplicationAssociationsOutput(v **DescribeApplicationAssociationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeApplicationAssociationsOutput + if *v == nil { + sv = &DescribeApplicationAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentApplicationResourceAssociationList(&sv.Associations, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDescribeApplicationsOutput(v **DescribeApplicationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeApplicationsOutput + if *v == nil { + sv = &DescribeApplicationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Applications": + if err := awsAwsjson11_deserializeDocumentWorkSpaceApplicationList(&sv.Applications, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDescribeBundleAssociationsOutput(v **DescribeBundleAssociationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeBundleAssociationsOutput + if *v == nil { + sv = &DescribeBundleAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentBundleResourceAssociationList(&sv.Associations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeClientBrandingOutput(v **DescribeClientBrandingOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13867,6 +16263,42 @@ func awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasPermissionsOutput( return nil } +func awsAwsjson11_deserializeOpDocumentDescribeImageAssociationsOutput(v **DescribeImageAssociationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeImageAssociationsOutput + if *v == nil { + sv = &DescribeImageAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentImageResourceAssociationList(&sv.Associations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeIpGroupsOutput(v **DescribeIpGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13948,6 +16380,42 @@ func awsAwsjson11_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput return nil } +func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceAssociationsOutput(v **DescribeWorkspaceAssociationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeWorkspaceAssociationsOutput + if *v == nil { + sv = &DescribeWorkspaceAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentWorkspaceResourceAssociationList(&sv.Associations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceBundlesOutput(v **DescribeWorkspaceBundlesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14330,6 +16798,42 @@ func awsAwsjson11_deserializeOpDocumentDisassociateIpGroupsOutput(v **Disassocia return nil } +func awsAwsjson11_deserializeOpDocumentDisassociateWorkspaceApplicationOutput(v **DisassociateWorkspaceApplicationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DisassociateWorkspaceApplicationOutput + if *v == nil { + sv = &DisassociateWorkspaceApplicationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Association": + if err := awsAwsjson11_deserializeDocumentWorkspaceResourceAssociation(&sv.Association, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentImportClientBrandingOutput(v **ImportClientBrandingOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/workspaces/generated.json b/service/workspaces/generated.json index 6d08a984046..2077177c7da 100644 --- a/service/workspaces/generated.json +++ b/service/workspaces/generated.json @@ -11,6 +11,7 @@ "api_client_test.go", "api_op_AssociateConnectionAlias.go", "api_op_AssociateIpGroups.go", + "api_op_AssociateWorkspaceApplication.go", "api_op_AuthorizeIpRules.go", "api_op_CopyWorkspaceImage.go", "api_op_CreateConnectClientAddIn.go", @@ -29,16 +30,22 @@ "api_op_DeleteTags.go", "api_op_DeleteWorkspaceBundle.go", "api_op_DeleteWorkspaceImage.go", + "api_op_DeployWorkspaceApplications.go", "api_op_DeregisterWorkspaceDirectory.go", "api_op_DescribeAccount.go", "api_op_DescribeAccountModifications.go", + "api_op_DescribeApplicationAssociations.go", + "api_op_DescribeApplications.go", + "api_op_DescribeBundleAssociations.go", "api_op_DescribeClientBranding.go", "api_op_DescribeClientProperties.go", "api_op_DescribeConnectClientAddIns.go", "api_op_DescribeConnectionAliasPermissions.go", "api_op_DescribeConnectionAliases.go", + "api_op_DescribeImageAssociations.go", "api_op_DescribeIpGroups.go", "api_op_DescribeTags.go", + "api_op_DescribeWorkspaceAssociations.go", "api_op_DescribeWorkspaceBundles.go", "api_op_DescribeWorkspaceDirectories.go", "api_op_DescribeWorkspaceImagePermissions.go", @@ -48,6 +55,7 @@ "api_op_DescribeWorkspacesConnectionStatus.go", "api_op_DisassociateConnectionAlias.go", "api_op_DisassociateIpGroups.go", + "api_op_DisassociateWorkspaceApplication.go", "api_op_ImportClientBranding.go", "api_op_ImportWorkspaceImage.go", "api_op_ListAvailableManagementCidrRanges.go", diff --git a/service/workspaces/serializers.go b/service/workspaces/serializers.go index 75ffa486cf4..122f903cd78 100644 --- a/service/workspaces/serializers.go +++ b/service/workspaces/serializers.go @@ -125,6 +125,61 @@ func (m *awsAwsjson11_serializeOpAssociateIpGroups) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpAssociateWorkspaceApplication struct { +} + +func (*awsAwsjson11_serializeOpAssociateWorkspaceApplication) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpAssociateWorkspaceApplication) 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.(*AssociateWorkspaceApplicationInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.AssociateWorkspaceApplication") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentAssociateWorkspaceApplicationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpAuthorizeIpRules struct { } @@ -1115,6 +1170,61 @@ func (m *awsAwsjson11_serializeOpDeleteWorkspaceImage) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeployWorkspaceApplications struct { +} + +func (*awsAwsjson11_serializeOpDeployWorkspaceApplications) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeployWorkspaceApplications) 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.(*DeployWorkspaceApplicationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DeployWorkspaceApplications") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeployWorkspaceApplicationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDeregisterWorkspaceDirectory struct { } @@ -1280,6 +1390,171 @@ func (m *awsAwsjson11_serializeOpDescribeAccountModifications) HandleSerialize(c return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeApplicationAssociations struct { +} + +func (*awsAwsjson11_serializeOpDescribeApplicationAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeApplicationAssociations) 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.(*DescribeApplicationAssociationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeApplicationAssociations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeApplicationAssociationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeApplications struct { +} + +func (*awsAwsjson11_serializeOpDescribeApplications) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeApplications) 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.(*DescribeApplicationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeApplications") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeApplicationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeBundleAssociations struct { +} + +func (*awsAwsjson11_serializeOpDescribeBundleAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeBundleAssociations) 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.(*DescribeBundleAssociationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeBundleAssociations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeBundleAssociationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeClientBranding struct { } @@ -1555,6 +1830,61 @@ func (m *awsAwsjson11_serializeOpDescribeConnectionAliasPermissions) HandleSeria return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeImageAssociations struct { +} + +func (*awsAwsjson11_serializeOpDescribeImageAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeImageAssociations) 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.(*DescribeImageAssociationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeImageAssociations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeImageAssociationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeIpGroups struct { } @@ -1665,6 +1995,61 @@ func (m *awsAwsjson11_serializeOpDescribeTags) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeWorkspaceAssociations struct { +} + +func (*awsAwsjson11_serializeOpDescribeWorkspaceAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeWorkspaceAssociations) 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.(*DescribeWorkspaceAssociationsInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeWorkspaceAssociations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeWorkspaceAssociationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeWorkspaceBundles struct { } @@ -1940,14 +2325,69 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspaces) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus struct { +type awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus struct { +} + +func (*awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) 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.(*DescribeWorkspacesConnectionStatusInput) + _ = 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-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeWorkspacesConnectionStatus") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeWorkspacesConnectionStatusInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.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 awsAwsjson11_serializeOpDescribeWorkspaceSnapshots struct { } -func (*awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) ID() string { +func (*awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1955,7 +2395,7 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeWorkspacesConnectionStatusInput) + input, ok := in.Parameters.(*DescribeWorkspaceSnapshotsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1976,10 +2416,10 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) HandleSeria return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeWorkspacesConnectionStatus") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeWorkspaceSnapshots") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeWorkspacesConnectionStatusInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeWorkspaceSnapshotsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1995,14 +2435,14 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspacesConnectionStatus) HandleSeria return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeWorkspaceSnapshots struct { +type awsAwsjson11_serializeOpDisassociateConnectionAlias struct { } -func (*awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) ID() string { +func (*awsAwsjson11_serializeOpDisassociateConnectionAlias) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociateConnectionAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2010,7 +2450,7 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeWorkspaceSnapshotsInput) + input, ok := in.Parameters.(*DisassociateConnectionAliasInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2031,10 +2471,10 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DescribeWorkspaceSnapshots") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DisassociateConnectionAlias") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeWorkspaceSnapshotsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDisassociateConnectionAliasInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2050,14 +2490,14 @@ func (m *awsAwsjson11_serializeOpDescribeWorkspaceSnapshots) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDisassociateConnectionAlias struct { +type awsAwsjson11_serializeOpDisassociateIpGroups struct { } -func (*awsAwsjson11_serializeOpDisassociateConnectionAlias) ID() string { +func (*awsAwsjson11_serializeOpDisassociateIpGroups) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDisassociateConnectionAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociateIpGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2065,7 +2505,7 @@ func (m *awsAwsjson11_serializeOpDisassociateConnectionAlias) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateConnectionAliasInput) + input, ok := in.Parameters.(*DisassociateIpGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2086,10 +2526,10 @@ func (m *awsAwsjson11_serializeOpDisassociateConnectionAlias) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DisassociateConnectionAlias") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DisassociateIpGroups") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateConnectionAliasInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDisassociateIpGroupsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2105,14 +2545,14 @@ func (m *awsAwsjson11_serializeOpDisassociateConnectionAlias) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDisassociateIpGroups struct { +type awsAwsjson11_serializeOpDisassociateWorkspaceApplication struct { } -func (*awsAwsjson11_serializeOpDisassociateIpGroups) ID() string { +func (*awsAwsjson11_serializeOpDisassociateWorkspaceApplication) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDisassociateIpGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociateWorkspaceApplication) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2120,7 +2560,7 @@ func (m *awsAwsjson11_serializeOpDisassociateIpGroups) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateIpGroupsInput) + input, ok := in.Parameters.(*DisassociateWorkspaceApplicationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2141,10 +2581,10 @@ func (m *awsAwsjson11_serializeOpDisassociateIpGroups) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DisassociateIpGroups") + httpBindingEncoder.SetHeader("X-Amz-Target").String("WorkspacesService.DisassociateWorkspaceApplication") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateIpGroupsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDisassociateWorkspaceApplicationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3589,6 +4029,17 @@ func (m *awsAwsjson11_serializeOpUpdateWorkspaceImagePermission) HandleSerialize return next.HandleSerialize(ctx, in) } +func awsAwsjson11_serializeDocumentApplicationAssociatedResourceTypeList(v []types.ApplicationAssociatedResourceType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentApplicationList(v []types.Application, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3600,6 +4051,17 @@ func awsAwsjson11_serializeDocumentApplicationList(v []types.Application, value return nil } +func awsAwsjson11_serializeDocumentBundleAssociatedResourceTypeList(v []types.BundleAssociatedResourceType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentBundleIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3656,6 +4118,17 @@ func awsAwsjson11_serializeDocumentClientProperties(v *types.ClientProperties, v return nil } +func awsAwsjson11_serializeDocumentComputeList(v []types.Compute, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentComputeType(v *types.ComputeType, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3763,6 +4236,17 @@ func awsAwsjson11_serializeDocumentDirectoryIdList(v []string, value smithyjson. return nil } +func awsAwsjson11_serializeDocumentImageAssociatedResourceTypeList(v []types.ImageAssociatedResourceType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentIosImportClientBrandingAttributes(v *types.IosImportClientBrandingAttributes, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3870,6 +4354,17 @@ func awsAwsjson11_serializeDocumentLoginMessage(v map[string]string, value smith return nil } +func awsAwsjson11_serializeDocumentOperatingSystemNameList(v []types.OperatingSystemName, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentProtocolList(v []types.Protocol, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -4236,6 +4731,28 @@ func awsAwsjson11_serializeDocumentWorkspaceAccessProperties(v *types.WorkspaceA return nil } +func awsAwsjson11_serializeDocumentWorkSpaceApplicationIdList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsjson11_serializeDocumentWorkSpaceAssociatedResourceTypeList(v []types.WorkSpaceAssociatedResourceType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsAwsjson11_serializeDocumentWorkspaceCreationProperties(v *types.WorkspaceCreationProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4304,6 +4821,11 @@ func awsAwsjson11_serializeDocumentWorkspaceProperties(v *types.WorkspacePropert ok.String(string(v.ComputeTypeName)) } + if len(v.OperatingSystemName) > 0 { + ok := object.Key("OperatingSystemName") + ok.String(string(v.OperatingSystemName)) + } + if v.Protocols != nil { ok := object.Key("Protocols") if err := awsAwsjson11_serializeDocumentProtocolList(v.Protocols, ok); err != nil { @@ -4434,6 +4956,23 @@ func awsAwsjson11_serializeOpDocumentAssociateIpGroupsInput(v *AssociateIpGroups return nil } +func awsAwsjson11_serializeOpDocumentAssociateWorkspaceApplicationInput(v *AssociateWorkspaceApplicationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ApplicationId != nil { + ok := object.Key("ApplicationId") + ok.String(*v.ApplicationId) + } + + if v.WorkspaceId != nil { + ok := object.Key("WorkspaceId") + ok.String(*v.WorkspaceId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentAuthorizeIpRulesInput(v *AuthorizeIpRulesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4822,6 +5361,23 @@ func awsAwsjson11_serializeOpDocumentDeleteWorkspaceImageInput(v *DeleteWorkspac return nil } +func awsAwsjson11_serializeOpDocumentDeployWorkspaceApplicationsInput(v *DeployWorkspaceApplicationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Force != nil { + ok := object.Key("Force") + ok.Boolean(*v.Force) + } + + if v.WorkspaceId != nil { + ok := object.Key("WorkspaceId") + ok.String(*v.WorkspaceId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeregisterWorkspaceDirectoryInput(v *DeregisterWorkspaceDirectoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4853,6 +5409,102 @@ func awsAwsjson11_serializeOpDocumentDescribeAccountModificationsInput(v *Descri return nil } +func awsAwsjson11_serializeOpDocumentDescribeApplicationAssociationsInput(v *DescribeApplicationAssociationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ApplicationId != nil { + ok := object.Key("ApplicationId") + ok.String(*v.ApplicationId) + } + + if v.AssociatedResourceTypes != nil { + ok := object.Key("AssociatedResourceTypes") + if err := awsAwsjson11_serializeDocumentApplicationAssociatedResourceTypeList(v.AssociatedResourceTypes, ok); err != nil { + return err + } + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentDescribeApplicationsInput(v *DescribeApplicationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ApplicationIds != nil { + ok := object.Key("ApplicationIds") + if err := awsAwsjson11_serializeDocumentWorkSpaceApplicationIdList(v.ApplicationIds, ok); err != nil { + return err + } + } + + if v.ComputeTypeNames != nil { + ok := object.Key("ComputeTypeNames") + if err := awsAwsjson11_serializeDocumentComputeList(v.ComputeTypeNames, ok); err != nil { + return err + } + } + + if len(v.LicenseType) > 0 { + ok := object.Key("LicenseType") + ok.String(string(v.LicenseType)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if v.OperatingSystemNames != nil { + ok := object.Key("OperatingSystemNames") + if err := awsAwsjson11_serializeDocumentOperatingSystemNameList(v.OperatingSystemNames, ok); err != nil { + return err + } + } + + if v.Owner != nil { + ok := object.Key("Owner") + ok.String(*v.Owner) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentDescribeBundleAssociationsInput(v *DescribeBundleAssociationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociatedResourceTypes != nil { + ok := object.Key("AssociatedResourceTypes") + if err := awsAwsjson11_serializeDocumentBundleAssociatedResourceTypeList(v.AssociatedResourceTypes, ok); err != nil { + return err + } + } + + if v.BundleId != nil { + ok := object.Key("BundleId") + ok.String(*v.BundleId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeClientBrandingInput(v *DescribeClientBrandingInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4952,6 +5604,25 @@ func awsAwsjson11_serializeOpDocumentDescribeConnectionAliasPermissionsInput(v * return nil } +func awsAwsjson11_serializeOpDocumentDescribeImageAssociationsInput(v *DescribeImageAssociationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociatedResourceTypes != nil { + ok := object.Key("AssociatedResourceTypes") + if err := awsAwsjson11_serializeDocumentImageAssociatedResourceTypeList(v.AssociatedResourceTypes, ok); err != nil { + return err + } + } + + if v.ImageId != nil { + ok := object.Key("ImageId") + ok.String(*v.ImageId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeIpGroupsInput(v *DescribeIpGroupsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4988,6 +5659,25 @@ func awsAwsjson11_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, val return nil } +func awsAwsjson11_serializeOpDocumentDescribeWorkspaceAssociationsInput(v *DescribeWorkspaceAssociationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociatedResourceTypes != nil { + ok := object.Key("AssociatedResourceTypes") + if err := awsAwsjson11_serializeDocumentWorkSpaceAssociatedResourceTypeList(v.AssociatedResourceTypes, ok); err != nil { + return err + } + } + + if v.WorkspaceId != nil { + ok := object.Key("WorkspaceId") + ok.String(*v.WorkspaceId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeWorkspaceBundlesInput(v *DescribeWorkspaceBundlesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5188,6 +5878,23 @@ func awsAwsjson11_serializeOpDocumentDisassociateIpGroupsInput(v *DisassociateIp return nil } +func awsAwsjson11_serializeOpDocumentDisassociateWorkspaceApplicationInput(v *DisassociateWorkspaceApplicationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ApplicationId != nil { + ok := object.Key("ApplicationId") + ok.String(*v.ApplicationId) + } + + if v.WorkspaceId != nil { + ok := object.Key("WorkspaceId") + ok.String(*v.WorkspaceId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentImportClientBrandingInput(v *ImportClientBrandingInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/workspaces/types/enums.go b/service/workspaces/types/enums.go index 5ce48d09832..a5285d4ce50 100644 --- a/service/workspaces/types/enums.go +++ b/service/workspaces/types/enums.go @@ -38,6 +38,83 @@ func (Application) Values() []Application { } } +type ApplicationAssociatedResourceType string + +// Enum values for ApplicationAssociatedResourceType +const ( + ApplicationAssociatedResourceTypeWorkspace ApplicationAssociatedResourceType = "WORKSPACE" + ApplicationAssociatedResourceTypeBundle ApplicationAssociatedResourceType = "BUNDLE" + ApplicationAssociatedResourceTypeImage ApplicationAssociatedResourceType = "IMAGE" +) + +// Values returns all known values for ApplicationAssociatedResourceType. 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 (ApplicationAssociatedResourceType) Values() []ApplicationAssociatedResourceType { + return []ApplicationAssociatedResourceType{ + "WORKSPACE", + "BUNDLE", + "IMAGE", + } +} + +type AssociationErrorCode string + +// Enum values for AssociationErrorCode +const ( + AssociationErrorCodeInsufficientDiskspace AssociationErrorCode = "ValidationError.InsufficientDiskSpace" + AssociationErrorCodeInsufficientMemory AssociationErrorCode = "ValidationError.InsufficientMemory" + AssociationErrorCodeUnsupportedOperatingSystem AssociationErrorCode = "ValidationError.UnsupportedOperatingSystem" + AssociationErrorCodeInternalServerError AssociationErrorCode = "DeploymentError.InternalServerError" + AssociationErrorCodeWorkspaceUnreachable AssociationErrorCode = "DeploymentError.WorkspaceUnreachable" +) + +// Values returns all known values for AssociationErrorCode. 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 (AssociationErrorCode) Values() []AssociationErrorCode { + return []AssociationErrorCode{ + "ValidationError.InsufficientDiskSpace", + "ValidationError.InsufficientMemory", + "ValidationError.UnsupportedOperatingSystem", + "DeploymentError.InternalServerError", + "DeploymentError.WorkspaceUnreachable", + } +} + +type AssociationState string + +// Enum values for AssociationState +const ( + AssociationStatePendingInstall AssociationState = "PENDING_INSTALL" + AssociationStatePendingInstallDeployment AssociationState = "PENDING_INSTALL_DEPLOYMENT" + AssociationStatePendingUninstall AssociationState = "PENDING_UNINSTALL" + AssociationStatePendingUninstallDeployment AssociationState = "PENDING_UNINSTALL_DEPLOYMENT" + AssociationStateInstalling AssociationState = "INSTALLING" + AssociationStateUninstalling AssociationState = "UNINSTALLING" + AssociationStateError AssociationState = "ERROR" + AssociationStateCompleted AssociationState = "COMPLETED" + AssociationStateRemoved AssociationState = "REMOVED" +) + +// Values returns all known values for AssociationState. 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 (AssociationState) Values() []AssociationState { + return []AssociationState{ + "PENDING_INSTALL", + "PENDING_INSTALL_DEPLOYMENT", + "PENDING_UNINSTALL", + "PENDING_UNINSTALL_DEPLOYMENT", + "INSTALLING", + "UNINSTALLING", + "ERROR", + "COMPLETED", + "REMOVED", + } +} + type AssociationStatus string // Enum values for AssociationStatus @@ -62,6 +139,23 @@ func (AssociationStatus) Values() []AssociationStatus { } } +type BundleAssociatedResourceType string + +// Enum values for BundleAssociatedResourceType +const ( + BundleAssociatedResourceTypeApplication BundleAssociatedResourceType = "APPLICATION" +) + +// Values returns all known values for BundleAssociatedResourceType. 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 (BundleAssociatedResourceType) Values() []BundleAssociatedResourceType { + return []BundleAssociatedResourceType{ + "APPLICATION", + } +} + type BundleType string // Enum values for BundleType @@ -288,6 +382,22 @@ func (DeletableSamlProperty) Values() []DeletableSamlProperty { } } +type ImageAssociatedResourceType string + +// Enum values for ImageAssociatedResourceType +const ( + ImageAssociatedResourceTypeApplication ImageAssociatedResourceType = "APPLICATION" +) + +// Values returns all known values for ImageAssociatedResourceType. 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 (ImageAssociatedResourceType) Values() []ImageAssociatedResourceType { + return []ImageAssociatedResourceType{ + "APPLICATION", + } +} + type ImageType string // Enum values for ImageType @@ -362,6 +472,42 @@ func (ModificationStateEnum) Values() []ModificationStateEnum { } } +type OperatingSystemName string + +// Enum values for OperatingSystemName +const ( + OperatingSystemNameAmazonLinux2 OperatingSystemName = "AMAZON_LINUX_2" + OperatingSystemNameUbuntu1804 OperatingSystemName = "UBUNTU_18_04" + OperatingSystemNameUbuntu2004 OperatingSystemName = "UBUNTU_20_04" + OperatingSystemNameUbuntu2204 OperatingSystemName = "UBUNTU_22_04" + OperatingSystemNameUnknown OperatingSystemName = "UNKNOWN" + OperatingSystemNameWindows10 OperatingSystemName = "WINDOWS_10" + OperatingSystemNameWindows11 OperatingSystemName = "WINDOWS_11" + OperatingSystemNameWindows7 OperatingSystemName = "WINDOWS_7" + OperatingSystemNameWindowsServer2016 OperatingSystemName = "WINDOWS_SERVER_2016" + OperatingSystemNameWindowsServer2019 OperatingSystemName = "WINDOWS_SERVER_2019" + OperatingSystemNameWindowsServer2022 OperatingSystemName = "WINDOWS_SERVER_2022" +) + +// Values returns all known values for OperatingSystemName. 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 (OperatingSystemName) Values() []OperatingSystemName { + return []OperatingSystemName{ + "AMAZON_LINUX_2", + "UBUNTU_18_04", + "UBUNTU_20_04", + "UBUNTU_22_04", + "UNKNOWN", + "WINDOWS_10", + "WINDOWS_11", + "WINDOWS_7", + "WINDOWS_SERVER_2016", + "WINDOWS_SERVER_2019", + "WINDOWS_SERVER_2022", + } +} + type OperatingSystemType string // Enum values for OperatingSystemType @@ -511,6 +657,64 @@ func (Tenancy) Values() []Tenancy { } } +type WorkSpaceApplicationLicenseType string + +// Enum values for WorkSpaceApplicationLicenseType +const ( + WorkSpaceApplicationLicenseTypeLicensed WorkSpaceApplicationLicenseType = "LICENSED" + WorkSpaceApplicationLicenseTypeUnlicensed WorkSpaceApplicationLicenseType = "UNLICENSED" +) + +// Values returns all known values for WorkSpaceApplicationLicenseType. 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 (WorkSpaceApplicationLicenseType) Values() []WorkSpaceApplicationLicenseType { + return []WorkSpaceApplicationLicenseType{ + "LICENSED", + "UNLICENSED", + } +} + +type WorkSpaceApplicationState string + +// Enum values for WorkSpaceApplicationState +const ( + WorkSpaceApplicationStatePending WorkSpaceApplicationState = "PENDING" + WorkSpaceApplicationStateError WorkSpaceApplicationState = "ERROR" + WorkSpaceApplicationStateAvailable WorkSpaceApplicationState = "AVAILABLE" + WorkSpaceApplicationStateUninstallOnly WorkSpaceApplicationState = "UNINSTALL_ONLY" +) + +// Values returns all known values for WorkSpaceApplicationState. 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 (WorkSpaceApplicationState) Values() []WorkSpaceApplicationState { + return []WorkSpaceApplicationState{ + "PENDING", + "ERROR", + "AVAILABLE", + "UNINSTALL_ONLY", + } +} + +type WorkSpaceAssociatedResourceType string + +// Enum values for WorkSpaceAssociatedResourceType +const ( + WorkSpaceAssociatedResourceTypeApplication WorkSpaceAssociatedResourceType = "APPLICATION" +) + +// Values returns all known values for WorkSpaceAssociatedResourceType. 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 (WorkSpaceAssociatedResourceType) Values() []WorkSpaceAssociatedResourceType { + return []WorkSpaceAssociatedResourceType{ + "APPLICATION", + } +} + type WorkspaceBundleState string // Enum values for WorkspaceBundleState diff --git a/service/workspaces/types/errors.go b/service/workspaces/types/errors.go index 6db1ceb9ac0..988997368f7 100644 --- a/service/workspaces/types/errors.go +++ b/service/workspaces/types/errors.go @@ -33,6 +33,84 @@ func (e *AccessDeniedException) ErrorCode() string { } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The specified application is not supported. +type ApplicationNotSupportedException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ApplicationNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ApplicationNotSupportedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ApplicationNotSupportedException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ApplicationNotSupportedException" + } + return *e.ErrorCodeOverride +} +func (e *ApplicationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The compute type of the WorkSpace is not compatible with the application. +type ComputeNotCompatibleException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ComputeNotCompatibleException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ComputeNotCompatibleException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ComputeNotCompatibleException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ComputeNotCompatibleException" + } + return *e.ErrorCodeOverride +} +func (e *ComputeNotCompatibleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The specified application is not compatible with the resource. +type IncompatibleApplicationsException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *IncompatibleApplicationsException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *IncompatibleApplicationsException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *IncompatibleApplicationsException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "IncompatibleApplicationsException" + } + return *e.ErrorCodeOverride +} +func (e *IncompatibleApplicationsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // One or more parameter values are not valid. type InvalidParameterValuesException struct { Message *string @@ -85,6 +163,34 @@ func (e *InvalidResourceStateException) ErrorCode() string { } func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The operating system of the WorkSpace is not compatible with the application. +type OperatingSystemNotCompatibleException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *OperatingSystemNotCompatibleException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *OperatingSystemNotCompatibleException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *OperatingSystemNotCompatibleException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "OperatingSystemNotCompatibleException" + } + return *e.ErrorCodeOverride +} +func (e *OperatingSystemNotCompatibleException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + // The properties of this WorkSpace are currently being modified. Try again in a // moment. type OperationInProgressException struct { @@ -218,6 +324,34 @@ func (e *ResourceCreationFailedException) ErrorCode() string { } func (e *ResourceCreationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The specified resource is currently in use. +type ResourceInUseException struct { + Message *string + + ErrorCodeOverride *string + + ResourceId *string + + noSmithyDocumentSerde +} + +func (e *ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceInUseException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceInUseException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ResourceInUseException" + } + return *e.ErrorCodeOverride +} +func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // Your resource limits have been exceeded. type ResourceLimitExceededException struct { Message *string diff --git a/service/workspaces/types/types.go b/service/workspaces/types/types.go index e24614a877d..8cbeea2253f 100644 --- a/service/workspaces/types/types.go +++ b/service/workspaces/types/types.go @@ -34,6 +34,73 @@ type AccountModification struct { noSmithyDocumentSerde } +// Describes the association between an application and an application resource. +type ApplicationResourceAssociation struct { + + // The identifier of the application. + ApplicationId *string + + // The identifier of the associated resource. + AssociatedResourceId *string + + // The resource type of the associated resource. + AssociatedResourceType ApplicationAssociatedResourceType + + // The time the association was created. + Created *time.Time + + // The time the association status was last updated. + LastUpdatedTime *time.Time + + // The status of the application resource association. + State AssociationState + + // The reason the association deployment failed. + StateReason *AssociationStateReason + + noSmithyDocumentSerde +} + +// Indicates the reason that the association deployment failed, including the +// error code and error message. +type AssociationStateReason struct { + + // The error code of the association deployment failure. + ErrorCode AssociationErrorCode + + // The error message of the association deployment failure. + ErrorMessage *string + + noSmithyDocumentSerde +} + +// Describes the association between an application and a bundle resource. +type BundleResourceAssociation struct { + + // The identifier of the associated resource. + AssociatedResourceId *string + + // The resource type of the associated resources. + AssociatedResourceType BundleAssociatedResourceType + + // The identifier of the bundle. + BundleId *string + + // The time the association is created. + Created *time.Time + + // The time the association status was last updated. + LastUpdatedTime *time.Time + + // The status of the bundle resource association. + State AssociationState + + // The reason the association deployment failed. + StateReason *AssociationStateReason + + noSmithyDocumentSerde +} + // Describes the properties of the certificate-based authentication you want to // use with your WorkSpaces. type CertificateBasedAuthProperties struct { @@ -292,8 +359,8 @@ type DefaultWorkspaceCreationProperties struct { noSmithyDocumentSerde } -// Provides in-depth details about the error. These details include the possible -// causes of the errors and troubleshooting information. +// Describes in-depth details about the error. These details include the possible +// causes of the error and troubleshooting information. type ErrorDetails struct { // Indicates the error code returned. @@ -369,6 +436,33 @@ type ImagePermission struct { noSmithyDocumentSerde } +// Describes the association between an application and an image resource. +type ImageResourceAssociation struct { + + // The identifier of the associated resource. + AssociatedResourceId *string + + // The resource type of the associated resources. + AssociatedResourceType ImageAssociatedResourceType + + // The time the association is created. + Created *time.Time + + // The identifier of the image. + ImageId *string + + // The time the association status was last updated. + LastUpdatedTime *time.Time + + // The status of the image resource association. + State AssociationState + + // The reason the association deployment failed. + StateReason *AssociationStateReason + + noSmithyDocumentSerde +} + // The client branding attributes for iOS device types. These attributes are // displayed on the iOS client login screen only. Client branding attributes are // public facing. Ensure you do not include sensitive information. @@ -835,6 +929,48 @@ type WorkspaceAccessProperties struct { noSmithyDocumentSerde } +// Describes the WorkSpace application. +type WorkSpaceApplication struct { + + // The identifier of the application. + ApplicationId *string + + // The time the application is created. + Created *time.Time + + // The description of the WorkSpace application. + Description *string + + // The license availability for the applications. + LicenseType WorkSpaceApplicationLicenseType + + // The name of the WorkSpace application. + Name *string + + // The owner of the WorkSpace application. + Owner *string + + // The status of WorkSpace application. + State WorkSpaceApplicationState + + // The supported compute types of the WorkSpace application. + SupportedComputeTypeNames []Compute + + // The supported operating systems of the WorkSpace application. + SupportedOperatingSystemNames []OperatingSystemName + + noSmithyDocumentSerde +} + +// Describes the WorkSpace application deployment. +type WorkSpaceApplicationDeployment struct { + + // The associations between the applications and the associated resources. + Associations []WorkspaceResourceAssociation + + noSmithyDocumentSerde +} + // Describes a WorkSpace bundle. type WorkspaceBundle struct { @@ -1034,7 +1170,8 @@ type WorkspaceImage struct { // The error code that is returned for the image. ErrorCode *string - // The details of the error returned for the image. + // Additional details of the error returned for the image, including the possible + // causes of the errors and troubleshooting information. ErrorDetails []ErrorDetails // The text of the error message that is returned for the image. @@ -1074,6 +1211,9 @@ type WorkspaceProperties struct { // . ComputeTypeName Compute + // The name of the operating system. + OperatingSystemName OperatingSystemName + // The protocol. For more information, see Protocols for Amazon WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-protocols.html) // . // - Only available for WorkSpaces created with PCoIP bundles. @@ -1145,6 +1285,33 @@ type WorkspaceRequest struct { noSmithyDocumentSerde } +// Describes the association between an application and a WorkSpace resource. +type WorkspaceResourceAssociation struct { + + // The identifier of the associated resource. + AssociatedResourceId *string + + // The resource types of the associated resource. + AssociatedResourceType WorkSpaceAssociatedResourceType + + // The time the association is created. + Created *time.Time + + // The time the association status was last updated. + LastUpdatedTime *time.Time + + // The status of the WorkSpace resource association. + State AssociationState + + // The reason the association deployment failed. + StateReason *AssociationStateReason + + // The identifier of the WorkSpace. + WorkspaceId *string + + noSmithyDocumentSerde +} + // Describes an IP access control group. type WorkspacesIpGroup struct { diff --git a/service/workspaces/validators.go b/service/workspaces/validators.go index 887b0cadd62..38a177afc18 100644 --- a/service/workspaces/validators.go +++ b/service/workspaces/validators.go @@ -50,6 +50,26 @@ func (m *validateOpAssociateIpGroups) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpAssociateWorkspaceApplication struct { +} + +func (*validateOpAssociateWorkspaceApplication) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateWorkspaceApplication) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateWorkspaceApplicationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateWorkspaceApplicationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpAuthorizeIpRules struct { } @@ -390,6 +410,26 @@ func (m *validateOpDeleteWorkspaceImage) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDeployWorkspaceApplications struct { +} + +func (*validateOpDeployWorkspaceApplications) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeployWorkspaceApplications) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeployWorkspaceApplicationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeployWorkspaceApplicationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeregisterWorkspaceDirectory struct { } @@ -410,6 +450,46 @@ func (m *validateOpDeregisterWorkspaceDirectory) HandleInitialize(ctx context.Co return next.HandleInitialize(ctx, in) } +type validateOpDescribeApplicationAssociations struct { +} + +func (*validateOpDescribeApplicationAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeApplicationAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeApplicationAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeApplicationAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeBundleAssociations struct { +} + +func (*validateOpDescribeBundleAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeBundleAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeBundleAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeBundleAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeClientBranding struct { } @@ -490,6 +570,26 @@ func (m *validateOpDescribeConnectionAliasPermissions) HandleInitialize(ctx cont return next.HandleInitialize(ctx, in) } +type validateOpDescribeImageAssociations struct { +} + +func (*validateOpDescribeImageAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeImageAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeImageAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeImageAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeTags struct { } @@ -510,6 +610,26 @@ func (m *validateOpDescribeTags) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDescribeWorkspaceAssociations struct { +} + +func (*validateOpDescribeWorkspaceAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeWorkspaceAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeWorkspaceAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeWorkspaceAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeWorkspaceImagePermissions struct { } @@ -590,6 +710,26 @@ func (m *validateOpDisassociateIpGroups) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDisassociateWorkspaceApplication struct { +} + +func (*validateOpDisassociateWorkspaceApplication) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateWorkspaceApplication) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateWorkspaceApplicationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateWorkspaceApplicationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpImportClientBranding struct { } @@ -1078,6 +1218,10 @@ func addOpAssociateIpGroupsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateIpGroups{}, middleware.After) } +func addOpAssociateWorkspaceApplicationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateWorkspaceApplication{}, middleware.After) +} + func addOpAuthorizeIpRulesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAuthorizeIpRules{}, middleware.After) } @@ -1146,10 +1290,22 @@ func addOpDeleteWorkspaceImageValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDeleteWorkspaceImage{}, middleware.After) } +func addOpDeployWorkspaceApplicationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeployWorkspaceApplications{}, middleware.After) +} + func addOpDeregisterWorkspaceDirectoryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeregisterWorkspaceDirectory{}, middleware.After) } +func addOpDescribeApplicationAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeApplicationAssociations{}, middleware.After) +} + +func addOpDescribeBundleAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeBundleAssociations{}, middleware.After) +} + func addOpDescribeClientBrandingValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeClientBranding{}, middleware.After) } @@ -1166,10 +1322,18 @@ func addOpDescribeConnectionAliasPermissionsValidationMiddleware(stack *middlewa return stack.Initialize.Add(&validateOpDescribeConnectionAliasPermissions{}, middleware.After) } +func addOpDescribeImageAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeImageAssociations{}, middleware.After) +} + func addOpDescribeTagsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeTags{}, middleware.After) } +func addOpDescribeWorkspaceAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeWorkspaceAssociations{}, middleware.After) +} + func addOpDescribeWorkspaceImagePermissionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeWorkspaceImagePermissions{}, middleware.After) } @@ -1186,6 +1350,10 @@ func addOpDisassociateIpGroupsValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDisassociateIpGroups{}, middleware.After) } +func addOpDisassociateWorkspaceApplicationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateWorkspaceApplication{}, middleware.After) +} + func addOpImportClientBrandingValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpImportClientBranding{}, middleware.After) } @@ -1547,6 +1715,24 @@ func validateOpAssociateIpGroupsInput(v *AssociateIpGroupsInput) error { } } +func validateOpAssociateWorkspaceApplicationInput(v *AssociateWorkspaceApplicationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateWorkspaceApplicationInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ApplicationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAuthorizeIpRulesInput(v *AuthorizeIpRulesInput) error { if v == nil { return nil @@ -1898,6 +2084,21 @@ func validateOpDeleteWorkspaceImageInput(v *DeleteWorkspaceImageInput) error { } } +func validateOpDeployWorkspaceApplicationsInput(v *DeployWorkspaceApplicationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeployWorkspaceApplicationsInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeregisterWorkspaceDirectoryInput(v *DeregisterWorkspaceDirectoryInput) error { if v == nil { return nil @@ -1913,6 +2114,42 @@ func validateOpDeregisterWorkspaceDirectoryInput(v *DeregisterWorkspaceDirectory } } +func validateOpDescribeApplicationAssociationsInput(v *DescribeApplicationAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeApplicationAssociationsInput"} + if v.ApplicationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) + } + if v.AssociatedResourceTypes == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociatedResourceTypes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeBundleAssociationsInput(v *DescribeBundleAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeBundleAssociationsInput"} + if v.BundleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BundleId")) + } + if v.AssociatedResourceTypes == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociatedResourceTypes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeClientBrandingInput(v *DescribeClientBrandingInput) error { if v == nil { return nil @@ -1973,6 +2210,24 @@ func validateOpDescribeConnectionAliasPermissionsInput(v *DescribeConnectionAlia } } +func validateOpDescribeImageAssociationsInput(v *DescribeImageAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeImageAssociationsInput"} + if v.ImageId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ImageId")) + } + if v.AssociatedResourceTypes == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociatedResourceTypes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeTagsInput(v *DescribeTagsInput) error { if v == nil { return nil @@ -1988,6 +2243,24 @@ func validateOpDescribeTagsInput(v *DescribeTagsInput) error { } } +func validateOpDescribeWorkspaceAssociationsInput(v *DescribeWorkspaceAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeWorkspaceAssociationsInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.AssociatedResourceTypes == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociatedResourceTypes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeWorkspaceImagePermissionsInput(v *DescribeWorkspaceImagePermissionsInput) error { if v == nil { return nil @@ -2051,6 +2324,24 @@ func validateOpDisassociateIpGroupsInput(v *DisassociateIpGroupsInput) error { } } +func validateOpDisassociateWorkspaceApplicationInput(v *DisassociateWorkspaceApplicationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateWorkspaceApplicationInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ApplicationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpImportClientBrandingInput(v *ImportClientBrandingInput) error { if v == nil { return nil